/* Inbox prototype layout: P2 conversation list, P3 thread, P4 app rail.
   P0 (<p0-panel>) and the inbox sidebar (P1) are shared components. */
/* Stage: a flat light grey instead of the shared wallpaper. Presentation only,
   not product UI, so not a Global UI Kit token (like the stage window shadow). */
.stage::before{background:#f5f5f5;filter:none}
/* The inbox window sits at the top left of the stage, so resizing moves only the bottom and right edges. */
.stage{justify-content:flex-start;align-items:flex-start}
.stage .app{margin:0}
/* Inbox window: elevation-steve-hayes instead of the stage window shadow (asked for by name; the
   New task and linked-item windows keep theirs). */
.app{box-shadow:var(--elevation-steve-hayes)}
/* New task window: a second window on the stage, centred over the inbox window.
   inbox.js sets left/top from the .app box (the stage can scroll sideways); 50% is the fallback. */
.task-window{position:absolute;z-index:20;left:50%;top:50%;max-width:calc(100% - 2 * var(--numerical-spacing-1000));border-radius:var(--numerical-border-radius-250);box-shadow:var(--stage-window-shadow)}
.task-window[hidden]{display:none}
/* Linked conversation window: same window treatment as New task, holding a conversation's P3
   (Figma P3 is 799px wide). As tall as the inbox window, less a margin, so it reads as a second window. */
.convo-window{position:absolute;z-index:19;left:50%;top:50%;display:flex;width:800px;max-width:calc(100% - 2 * var(--numerical-spacing-1000));height:calc(var(--app-h) - 2 * var(--numerical-spacing-1000));border-radius:var(--numerical-border-radius-250);box-shadow:var(--stage-window-shadow)}
.convo-window[hidden]{display:none}
.convo-window app-window{flex:1;min-width:0}
.convo-window .aw-body{padding-bottom:var(--numerical-spacing-400)}
/* a linked task: 640 × 751, as in Figma (2026 Portfolio › linked task window) */
.convo-window.is-task{width:640px;height:min(751px,calc(var(--app-h) - 2 * var(--numerical-spacing-600)))}
.convo-window.is-task .aw-body{padding-bottom:0}

/* work area: P2 + P3 on one surface */
.work{flex:1;min-width:0;display:flex;padding-block:var(--numerical-spacing-200)}
.surface{flex:1;min-width:0;display:flex;background:var(--color-semantic-bg-surface-primary);border-radius:var(--numerical-border-radius-200);overflow:hidden}

/* P2 · conversation list */
.p2{flex:none;width:300px;display:flex;flex-direction:column;border-right:var(--numerical-border-width-025) solid var(--color-semantic-border-tertiary);min-height:0}
.p2-head{display:flex;flex-direction:column;gap:var(--numerical-spacing-300);padding-top:var(--numerical-spacing-400)}
.p2-title{position:relative;display:flex;align-items:center;justify-content:space-between;height:24px;padding:0 var(--numerical-spacing-400)}
/* filter menu: 240px, 8px in from P2's left edge, just under the title (Figma: P2 filtering) */
.p2-title app-menu{margin:var(--numerical-spacing-100) 0 0 var(--numerical-spacing-200)}
.p2-title h2{margin:0;font-size:var(--font-size-large1);line-height:var(--font-lineHeight-300);font-weight:700}
.p2-title .tools{display:flex;gap:var(--numerical-spacing-100)}
.sel-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:var(--numerical-border-radius-200);color:var(--color-semantic-icon-primary)}
.sel-icon:hover,.sel-icon[aria-expanded="true"]{background:var(--color-semantic-input-hover)}

