/* Loaded exclusively by the independent test-management entry. The three palettes
   share the same Colibri controls, board hit targets and keyboard interactions. */
html[data-relay-style] body {
  --c-bg:#f5f8f6; --c-surface:#fff; --c-sunken:#edf3ef; --c-line:#cfddd5;
  --c-fg:#172b22; --c-muted:#50655a; --c-accent:#006848; --c-accent-soft:#d8eee3;
  --c-brand-fg:white; --c-radius:10px; --rail:#fcfefc; --rail-text:#425c4f;
  --rail-active:#dcefe4; --rail-ink:#15492e; --edge:clamp(16px,2.4vw,38px);
  --heading-font:var(--c-font); --card-pad:13px; --card-rule:1px solid var(--c-line);
  --ink:var(--c-fg); --muted:var(--c-muted); --line:var(--c-line); --purple:var(--c-accent);
  color:var(--ink); background:var(--c-bg);
}
html[data-relay-style="blueprint"] body {
  --c-bg:#f2f6fc; --c-sunken:#e5edf8; --c-line:#c3d1e5; --c-fg:#142843; --c-muted:#49617c;
  --c-accent:#2355af; --c-accent-soft:#dbe8ff; --c-radius:4px; --rail:#1a304c;
  --rail-text:#d4e0f0; --rail-active:#344f70; --rail-ink:#fff; --card-pad:10px;
}
html[data-relay-style="ledger"] body {
  --c-bg:#fbf8f1; --c-surface:#fffdf8; --c-sunken:#f1ede3; --c-line:#d8cdb8;
  --c-fg:#382f25; --c-muted:#6b5d4e; --c-accent:#8c402a; --c-accent-soft:#f4e1d6;
  --c-radius:3px; --rail:#f1ecdf; --rail-text:#665646; --rail-active:#e7ddcb;
  --rail-ink:#4b3323; --heading-font:Georgia,"Noto Serif Georgian",serif; --card-pad:15px;
}
html[data-relay-style] #relay-nav { background:var(--rail); color:var(--rail-ink); padding:18px 10px 12px; min-height:0; }
html[data-relay-style] #relay-nav .brand { margin:0 10px 16px; min-height:36px; font:700 25px/1 var(--heading-font); letter-spacing:-1px; }
html[data-relay-style] #relay-nav .logo { width:25px; }
html[data-relay-style] #relay-nav .logo b { background:var(--rail-ink); }
html[data-relay-style] #relay-nav nav { min-height:0; overflow:auto; scrollbar-width:thin; }
html[data-relay-style] #relay-nav nav button { color:var(--rail-text); min-height:32px; min-block-size:32px; height:auto; padding:5px 11px; font-size:13px; gap:10px; border-radius:var(--c-radius); }
html[data-relay-style] #relay-nav nav small { color:var(--rail-text); margin:16px 12px 4px; font-size:10px; letter-spacing:.1em; }
html[data-relay-style] #relay-nav nav small:first-child { margin-top:2px; }
html[data-relay-style] #relay-nav nav button:is(.on,:hover) { background:var(--rail-active); color:var(--rail-ink); }
html[data-relay-style] .ico { display:grid; place-items:center; width:18px; }
html[data-relay-style] .app-icon { width:18px; height:18px; flex:none; }
html[data-relay-style] body main > header.relay-header { justify-content:flex-start; gap:12px; padding:9px var(--edge); min-height:58px; background:var(--c-surface); }
.relay-header #group { margin:0; max-width:min(32vw,24rem); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block; text-align:left; }
.relay-header #group::after { content:'⌄'; margin-inline-start:8px; }
.relay-header #crumb { min-width:0; }
.relay-header #crumb ol { margin:0; }
.relay-header .header-tools { margin-inline-start:auto; display:flex; align-items:center; gap:6px; flex:none; }
.relay-header .header-tools button,.relay-header > [data-ui-sidebar-toggle] { width:38px; height:38px; padding:0; display:grid; place-items:center; border-radius:var(--c-radius); }
.relay-header #account button { border-radius:50%; background:var(--c-accent-soft); color:var(--c-accent); font-weight:750; }
#shell-inbox { position:relative; }
#shell-count:not([hidden]) { position:absolute; top:-4px; right:-4px; padding:1px 4px; background:var(--c-accent); color:white; border-radius:9px; font:700 10px/1.4 system-ui; }
html[data-relay-style] body #view { max-width:1760px; padding:clamp(18px,2.6vw,40px) var(--edge); }
html[data-relay-style] #view > .heading { gap:12px; align-items:flex-start; margin-bottom:20px; }
html[data-relay-style] #view h1 { font:700 clamp(25px,2.4vw,36px)/1.12 var(--heading-font); letter-spacing:-.035em; }
html[data-relay-style] #view > .heading p { max-width:68ch; margin:6px 0 0; line-height:1.5; }
html[data-relay-style] #view > .boardselect { justify-content:flex-start; background:var(--c-surface); padding:8px 12px; border:var(--card-rule); border-radius:var(--c-radius); margin-bottom:14px; }
html[data-relay-style] #view .lane { border:1px solid var(--c-line); border-radius:var(--c-radius); min-width:0; }
html[data-relay-style] #view .lane > h3 { display:flex; align-items:center; gap:7px; margin:2px 0 9px; font-size:13px; line-height:1.5; }
html[data-relay-style] .lane > h3::before { content:''; width:8px; height:8px; border-radius:50%; background:var(--lane-color,var(--c-muted)); flex:none; }
[data-board-lane="Passed"],[data-board-lane="Done"] { --lane-color:#258259; }
[data-board-lane="Failed"] { --lane-color:#b74a55; }
[data-board-lane="Blocked"] { --lane-color:#aa691b; }
[data-board-lane="In progress"] { --lane-color:#416abb; }
html[data-relay-style] #view .deal.ticket { padding:var(--card-pad); border:var(--card-rule); border-radius:var(--c-radius); background:var(--c-surface); color:var(--c-fg); line-height:1.45; overflow-wrap:anywhere; }
html[data-relay-style] #view .deal.ticket strong { font-size:14px; line-height:1.35; margin:5px 0 8px; }
html[data-relay-style] #view .deal.ticket small { color:var(--c-muted); }
html[data-relay-style] #view .case-move { z-index:1; }
html[data-relay-style] :is(.panel,.inspector,fieldset) { border-color:var(--c-line); border-radius:var(--c-radius); }
html[data-relay-style] .inspector { background:var(--c-sunken); }
html[data-relay-style] .panelhead { align-items:center; gap:10px; flex-wrap:wrap; }
html[data-relay-style] td { vertical-align:middle; }
html[data-relay-style] dialog { max-width:calc(100vw - 24px); }
html[data-relay-style] dialog form { min-width:0; }
.shell-results { display:grid; gap:4px; overflow:auto; max-height:min(48dvh,24rem); }
html[data-relay-style] .shell-result { width:100%; display:flex; align-items:center; justify-content:space-between; height:auto; min-height:40px; white-space:normal; text-align:start; }
.shell-result strong { overflow-wrap:anywhere; }
.shell-result small,.inbox-row small { color:var(--c-muted); }
.inbox-row { display:grid; gap:4px; border-inline-start:3px solid transparent; padding:8px 12px; }
.inbox-row[data-new=true] { border-color:var(--c-accent); background:var(--c-accent-soft); }
html[data-relay-style="blueprint"] :is(#view .key,#relay-nav nav small,#view .lane h3) { font-family:ui-monospace,monospace; }
html[data-relay-style="blueprint"] #view > .boardselect { border-left:4px solid var(--c-accent); }
html[data-relay-style="ledger"] #view > .heading { border-bottom:2px solid var(--c-fg); padding-bottom:14px; }
html[data-relay-style="ledger"] #view :is(h2,.lane h3) { font-family:var(--heading-font); }
html[data-relay-style="ledger"] #view .deal.ticket { border-width:0 0 1px; }
#phone-tabs { display:none; }
@media(max-width:920px) { .relay-header #crumb { display:none; } }
@media(max-width:670px) {
  html[data-relay-style] body #view { padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
  html[data-relay-style] body main > header.relay-header { position:sticky; top:0; z-index:6; gap:4px; min-height:54px; padding:8px 12px; }
  .relay-header > [data-ui-sidebar-toggle] { display:none; }
  .relay-header #group { max-width:calc(100vw - 165px); }
  html[data-relay-style] #phone-tabs { position:fixed; inset:auto 0 0; z-index:30; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; padding:4px 4px calc(4px + env(safe-area-inset-bottom)); overflow:visible; border-top:1px solid var(--c-line); background:var(--c-surface); }
  html[data-relay-style] #phone-tabs button { display:flex; flex-flow:column; gap:3px; justify-content:center; align-items:center; min-height:48px; width:100%; padding:3px 1px; font-size:11px; line-height:1.25; color:var(--c-muted); border:0; border-radius:var(--c-radius); }
  html[data-relay-style] #phone-tabs button[aria-current=page],html[data-relay-style] #phone-tabs button[aria-expanded=true] { background:var(--c-accent-soft); color:var(--c-accent); }
  html[data-relay-style] #relay-nav[data-state=open] { height:calc(100dvh - 61px - env(safe-area-inset-bottom)); display:flex; }
  html[data-relay-style] #relay-nav[data-state=open] nav { display:block; overflow:auto; }
  html[data-relay-style] #relay-nav nav small { display:block; }
  html[data-relay-style] #relay-nav nav button { width:100%; }
  html[data-relay-style] #view > .heading { flex-wrap:wrap; }
  html[data-relay-style] #view .caselanes { max-width:100%; }
  html[data-relay-style] #toast { bottom:calc(68px + env(safe-area-inset-bottom)); }
}
@media(max-width:670px) { .relay-header [data-language] { display:none; } }
html[data-relay-style] #view .columns > *,
html[data-relay-style] #view .columns [data-ui-part=item] > div { min-width:0; }
html[data-relay-style] #view .columns .link { height:auto; white-space:normal; overflow-wrap:anywhere; }
@media(max-width:920px) {
  html[data-relay-style] #view .columns { grid-template-columns:minmax(0,1fr); }
}

.co-tabs,.co-actions,.co-list-head,.co-post > div { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.co-tabs { margin:0 0 18px; gap:3px; border-bottom:1px solid var(--c-line); }
.co-tabs a { color:var(--c-muted); font-weight:600; padding:8px 10px; text-decoration:none; border-bottom:3px solid transparent; }
.co-tabs a[aria-current=page] { color:var(--c-accent); border-bottom-color:var(--c-accent); }
.co-panel { padding:clamp(14px,2vw,24px); margin:12px 0; min-width:0; background:var(--c-surface); border:1px solid var(--c-line); border-radius:var(--c-radius); }
.co-list-head { justify-content:space-between; gap:12px; }
.co-list-head input { width:min(100%,18rem); }
.co-list { margin-top:12px; }
.co-row,html[data-relay-style] button.co-row { display:flex; width:100%; justify-content:space-between; align-items:center; gap:12px; padding:12px 4px; height:auto; white-space:normal; text-align:start; overflow-wrap:anywhere; border:0; border-bottom:1px solid var(--c-line); border-radius:0; background:var(--c-surface); color:var(--c-fg); text-decoration:none; }
.co-row small,.co-post small,.co-members { display:block; color:var(--c-muted); }
.co-tag { flex:none; background:var(--c-sunken); color:var(--c-muted); border-radius:4px; padding:2px 8px; font-size:12px; }
.co-body,.co-post p,.co-decision p { white-space:pre-wrap; overflow-wrap:anywhere; color:var(--c-fg); }
.co-actions,.co-members { margin-top:12px; }
.co-post { border-top:1px solid var(--c-line); padding:12px 0; }
.co-post > div { justify-content:space-between; margin-bottom:5px; }
.co-decision { background:var(--c-accent-soft); border-left:3px solid var(--c-accent); margin:14px 0; padding:12px; }
.co-back { display:inline-block; margin-bottom:10px; }
.co-choices { max-height:10rem; overflow:auto; }
.co-choices label { display:flex; align-items:center; gap:8px; padding:4px; }
@media(max-width:670px){.co-tabs{flex-wrap:nowrap;overflow-x:auto}.co-tabs a{white-space:nowrap}.co-list-head input{width:100%}}

body[data-session-pending] { visibility:hidden; }
.tf-wordmark { display:flex; align-items:center; gap:.65rem; }
.tf-wordmark img { flex:none; }