.tabs-wrap{position:relative;border-bottom:var(--numerical-border-width-025) solid var(--color-semantic-border-tertiary);overflow:hidden}
.tabs{position:relative;display:flex;gap:var(--numerical-spacing-400);padding-left:var(--numerical-spacing-400);overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs-wrap::after{content:"";position:absolute;top:0;right:0;bottom:0;width:48px;background:linear-gradient(270deg,var(--color-semantic-bg-surface-primary),transparent);pointer-events:none}
.tab{display:flex;flex-direction:column;gap:var(--numerical-spacing-150);flex:none;font-weight:500;color:var(--color-semantic-tab-text-unsel);white-space:nowrap}
.tab::after{content:"";height:4px}
.tab[aria-selected="true"]{gap:var(--numerical-spacing-200);color:var(--color-semantic-tab-text-selected)}
.tab[aria-selected="true"]::after{height:2px;background:var(--color-semantic-tab-text-selected);border-radius:var(--numerical-border-radius-050) var(--numerical-border-radius-050) 0 0}
/* Sliding underline: once inbox.js adds .tab-ind, one 2px bar moves to the selected tab with
   P0's ease-out (420ms, as P1's chevrons; no overshoot) and the tabs' own underlines are hidden. Every tab keeps
   the same 6px gap + 4px spacer (= the selected tab's 8px + 2px), so nothing shifts. The label
   colour fades with P0's fade curve. Reduced motion: the bar jumps; only the colour changes. */
.tabs.has-ind .tab{gap:var(--numerical-spacing-150);transition:color 150ms var(--p0-fade,ease-in-out)}
.tabs.has-ind .tab::after{height:4px;background:none}
.tab-ind{position:absolute;left:0;bottom:0;width:0;height:2px;background:var(--color-semantic-tab-text-selected);border-radius:var(--numerical-border-radius-050) var(--numerical-border-radius-050) 0 0;pointer-events:none;
  transition:transform 420ms var(--p0-out,ease-out),width 420ms var(--p0-out,ease-out)}
.tab-ind.no-anim{transition:none}
@media (prefers-reduced-motion:reduce){.tab-ind,.tabs.has-ind .tab{transition:none}}
.tabs .tab:last-child{margin-right:36px}
/* Default header (Figma: 2026 Portfolio › P2 Default): no tabs, just the rule under the title */
.p2[data-header="default"] .tabs{display:none}
.chips{display:flex;flex-wrap:wrap;gap:var(--numerical-spacing-200);padding:var(--numerical-spacing-300) var(--numerical-spacing-400);border-bottom:var(--numerical-border-width-025) solid var(--color-semantic-border-tertiary)}
.chips:empty{display:none}
/* filtered list with no matches */
.list-empty{margin:0;padding:var(--numerical-spacing-600) var(--numerical-spacing-400);text-align:center;font-size:var(--font-size-small2);line-height:var(--font-lineHeight-225);color:var(--color-semantic-text-tertiary)}
/* list scroll fades: P1's gradient (spacing-800 tall), fading to P2's own surface;
   data-more-up / data-more-down are set by inbox.js while there's more that way */
.list-scroll{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}
.list-scroll::before,.list-scroll::after{content:"";position:absolute;left:0;right:0;z-index:2;height:var(--numerical-spacing-800);pointer-events:none;opacity:0;transition:opacity 120ms ease-out}
.list-scroll::before{top:0;background:linear-gradient(to bottom,var(--color-semantic-bg-surface-primary),transparent)}
.list-scroll::after{bottom:0;background:linear-gradient(to top,var(--color-semantic-bg-surface-primary),transparent)}
.list-scroll[data-more-up]::before,.list-scroll[data-more-down]::after{opacity:1}
@media (prefers-reduced-motion:reduce){.list-scroll::before,.list-scroll::after{transition:none}}
.list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:var(--numerical-spacing-100);padding:var(--numerical-spacing-300) var(--numerical-spacing-300) var(--numerical-spacing-300)}
.sep{height:1px;background:var(--color-semantic-border-tertiary);flex:none;margin:0 var(--numerical-spacing-200)}
.sep.off{visibility:hidden}
.cell{position:relative;display:flex;flex-direction:column;gap:var(--numerical-spacing-100);width:100%;padding:11px 13px 11px 17px;border:var(--numerical-border-width-025) solid transparent;border-radius:var(--numerical-border-radius-200);text-align:left;flex:none}
.cell:hover{background:var(--color-semantic-bg-fill-tertiary-hover)}
.cell[aria-selected="true"]{background:var(--color-semantic-cell-bg-selected);border-color:var(--color-semantic-cell-border-selected)}
.cell .unread{position:absolute;left:4px;top:18px;width:7px;height:7px;border-radius:50%;background:var(--color-semantic-icon-info)}
.l1,.l2,.l3{display:flex;align-items:center;width:100%;min-width:0}
.l1{gap:var(--numerical-spacing-200)}
.l1 .who{flex:1;min-width:0;display:flex;align-items:center;gap:var(--numerical-spacing-100);font-weight:500;color:var(--color-semantic-text-secondary)}
.cell.is-unread .who{font-weight:600;color:var(--color-semantic-text-primary)}
/* the 16px chevron's own padding is the spacing; cancel the row gap on both sides */
.who .arrow{display:flex;flex:none;margin:0 calc(-1 * var(--numerical-spacing-100));color:var(--color-semantic-icon-tertiary)}
/* the assignee gives up its width before the name does, down to a few letters */
.who .assignee{flex-shrink:1000;min-width:var(--numerical-spacing-1000);color:var(--color-semantic-text-interactive);font-weight:500}
.who .kind{display:grid;place-items:center;width:20px;height:20px;flex:none;border:var(--numerical-border-width-025) solid var(--color-semantic-border-secondary);border-radius:var(--numerical-border-radius-150);color:var(--color-semantic-icon-primary)}
.l1 .time{flex:none;padding-right:var(--numerical-spacing-100);font-size:var(--font-size-small);line-height:var(--font-lineHeight-200);letter-spacing:0;font-weight:500;color:var(--color-semantic-text-tertiary)}
.l2{color:var(--color-semantic-text-secondary)}
/* L3 attachment: icon/paperclip 12 after the tags (Figma ConvoCell-L3) */
.l3 .clip{display:flex;flex:none;color:var(--color-semantic-icon-tertiary)}
.cell.is-unread .l2{font-weight:500;color:var(--color-semantic-text-primary)}
.l3{gap:var(--numerical-spacing-200);color:var(--color-semantic-text-tertiary)}
.l3 .agent{flex:1;min-width:0;display:flex;align-items:center;gap:var(--numerical-spacing-150);padding-left:var(--numerical-spacing-050)}
.l3 .empty{font-style:italic}
/* whole tags only (fitCellTags); never more than half of L3 */
.l3 .tags{display:flex;gap:var(--numerical-spacing-100);flex:0 1 auto;min-width:0;max-width:50%;overflow:hidden}
.l3 .tags:empty{display:none}
.l3.typing{gap:var(--numerical-spacing-100);font-weight:500;color:var(--color-semantic-text-interactive)}
.typing .ic{color:var(--color-semantic-text-interactive)}
@media (prefers-reduced-motion: no-preference){.typing .ic svg path{animation:pulse 1.2s ease-in-out infinite}.typing .ic svg path:nth-child(2){animation-delay:.2s}.typing .ic svg path:nth-child(3){animation-delay:.4s}}
@keyframes pulse{50%{opacity:.25}}

/* P3 · thread */
.p3{flex:1;min-width:0;display:flex;flex-direction:column;min-height:0;padding-bottom:var(--numerical-spacing-400)}
.p3-header{display:flex;flex-direction:column;gap:var(--numerical-spacing-300);padding:var(--numerical-spacing-400);border-bottom:var(--numerical-border-width-025) solid var(--color-semantic-border-tertiary)}
.row1{display:flex;align-items:center;justify-content:space-between;gap:var(--numerical-spacing-400);height:24px}
.row1 h2{margin:0;font-size:var(--font-size-large1);line-height:var(--font-lineHeight-300);font-weight:700}
.row1 .right{display:flex;align-items:center;gap:var(--numerical-spacing-400);flex:none}
.row1 .btns{position:relative;display:flex;gap:var(--numerical-spacing-200)}
/* assignee picker popover (the New task composer's Assignee menu: 240px, no chrome of its own) */
.assign-pop{position:absolute;z-index:6}
.assign-pop[hidden]{display:none}
.assign-pop .dd{width:240px}
/* beats app-button's injected .btn .ic (same specificity, loaded later); disabled stays icon-disabled */
.status-btn .btn:not(:disabled) .lead{color:var(--color-semantic-accent-blue-highlight)}
.status-btn[data-status="Waiting"] .btn:not(:disabled) .lead{color:var(--color-semantic-accent-yellow-highlight)}
.status-btn[data-status="Done"] .btn:not(:disabled) .lead{color:var(--color-semantic-accent-green-highlight)}
.status-btn[data-archive] .btn:not(:disabled) .lead{color:var(--color-semantic-icon-primary)}   /* Archive in my inbox */
.status-btn[data-reopen] .btn:not(:disabled) .lead{color:var(--color-semantic-accent-green-highlight)}   /* Reopen in my inbox */
/* meta groups (an item + its divider) that hide together, e.g. no ticket on a discussion */
.m-grp{display:contents}
.m-grp[hidden]{display:none}
/* meta row (Figma: Inbox redesign phase 2 › Show more tags and objects, 3645:128278):
   fixed properties, then objects + tags, then the controls. When objects or tags don't fit
   (.overflow) the controls move to the far right and gain the show-more chevron. */
.meta-wrap{display:flex;flex-direction:column;gap:var(--numerical-spacing-150);min-width:0}
.meta{display:flex;align-items:center;gap:var(--numerical-spacing-150);min-width:0}
.meta-fixed,.meta-pills{display:flex;align-items:center;gap:var(--numerical-spacing-150)}
.meta-fixed{flex:none}
.meta-pills{flex:0 1 auto;min-width:0}
.meta-ctrls{display:flex;align-items:center;gap:var(--numerical-spacing-200);flex:none}
.meta.overflow .meta-ctrls{margin-left:auto}
.meta-pills[hidden]{display:none}
/* no overflow: 8px from the last divider to + (the .meta gap supplies 6px) */
.meta:not(.overflow) .meta-ctrls{margin-left:calc(var(--numerical-spacing-200) - var(--numerical-spacing-150))}
/* at least 24px between the last meta item and the chevron (the .meta gap supplies 6px) */
.meta.overflow .meta-pills{margin-right:calc(var(--numerical-spacing-600) - var(--numerical-spacing-150))}
.m-more[hidden],.m-more-div[hidden]{display:none}
.m-more{color:var(--color-semantic-icon-tertiary)}
.meta .pills{display:flex;align-items:center;gap:var(--numerical-spacing-150);padding:0 var(--numerical-spacing-150);flex:none}
/* expanded rows: objects first (one row, +N), then tags (+N on the last row) */
.meta-more{display:flex;flex-direction:column;gap:var(--numerical-spacing-200)}
.meta-more[hidden],.more-line[hidden]{display:none}
.more-line{display:flex;align-items:center;gap:var(--numerical-spacing-200);min-width:0}
/* object pill: fixed width, 12px app logo, title truncates (full title in the overflow tooltip) */
.pill.obj{width:152px;gap:var(--numerical-spacing-100)}
/* pills that open a menu (tags, objects, +N tags): Global UI Kit pill hover (accent/<colour>/surface-hover) */
button.pill{border:0;margin:0;font-family:inherit;cursor:pointer}
button.pill:hover,button.pill[aria-expanded="true"]{background:var(--color-semantic-accent-gray-surface-hover)}
button.pill.red:hover,button.pill.red[aria-expanded="true"]{background:var(--color-semantic-accent-red-surface-hover)}
button.pill.green:hover,button.pill.green[aria-expanded="true"]{background:var(--color-semantic-accent-green-surface-hover)}
button.pill.blue:hover,button.pill.blue[aria-expanded="true"]{background:var(--color-semantic-accent-blue-surface-hover)}
button.pill.orange:hover,button.pill.orange[aria-expanded="true"]{background:var(--color-semantic-accent-orange-surface-hover)}
button.pill.yellow:hover,button.pill.yellow[aria-expanded="true"]{background:var(--color-semantic-accent-yellow-surface-hover)}
button.pill.teal:hover,button.pill.teal[aria-expanded="true"]{background:var(--color-semantic-accent-teal-surface-hover)}
button.pill.purple:hover,button.pill.purple[aria-expanded="true"]{background:var(--color-semantic-accent-purple-surface-hover)}
button.pill.magenta:hover,button.pill.magenta[aria-expanded="true"]{background:var(--color-semantic-accent-magenta-surface-hover)}

/* a pill's actions menu is placed against the pill, inside its row */
.meta .pills,.more-line,.ovf-objs > .dd{position:relative}
.pill.obj svg{display:block;width:12px;height:12px}
.pill.obj .trunc{flex:1;text-align:left}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.msel{display:inline-flex;align-items:center;gap:var(--numerical-spacing-150);height:30px;padding:0 var(--numerical-spacing-150);border-radius:var(--numerical-border-radius-150);font-weight:500;color:var(--color-semantic-text-primary);font-variant-numeric:tabular-nums}
.msel:hover{background:var(--color-semantic-input-hover)}
.msel[aria-expanded="true"]{background:var(--color-semantic-input-hover)}
/* the header + while its Add menu is open: the iconButton's selected state (base.css), in every P3
   (conversation, task, linked window) */
.p3-header .ibtn[data-add][aria-expanded="true"]{background:var(--color-semantic-bg-fill-tertiary-pressed)}
/* a property moved into the ⋮ overflow menu (layoutMeta) */
.meta .m-cut{display:none}
/* ⋮ overflow: Objects panel (2026-Portfolio 776:106628) and the Tags menu inside app-menu */
.ovf-objs > .dd{width:100%;display:flex;flex-direction:column;gap:var(--numerical-spacing-200);padding:var(--numerical-spacing-300)}
.ovf-objs > .dd .pill.obj{width:100%}
/* +N objects popover: the Objects list as a popover under the pill (240px, like the ⋮ panel) */
.obj-pop{position:absolute;z-index:6;width:240px}
.obj-pop.ovf-objs > .dd{width:100%}
.am-panel tag-menu{position:static}
/* first select lines its text up with the title; its hover background bleeds into the margin */
.msel.first{margin-left:calc(-1 * var(--numerical-spacing-150))}
.msel .ic{color:var(--color-semantic-icon-secondary)}
.msel .ic.inbox{color:var(--color-semantic-accent-blue-text-secondary)}
/* participants: three 16px teammate avatars, each overlapping the last by 2px; the left one
   sits on top and the next is cut back 1px past its edge so there's a gap between them */
.stack{display:flex;height:16px}
.stack app-avatar+app-avatar{margin-left:-2px;-webkit-mask:linear-gradient(to right,transparent 3px,#000 3px);mask:linear-gradient(to right,transparent 3px,#000 3px)}
.vdiv{width:1px;height:16px;border-radius:var(--numerical-border-radius-100);background:var(--color-semantic-border-tertiary);flex:none}
.thread{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:var(--numerical-spacing-600);padding:var(--numerical-spacing-400) var(--numerical-spacing-400) var(--numerical-spacing-600)}
.msg{display:flex;flex-direction:column;background:var(--color-semantic-bg-surface-highlight);border:var(--numerical-border-width-025) solid var(--color-semantic-border-tertiary);border-radius:var(--numerical-border-radius-250);flex:none}
.msg-head{display:flex;align-items:center;justify-content:space-between;gap:var(--numerical-spacing-600);padding:var(--numerical-spacing-400);cursor:pointer;width:100%;text-align:left;border-radius:var(--numerical-border-radius-250)}
.msg-head .id{flex:1;min-width:0;display:flex;align-items:center;gap:var(--numerical-spacing-300);height:32px}
.msg-head .names{flex:1;min-width:0;display:flex;flex-direction:column}
.msg-head .from{display:flex;gap:var(--numerical-spacing-200);white-space:nowrap}
.msg-head .from b{font-weight:600}
.msg-head .side{display:flex;align-items:center;gap:var(--numerical-spacing-400);flex:none}
.time-s{font-size:var(--font-size-small);line-height:var(--font-lineHeight-200);letter-spacing:0;font-weight:500;color:var(--color-semantic-text-tertiary)}
.msg[data-state="collapsed"] .when-open{display:none}
.msg[data-state="expanded"] .when-closed{display:none}
.msg-body{display:flex;flex-direction:column;gap:var(--numerical-spacing-400);padding:var(--numerical-spacing-400)}
.msg-body .text{display:flex;flex-direction:column;gap:var(--numerical-spacing-500);color:var(--color-semantic-text-primary)}
.quote{display:inline-flex;width:fit-content;padding:var(--numerical-spacing-100) 0;color:var(--color-semantic-text-placeholder)}
.reply{align-self:flex-start}
.activity{display:flex;align-items:center;justify-content:center;gap:var(--numerical-spacing-150);align-self:center;padding:0 var(--numerical-spacing-400);font-size:var(--font-size-small);line-height:var(--font-lineHeight-200);letter-spacing:0;color:var(--color-semantic-text-tertiary);flex:none;border-radius:var(--numerical-border-radius-100)}
.activity .ic{color:var(--color-semantic-icon-secondary)}
.activity:hover{color:var(--color-semantic-text-secondary)}
.comment{display:flex;flex-direction:column;gap:var(--numerical-spacing-100);padding-left:var(--numerical-spacing-400);flex:none}
.comment .author{padding-left:46px;font-size:var(--font-size-small);line-height:var(--font-lineHeight-200);letter-spacing:0;font-weight:600;color:var(--color-semantic-text-secondary)}
.comment .row{display:flex;align-items:flex-start;gap:10px}
.comment .body{flex:1;min-width:0;display:flex;gap:var(--numerical-spacing-150);align-items:flex-start}
/* Comment hover (Figma "comment hover"): iconButtons 8px after the bubble. Their tops line up
   with the bubble and the time (Figma has them 6px down; changed on review).
   Space is always reserved so the bubble doesn't reflow when they appear; opacity (not
   visibility) keeps them reachable with Tab, which reveals the row via :focus-within. */
/* Only the comment bubble reveals them (linked-task entries have none). The
   row's box starts flush against it (negative margin over the body gap, padded back out) so
   the pointer can move onto the buttons without crossing a dead gap; hovering the row itself
   keeps it open. pointer-events:none at rest so the invisible buttons can't be hovered. */
.c-actions{display:flex;align-items:center;gap:var(--numerical-spacing-200);flex:none;margin-left:calc(-1 * var(--numerical-spacing-150));padding-left:var(--numerical-spacing-200);opacity:0;pointer-events:none;transition:opacity 150ms var(--p0-fade,ease-in-out)}
.bubble:hover + .c-actions,.c-actions:hover,.comment:focus-within .c-actions{opacity:1;pointer-events:auto}
.comment .row > .time-s{transition:opacity 150ms var(--p0-fade,ease-in-out)}
/* the time fades out while the buttons show, and back in when they hide; the linked-task
   entry has no buttons, so its time stays */
.comment:not(.lk-entry):has(.bubble:hover,.c-actions:hover) .row > .time-s,.comment:not(.lk-entry):focus-within .row > .time-s{opacity:0}
@media (prefers-reduced-motion:reduce){.c-actions,.comment .row > .time-s{transition:none}}
.bubble{max-width:640px;padding:var(--numerical-spacing-150) var(--numerical-spacing-200);border-radius:var(--numerical-border-radius-150);background:var(--color-semantic-accent-gray-surface);color:var(--color-semantic-text-secondary);overflow-wrap:anywhere}
.composer{display:flex;gap:var(--numerical-spacing-200);padding:0 var(--numerical-spacing-400);flex:none}
.bar{flex:1;min-width:0;display:flex;align-items:center;gap:var(--numerical-spacing-200);padding:5px 10px 5px 0;background:var(--color-semantic-input-inverse);border:var(--numerical-border-width-025) solid var(--color-semantic-border-tertiary);border-radius:14px;box-shadow:var(--elevation-1)}
.field{position:relative;flex:1;min-width:0;height:20px;margin-left:var(--numerical-spacing-300)}
.field input{position:absolute;inset:0;width:100%;border:0;outline:0;background:none;padding:0;font:inherit;letter-spacing:inherit;color:var(--color-semantic-text-primary);caret-color:var(--color-semantic-text-primary)}
.field .ph{position:absolute;inset:0;pointer-events:none;color:var(--color-semantic-text-placeholder)}
.field .ph b{font-weight:400;color:var(--color-semantic-text-tertiary)}
.field input:not(:placeholder-shown)+.ph{display:none}
.bar .acts{display:flex;align-items:center;gap:var(--numerical-spacing-050);flex:none}
/* actions stay hidden until the bar is active (focused, or holding a draft). At rest they take
   no width, so the placeholder ("… visible to <inbox>") shows in full; going active, they slide
   open (max-width 0 → 166px: 6 × 26px buttons + 5 × 2px gaps) and the field narrows with them,
   so the inbox name truncates gradually. Height is kept by the buttons, so the bar never jumps.
   pointer-events:none at rest; clicking anywhere in the bar lands in the field (inbox.js). */
.bar{cursor:text}
.bar .acts{max-width:0;overflow:hidden;opacity:0;pointer-events:none;
  transition:max-width 200ms cubic-bezier(.2,0,0,1),opacity 100ms var(--p0-fade,ease-in-out)}
.bar:focus-within .acts,.bar:has(.field input:not(:placeholder-shown)) .acts{max-width:166px;opacity:1;pointer-events:auto;
  transition:max-width 200ms cubic-bezier(.2,0,0,1),opacity 150ms var(--p0-fade,ease-in-out) 50ms}
@media (prefers-reduced-motion:reduce){.bar .acts,.bar:focus-within .acts,.bar:has(.field input:not(:placeholder-shown)) .acts{transition:none}}
.copilot{display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:14px;background:var(--color-semantic-input-inverse);border:var(--numerical-border-width-025) solid var(--color-semantic-border-tertiary);box-shadow:var(--elevation-1)}
.copilot:hover{background:var(--color-semantic-bg-fill-tertiary-hover)}

/* P4 · app rail */
.p4{flex:none;width:48px;display:flex;flex-direction:column;align-items:center;gap:var(--numerical-spacing-400);padding-top:var(--numerical-spacing-600)}
.p4 .apps{display:flex;flex-direction:column;gap:var(--numerical-spacing-300)}
/* P4 nav buttons (Figma: p4 nav button states · selected / hover / disabled).
   Filled icons in accent colours; .nav0 base comes from p0-panel.js. */
.p4 .nav0{background:var(--color-semantic-bg-surface-tertiary)}
.p4 .nav0.red{color:var(--color-semantic-accent-red-highlight)}
.p4 .nav0.teal{color:var(--color-semantic-accent-teal-highlight)}
.p4 .nav0.green{color:var(--color-semantic-accent-green-highlight)}
.p4 .nav0.blue{color:var(--color-semantic-accent-blue-highlight)}
.p4 .nav0:hover{background:var(--color-semantic-bg-surface-tertiary-hover)}
.p4 .nav0:active{background:var(--color-semantic-bg-surface-tertiary-active)}
.p4 .nav0[aria-pressed="true"]{background:var(--color-semantic-bg-surface-primary);border-color:var(--color-semantic-border-inverse)}
.p4 .nav0:disabled{background:var(--color-semantic-bg-surface-tertiary);cursor:not-allowed}
.app-logo{display:grid;place-items:center;width:28px;height:28px;border-radius:var(--numerical-border-radius-150)}
.app-logo:hover{background:var(--color-semantic-input-hover)}
.app-logo svg{border-radius:var(--numerical-border-radius-100)}

/* P3 · task conversation (Figma: Task description in P3 · Resting + filled / empty;
   Due dates › Due date not reached). Shown instead of the thread when a task is selected. */
.p3[data-kind="task"]{padding-bottom:0}
.p3[data-kind="task"] > :not(.p3-task),.p3:not([data-kind="task"]) > .p3-task{display:none}
.p3-task{flex:1;min-height:0;display:flex;flex-direction:column}
.tk-body{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column}
.tk-feed{display:flex;flex-direction:column;gap:var(--numerical-spacing-600);padding:var(--numerical-spacing-400) var(--numerical-spacing-400) var(--numerical-spacing-600)}
/* task comment bar: the shared .composer bar; the gradient fades the feed out above it */
.tk-foot{flex:none;padding:var(--numerical-spacing-500) var(--numerical-spacing-400) var(--numerical-spacing-400);background:linear-gradient(0deg,var(--color-semantic-bg-surface-primary) 51.282%,transparent)}

/* Global banner ("Task created", "Resolved", "Waiting"): bottom left, over P0/P1 (Figma: global-banner at x 60, 16px from the bottom) */
.banner-slot{position:absolute;left:60px;bottom:var(--numerical-spacing-400);z-index:10}
.banner-slot:empty{display:none}

/* Task description: resting · hover · active (Figma: Task description in P3).
   8px outer padding + 8px "hover container" padding, as in Figma. */
.tk-desc{display:flex;flex-direction:column;gap:var(--numerical-spacing-400);margin:var(--numerical-spacing-200);padding:var(--numerical-spacing-200);border-radius:var(--numerical-border-radius-150);cursor:text}
.tk-desc:hover:not(:focus-within){background:var(--color-semantic-input-hover)}
.tk-desc desc-field{display:block;width:100%;margin:0;padding:0;border:0;outline:0;background:none;overflow:hidden;font:inherit;letter-spacing:var(--font-letterSpacing-dense);color:var(--color-semantic-text-secondary);caret-color:var(--color-semantic-text-primary)}
.tk-desc desc-field:empty::before{font-size:var(--font-size-small2);line-height:var(--font-lineHeight-225);color:var(--color-semantic-text-tertiary);opacity:1}
.tk-desc.is-empty desc-field{font-size:var(--font-size-small2);line-height:var(--font-lineHeight-225)}
.tk-desc-tools{display:none;align-items:center;gap:var(--numerical-spacing-200)}
.tk-desc:focus-within .tk-desc-tools{display:flex}
/* 26px icon buttons laid out on a 16px grid, as in Figma (they overhang by 5px) */
.tk-desc-tools .ibtn{margin:-5px;color:var(--color-semantic-icon-secondary)}

/* Activity line, expanded (Figma: Activity line / expanded) */
.tk-act{display:flex;flex-direction:column;align-items:center;gap:var(--numerical-spacing-400)}
.tk-less{display:inline-flex;align-items:center;height:28px;padding:0 var(--numerical-spacing-400);border-radius:var(--numerical-border-radius-100);background:var(--color-semantic-input-hover);font-size:var(--font-size-small);line-height:var(--font-lineHeight-200);letter-spacing:var(--font-letterSpacing-normal);color:var(--color-semantic-text-tertiary)}
.tk-less:hover{color:var(--color-semantic-text-secondary)}
.tk-events{display:flex;flex-direction:column;gap:var(--numerical-spacing-400);margin:0;padding:0;list-style:none}
.tk-events li{display:flex;align-items:center;gap:var(--numerical-spacing-150);font-size:var(--font-size-small);line-height:var(--font-lineHeight-200);letter-spacing:var(--font-letterSpacing-normal);color:var(--color-semantic-text-primary)}
.tk-events li > .ic,.tk-events li > svg{flex:none;color:var(--color-semantic-icon-primary)}
.tk-events b{font-weight:600}
/* "by" a rule (Figma: 2026 Portfolio › 829:122754): the rule's name as an outlined pill, icon/settings-02 Filled 12 */
.tk-events li > span{display:inline-flex;align-items:center;gap:var(--numerical-spacing-100)}
.tk-events .rule-pill{display:inline-flex;align-items:center;gap:var(--numerical-spacing-050);padding:0 var(--numerical-spacing-100);border:var(--numerical-border-width-025) solid var(--color-semantic-border-primary);border-radius:var(--numerical-border-radius-100);background:var(--color-semantic-bg-fill-tertiary);font-weight:500;color:var(--color-semantic-accent-gray-text-primary);white-space:nowrap;font-size:inherit;line-height:inherit}
/* it's a button that opens the Edit rule menu: tertiary fill's hover while hovered or open */
.tk-events .rule-pill:hover,.tk-events .rule-pill[aria-expanded="true"]{background:var(--color-semantic-bg-fill-tertiary-hover)}
/* the Edit rule menu sits in the activity line: give it the menus' own type (body, 14/20) rather than the
   line's caption type, so its cell is the same as every other menu's (36px, 6px above and below it) */
.tk-events .pop-anchor app-menu{text-align:left;font-size:var(--font-size-medium);line-height:var(--font-lineHeight-250);letter-spacing:var(--font-letterSpacing-dense);font-weight:var(--font-weight-regular)}
.tk-events .rule-pill svg{flex:none}

/* Linked tasks (Figma: Create linked task via template) */
.pop-anchor{position:relative;display:inline-flex}
.lk-group{display:flex;align-items:center;gap:var(--numerical-spacing-150)}
.lk-group[hidden]{display:none}
.lk-entry .lk-verb{font-weight:var(--font-weight-regular)}
/* Linked popover: 288px, "Linked" header (46px) with +, then the cards */
.lk-pop{position:absolute;z-index:6}
.lk-pop .dd{width:288px}
.lk-head{position:relative;display:flex;align-items:center;justify-content:center;height:46px;border-bottom:var(--numerical-border-width-025) solid var(--color-semantic-border-tertiary);font-weight:var(--font-weight-medium);color:var(--color-semantic-text-primary)}
.lk-add{position:absolute;right:var(--numerical-spacing-300);top:50%;transform:translateY(-50%)}
.lk-list{display:flex;flex-direction:column;gap:var(--numerical-spacing-100);padding:var(--numerical-spacing-150)}
.lk-empty{margin:0;padding:var(--numerical-spacing-200);color:var(--color-semantic-text-tertiary)}

/* Create task from a selection (Figma: Task Improvement FY27 Q3).
   Quoted text stays highlighted in its message: accent/orange/surface-hover. */
::highlight(task-quote){background-color:var(--color-semantic-accent-orange-surface-hover)}
.lk-stack{display:flex;flex-direction:column;align-items:flex-start;gap:var(--numerical-spacing-150);min-width:0}
/* the quote above the task card ("Replied-to"): grey surface, 2px line, sender + quoted text */
.lk-quote{display:flex;gap:var(--numerical-spacing-200);max-width:100%;margin:0;padding:var(--numerical-spacing-400);border:var(--numerical-border-width-025) solid var(--color-semantic-border-tertiary);border-radius:var(--numerical-border-radius-150);background:var(--color-semantic-accent-gray-surface)}
.lk-quote-line{flex:none;width:2px;border-radius:var(--numerical-border-radius-050);background:var(--color-semantic-border-primary)}
.lk-quote figcaption{display:flex;flex-direction:column;gap:var(--numerical-spacing-050);min-width:0;font-size:var(--font-size-small);line-height:var(--font-lineHeight-200);letter-spacing:var(--font-letterSpacing-normal)}
.lk-quote b{font-weight:var(--font-weight-semibold);color:var(--color-semantic-text-secondary)}
.lk-quote blockquote{margin:0;color:var(--color-semantic-text-tertiary);overflow-wrap:anywhere}
/* task P3: the quoted text at the top, like the New task composer's References block. Hover:
   accent/gray/surface-hover and an xsmall iconButton (icon/arrow-narrow-up-right 16,
   icon/tertiary), 6px from the top and right, that opens the original conversation. */
.tk-quote{position:relative;flex:none;margin:var(--numerical-spacing-400) var(--numerical-spacing-400) 0}
.tk-quote:hover{background:var(--color-semantic-accent-gray-surface-hover)}
.tk-quote-go{position:absolute;top:var(--numerical-spacing-150);right:var(--numerical-spacing-150);border:0;padding:0;color:var(--color-semantic-icon-tertiary);cursor:pointer;opacity:0}
.tk-quote:hover .tk-quote-go,.tk-quote-go:focus{opacity:1}
.lk-quote mark{background:var(--color-semantic-accent-orange-surface-hover);color:inherit}
/* tags menu (tag-menu) opens under the +N tags pill; the wrapper anchors it */
.meta-wrap{position:relative}

/* @mentions in comment bubbles (Figma: Conversations UI Kit › Comment, 30127:11000): body-semibold, accent blue */
.bubble .mention{font-weight:var(--font-weight-semibold);color:var(--color-semantic-accent-blue-text-primary)}

/* HTML demos: only P3 in the window (.app.only-p3, the Intro - Problem demo): P0, P1, P2 and the
   P4 app rail are hidden, and the conversation sits 8px in from every edge. The window keeps its
   elevation-steve-hayes shadow (.app above). */
/* base.css gives the window a 1200px minimum (--app-min-w) and window-resize may set --app-w */
/* A fixed 700 × 760 design size (the 8px included), scaled as a whole by the demo with CSS zoom
   (--demo-zoom) so it keeps its proportions in any smaller space, e.g. a 768px-wide screen, instead
   of reflowing. base.css's 1200px minimum and window-resize's --app-w / --app-h don't apply. */
.app.only-p3,.stage[data-sized] .app.only-p3{width:700px;height:760px;min-width:0;max-width:none;flex:none;zoom:var(--demo-zoom,1)}
/* its container is at most 768px wide, with 48px on every side of the card: the card is 672px wide
   at most (700 × 760 zoomed to fit), smaller on smaller screens, the 48px kept */
.stage:has(.app.only-p3){max-width:768px;padding:var(--numerical-spacing-1200)}
.app.only-p3 :is(p0-panel,p1-panel,.p2,.p4){display:none}
.app.only-p3 .work{padding:var(--numerical-spacing-200)}
/* the thread's scrollbar shows only while the viewer scrolls it (data-scrolling, set by the demo): at rest
   it's transparent, its space kept so nothing shifts. The Kit has no scrollbar, so it's the browser's. */
.app.only-p3 .thread:not([data-scrolling]){scrollbar-color:transparent transparent}

/* HTML demos: tooltips held back while a demo fills in the task composer's fields
   (demo-solution.js sets this until Inbox and Due date are both filled) */
html[data-demo-no-tips] .ui-tip{display:none}
