:root {
  /* Semantic colors shared by the catalog, editor and assistant. */
  --portal-surface: #fff;
  --portal-surface-subtle: #f6f8f6;
  --portal-surface-hover: #eff3ef;
  --portal-surface-pressed: #e1e7e2;
  --portal-surface-disabled: #f1f3f1;
  --portal-text: #202722;
  --portal-text-secondary: #526057;
  --portal-text-disabled: #626c65;
  --portal-on-brand: #fff;
  --accent: #265430;
  --portal-brand-hover: #204929;
  --portal-brand-pressed: #193b21;
  --portal-brand-subtle: #f3f8f3;
  --portal-selected: #e4efe6;
  --portal-stroke-selected: #89aa8e;
  --line: #d7dfd8;
  --portal-stroke-control: #848f88;
  --portal-focus: #174f2c;
  --portal-success: #206638;
  --portal-warning: #744108;
  --portal-warning-surface: #fff4dd;
  --portal-warning-stroke: #ad680d;
  --portal-danger: #a02722;
  --portal-danger-hover: #82201c;
  --portal-danger-pressed: #661915;
  --portal-danger-surface: #fff1ef;
  --portal-shadow: rgb(25 48 31 / 8%);

  --portal-font: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --portal-font-body: .9375rem;
  --portal-font-label: .875rem;
  --portal-font-caption: .8125rem;
  --portal-weight-semibold: 600;
  --portal-space-1: .25rem;
  --portal-space-2: .5rem;
  --portal-space-3: .75rem;
  --portal-space-4: 1rem;
  --portal-space-6: 1.5rem;
  --portal-radius-control: 4px;
  --portal-radius-surface: 8px;
  --portal-control-height: 2.25rem;

  /* FluentIcon in Fluent UI Blazor 4.x uses this token for its SVG fill. */
  --accent-fill-rest: var(--accent);
  font-family: var(--portal-font);
  color: var(--portal-text);
  background: var(--portal-surface);
  accent-color: var(--accent);
}
* {box-sizing:border-box}
body {margin:0;font-size:var(--portal-font-body);line-height:1.45}
a {color:var(--accent)}
button,input,textarea,select {font:inherit}
button,a,input,select,textarea,summary,[tabindex] {outline-offset:2px}
:focus-visible {outline:2px solid var(--portal-focus)}
button {cursor:pointer}
.navitem,.iconbtn,.primary,.secondary,.tool-text,.pubstatus,.search,.chat-mark,.assignment-verdict {
  --accent-fill-rest: currentColor;
}
.masthead,.product,.account,.tools,.actions,.panel-title,.pubstatus,.search,.check {display:flex;align-items:center}
.masthead {padding:.85rem 2rem;min-height:4rem;border-bottom:1px solid var(--line);justify-content:space-between;gap:var(--portal-space-4)}
.product {font-size:1.25rem;letter-spacing:-.02em;font-weight:var(--portal-weight-semibold);text-decoration:none;color:inherit;gap:.8rem}
.product img {flex:none}
.account {gap:.65rem}
.account form {margin:0}
.welcome {max-width:46rem;margin:6vw auto;padding:2rem}
.welcome h1,.listpane h1,.editor h2 {letter-spacing:-.035em}
.welcome p,.steps {line-height:1.6}
.setup-progress {padding:1rem 1.25rem;background:var(--portal-brand-subtle);border:1px solid var(--line);border-radius:var(--portal-radius-surface)}
.setup-progress p {margin:.5rem 0}
.setup-progress small {color:var(--portal-text-secondary);font-variant-numeric:tabular-nums}
.setup-activity {display:flex;align-items:center;gap:.6rem}
.setup-activity::before {content:"";flex:none;width:.85rem;height:.85rem;border:2px solid var(--portal-stroke-selected);border-top-color:var(--accent);border-radius:50%}
@media (prefers-reduced-motion:no-preference) { .setup-activity::before {animation:setup-spin 1s linear infinite} }
@keyframes setup-spin {to {transform:rotate(1turn)}}
.steps {padding-left:1.4rem}
.steps li {margin-bottom:.9rem}
.setup-guide {border-block:1px solid var(--line);padding:1rem 0;margin:1rem 0}
.setup-guide summary {font-weight:var(--portal-weight-semibold);cursor:pointer}
.welcome code {overflow-wrap:anywhere}
.primary,.secondary,.textlink {
  display:inline-flex;align-items:center;justify-content:center;gap:var(--portal-space-2);
  min-height:var(--portal-control-height);padding:var(--portal-space-1) var(--portal-space-3);
  border-radius:var(--portal-radius-control);text-decoration:none;font-weight:var(--portal-weight-semibold);
}
.primary {color:var(--portal-on-brand);background:var(--accent);border:1px solid transparent}
.primary:not(:disabled,[aria-disabled=true]):hover {background:var(--portal-brand-hover)}
.primary:not(:disabled,[aria-disabled=true]):active {background:var(--portal-brand-pressed)}
.secondary,.iconbtn {color:var(--portal-text);background:var(--portal-surface);border:1px solid var(--portal-stroke-control)}
.secondary:not(:disabled,[aria-disabled=true]):hover,.iconbtn:not(:disabled,[aria-disabled=true]):hover {background:var(--portal-surface-hover)}
.secondary:not(:disabled,[aria-disabled=true]):active,.iconbtn:not(:disabled,[aria-disabled=true]):active {background:var(--portal-surface-pressed)}
.catalog-workspace {
 --nav-compact-width:4.3rem;--nav-wide-width:15rem;--nav-width:var(--nav-compact-width);
 --nav-caption:none;--nav-align:center;
 --pane-padding:clamp(1rem,2.1vw,2.5rem);
}
.shell {
 display:grid;grid-template-columns:var(--nav-width) minmax(21rem,1.15fr) minmax(20rem,1fr);min-height:calc(100dvh - 4rem)
}
/* Select the stored preference synchronously with the grid, including on the first server-rendered frame. */
@media(min-width:1280px) {
 .catalog-workspace:has(> .shell:not([data-nav-wide="collapsed"])) {
  --nav-width:var(--nav-wide-width);--nav-caption:inline;--nav-align:flex-start
 }
}
@media(width < 1280px) {
 .catalog-workspace:has(> .shell[data-nav-compact="expanded"]) {
  --nav-width:var(--nav-wide-width);--nav-caption:inline;--nav-align:flex-start
 }
}
.rail {background:var(--portal-surface-subtle);padding:.8rem .45rem;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:stretch;gap:.4rem}
.navitem {display:flex;align-items:center;justify-content:var(--nav-align);gap:.6rem;border:0;background:transparent;border-radius:var(--portal-radius-control);padding:.75rem .5rem;min-height:2.7rem;color:var(--portal-text-secondary);text-align:left}
.navitem:hover {background:var(--portal-surface-hover)}
.navitem.selected,.navitem.selected:hover {background:var(--portal-selected)}
.navitem.selected {box-shadow:inset 3px 0 var(--accent);color:var(--accent)}
.nav-sections {display:contents}
.nav-caption {display:var(--nav-caption);min-width:0;overflow-wrap:anywhere}
.rail .navitem svg {flex-shrink:0}
.listpane,.editor {padding:var(--pane-padding);min-width:0}
.shell:not(:has(.editor)) .listpane {grid-column:2/-1}
.listpane {grid-column:2}
.listpane h1,.editor h2 {margin:0 0 .6rem;font-weight:var(--portal-weight-semibold)}
h1 {font-size:clamp(1.65rem,2.65vw,2.55rem)}
.editor h2 {font-size:clamp(1.45rem,2.1vw,2.05rem)}
.editor {border-left:1px solid var(--line);grid-column:3;container:entry-editor / inline-size}
.panel-title {justify-content:space-between;gap:var(--portal-space-2)}
.iconbtn {border-radius:var(--portal-radius-control);display:inline-grid;place-items:center;min-height:var(--portal-control-height);min-width:var(--portal-control-height);padding:var(--portal-space-1)}
.pubstatus {gap:.4rem;color:var(--accent);font-size:var(--portal-font-label);flex-wrap:wrap}
.org {font-size:var(--portal-font-caption);color:var(--portal-text-secondary);border-right:1px solid var(--line);padding-right:.65rem;max-inline-size:32ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.iconbtn[title],.rail .navitem {position:relative}
.iconbtn[title]:focus-visible::after,.rail .navitem:focus-visible::after {
 content:attr(title);position:absolute;z-index:5;top:100%;right:0;white-space:nowrap;background:var(--portal-text);color:var(--portal-on-brand);
 font-size:var(--portal-font-caption);padding:.3rem .5rem;border-radius:4px
}
.rail .navitem:focus-visible::after {top:0;left:100%;right:auto}
.pubstatus .iconbtn,.panel-title .iconbtn,.account .iconbtn {border-color:transparent;background:transparent}
.tools {gap:var(--portal-space-2);margin:var(--portal-space-6) 0 var(--portal-space-4)}
:where(input:not([type=checkbox],[type=radio],[type=hidden]),select,textarea),.search,.chat-composer > div {
  color:var(--portal-text);background:var(--portal-surface);border:1px solid var(--portal-stroke-control);
  border-radius:var(--portal-radius-control);min-height:var(--portal-control-height);
}
:where(input:not([type=checkbox],[type=radio],[type=hidden]),select,textarea) {
  padding:var(--portal-space-1) var(--portal-space-2);font-weight:400;
}
input::placeholder,textarea::placeholder {color:var(--portal-text-secondary);opacity:1}
.search {min-width:0;flex:1;padding:0 var(--portal-space-2);color:var(--portal-text-secondary)}
.search input {width:100%;min-width:0;min-height:0;border:0;padding:var(--portal-space-1) var(--portal-space-2);background:transparent}
.search:focus-within,.chat-composer > div:focus-within {border-color:var(--portal-focus)}
.search:has(input:focus-visible),.chat-composer > div:has(textarea:focus-visible) {outline:2px solid var(--portal-focus);outline-offset:2px}
.search input:focus-visible,.chat-composer textarea:focus-visible {outline:none}
.filter {display:flex;gap:var(--portal-space-2);align-items:center;margin-bottom:.65rem}
.catalog-table {width:100%;border-collapse:collapse}
.catalog-table th,.catalog-table td {text-align:left;border-bottom:1px solid var(--line);padding:var(--portal-space-3) var(--portal-space-2)}
.catalog-table td {overflow-wrap:anywhere}
.catalog-table th {background:var(--portal-surface-subtle);color:var(--portal-text-secondary);font-size:var(--portal-font-caption);font-weight:var(--portal-weight-semibold)}
.rowlink {background:transparent;border:0;color:inherit;font-weight:var(--portal-weight-semibold);text-align:left;padding:.15rem 0}
.rowlink:hover {text-decoration:underline}
.chosen {background:var(--portal-selected);box-shadow:inset 3px 0 var(--accent)}
.badge {white-space:nowrap;color:var(--portal-success)}
.badge::before {content:'● ';font-size:.72em}
.badge.off {color:var(--portal-text-secondary)}
.muted,.draft-state {color:var(--portal-text-secondary)}
.editor form {display:grid;grid-template-columns:minmax(0,1fr);gap:var(--portal-space-4)}
.editor form label:not(.check) {display:grid;gap:.35rem;font-weight:var(--portal-weight-semibold)}
.editor input:not([type=checkbox]),.editor select,.editor textarea,.filter select {width:100%;max-width:100%}
.editor input[readonly] {background:var(--portal-surface-subtle);font-family:ui-monospace,monospace}
.editor textarea {resize:vertical}
.check {gap:var(--portal-space-2)}
.check input {accent-color:var(--accent);width:1.1rem;height:1.1rem}
.actions {justify-content:flex-end;gap:.6rem;border-top:1px solid var(--line);padding-top:var(--portal-space-4);margin-top:.8rem}
.editor-actions {display:flex;flex-wrap:wrap;align-items:stretch}
/* Let the actual font and icon size each action. A narrow row wraps whole actions. */
.editor-actions > button {flex:none;min-height:2.5rem;justify-content:center;white-space:nowrap}
.editor-actions > .delete-action {margin-inline-end:auto}
@container entry-editor (width < 22rem) {
 .editor-actions {gap:var(--portal-space-1)}
 .editor-actions > .primary,.editor-actions > .secondary {padding-inline:.375rem;gap:var(--portal-space-1)}
}
@container entry-editor (width < 15rem) {
 .editor-actions {gap:.125rem}
 .editor-actions > .delete-action {width:var(--portal-control-height)}
 .editor-actions > .primary,.editor-actions > .secondary {padding-inline:.125rem;font-size:var(--portal-font-label)}
 .editor-actions > .primary svg {display:none}
}
.delete-action {width:2.5rem;color:var(--portal-danger)}
.delete-action:enabled:hover {background:var(--portal-danger-surface);border-color:var(--portal-danger)}
.delete-action[title]:focus-visible::after {left:0;right:auto}
.delete-confirmation {flex-basis:100%;min-width:0;overflow-wrap:anywhere;border-left:3px solid var(--portal-danger);background:var(--portal-danger-surface);padding:.8rem}
.delete-confirmation p {margin:.5rem 0}
.delete-buttons {display:flex;gap:var(--portal-space-2);flex-wrap:wrap}
.danger {background:var(--portal-danger);border-color:var(--portal-danger)}
.primary.danger:not(:disabled,[aria-disabled=true]):hover {background:var(--portal-danger-hover);border-color:var(--portal-danger-hover)}
.primary.danger:not(:disabled,[aria-disabled=true]):active {background:var(--portal-danger-pressed);border-color:var(--portal-danger-pressed)}
.import-panel p {line-height:1.5}
.import-changes {list-style:none;padding:0;max-height:45vh;overflow:auto}
.import-changes li {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.25rem .8rem;padding:.7rem 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.import-changes small {grid-column:1/-1;color:var(--portal-text-secondary)}
.import-panel .check {align-items:baseline}
.import-panel .check input {flex:none}
.language-picker {display:flex;align-items:center;gap:.6rem;margin-top:1.1rem;color:var(--portal-text-secondary)}
.language-picker + .tools {margin-top:.7rem}
.translation-fields {display:grid;gap:.8rem;min-width:0;margin:0;padding:.8rem .9rem .9rem;border:1px solid var(--line);border-radius:var(--portal-radius-control)}
.translation-fields legend {padding:0 .3rem;font-weight:var(--portal-weight-semibold);color:var(--accent)}
.translation-fields p {margin:0}
.language-list {margin:1.2rem 0;padding:0;max-width:40rem;list-style:none}
.language-list li {display:flex;align-items:baseline;justify-content:space-between;gap:var(--portal-space-4);border-bottom:1px solid var(--line);padding:.65rem .25rem}
.language-list small,.import-source dt {color:var(--portal-text-secondary)}
.add-language label {display:block;margin-bottom:.3rem;font-weight:var(--portal-weight-semibold)}
.add-language div {display:flex;align-items:center;flex-wrap:wrap;gap:.6rem}
.add-language input {min-height:2.4rem;max-width:100%}
.import-source {margin-top:var(--portal-space-4);overflow-wrap:anywhere}
.import-source summary {cursor:pointer}
.import-source > div {margin-top:.7rem;padding:.5rem 0;border-bottom:1px solid var(--line)}
.import-source dl {display:grid;grid-template-columns:auto minmax(0,1fr);gap:.25rem .7rem;font-size:var(--portal-font-label)}
.import-source dd {margin:0}
.label-lookup {font-size:var(--portal-font-label)}
.label-lookup label {display:grid;gap:.3rem}
.label-lookup textarea {font-family:ui-monospace,monospace;line-height:1.4}
.alert,.warning {border-inline-start:3px solid;padding:var(--portal-space-3);border-radius:var(--portal-radius-control)}
.alert {background:var(--portal-danger-surface);color:var(--portal-danger);border-color:var(--portal-danger)}
.warning {background:var(--portal-warning-surface);color:var(--portal-warning);border-color:var(--portal-warning-stroke)}
.audit {border-bottom:1px solid var(--line);padding:.8rem 0;overflow-wrap:anywhere}
.audit summary {cursor:pointer}
.audit dt {font-weight:var(--portal-weight-semibold)}
.audit dd {margin:.2rem 0 .5rem}
.summary {display:flex;gap:var(--portal-space-4);justify-content:space-between;align-items:center;width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);padding:1rem .3rem;text-align:left}
.summary:hover {background:var(--portal-surface-hover)}
.skip {position:absolute;transform:translateY(-150%);background:var(--portal-surface);padding:.4rem;z-index:1}
.skip:focus {transform:none}
@media(max-width:960px){
 .catalog-workspace {--nav-compact-width:3.7rem;--nav-wide-width:14rem}
 .shell {grid-template-columns:var(--nav-compact-width) minmax(0,1fr)}
 .shell[data-nav-compact="expanded"] .rail {position:relative;width:var(--nav-width);z-index:1;box-shadow:2px 0 5px var(--portal-shadow)}
 .rail {grid-row:1/3}
 .listpane,.editor {grid-column:2}
 .editor {border-left:0;border-top:1px solid var(--line)}
 .masthead {padding:.6rem 1rem}
}
@media(max-width:540px){
 .catalog-workspace {--pane-padding:.75rem}
 .masthead {flex-wrap:wrap}
 .product {font-size:1.05rem}
 .tools {flex-wrap:wrap}
 .language-picker {flex-wrap:wrap}
 .search {flex-basis:100%}
 .catalog-table th,.catalog-table td {padding:.6rem .2rem}
 .catalog-table td {font-size:var(--portal-font-label)}
}
@media(max-width:380px) {
 .shell {display:flex;flex-direction:column}
 .rail {
   position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(2.75rem,1fr));
   gap:.25rem;padding:.25rem;border:0;border-bottom:1px solid var(--line);
 }
 .shell[data-nav-compact="expanded"] .rail {width:auto;grid-template-columns:repeat(2,minmax(0,1fr));box-shadow:none}
 .rail .navitem:focus-visible {position:static}
 .rail .navitem:focus-visible::after {top:100%;left:.25rem;right:.25rem;text-align:center;white-space:normal}
 .listpane h1,.editor h2 {overflow-wrap:anywhere}
}

.tool-layout .listpane {grid-column:2/-1}
.starter-layout,.assignment-layout {display:grid;grid-template-columns:minmax(13rem,.78fr) minmax(18rem,1.22fr);gap:1.2rem;align-items:start;margin-top:1.2rem}
.assistant-card,.definition-proposal {background:var(--portal-surface);border:1px solid var(--line);border-radius:var(--portal-radius-surface);padding:1.1rem;min-width:0;overflow-wrap:anywhere}
.assistant-card h2 {margin:0 0 .8rem;font-size:1.1rem}
.assistant-card h3 {font-size:var(--portal-font-label);margin:1.2rem 0 .5rem}
.assistant-card p {line-height:1.45}
.assistant-overview {display:flex;gap:var(--portal-space-2);flex-wrap:wrap;margin-top:var(--portal-space-4)}
.assistant-field {display:grid;gap:.35rem;margin:.7rem 0;font-size:var(--portal-font-label);font-weight:var(--portal-weight-semibold)}
.assistant-field input,.assistant-field textarea,.assistant-field select {width:100%;min-width:0;max-width:100%}
.assistant-field textarea {resize:vertical}
.tool-text {display:inline-flex;align-items:center;gap:.35rem;padding:.25rem 0;background:none;border:0;color:var(--accent);font-weight:var(--portal-weight-semibold);text-align:left}
.definition-help {font-size:var(--portal-font-label)}
.definition-proposal {background:var(--portal-brand-subtle);border-color:var(--portal-stroke-selected)}
.definition-proposal p {margin:.65rem 0}
.suggestion-examples {margin:.8rem 0;display:grid;gap:.2rem}
.suggestion-examples dt {font-weight:var(--portal-weight-semibold)}
.suggestion-examples dd {margin:0 0 .4rem}
.assignment-categories,.starter-edit {border:0;padding:0;margin:1rem 0 0;min-width:0}
.assignment-categories legend,.starter-edit legend {font-weight:var(--portal-weight-semibold)}
.assignment-option,.starter-header,.assignment-sources li {display:flex;align-items:center;gap:.6rem;padding:.65rem 0;border-bottom:1px solid var(--line)}
.assignment-option small,.starter-header button,.assignment-sources li>span+span {margin-left:auto}
.assignment-verdict {display:flex;align-items:flex-start;gap:.7rem;background:var(--portal-selected);border-radius:var(--portal-radius-control);padding:.9rem}
.assignment-verdict strong,.assignment-verdict small,.assignment-sources small {display:block}
.assignment-verdict p {margin:.4rem 0 0}
.assignment-note,.assistant-card small {font-size:var(--portal-font-caption);color:var(--portal-text-secondary)}
.assignment-sources,.available-labels {padding:0;list-style:none}
.assignment-sources .winning,.existing {color:var(--accent);font-weight:var(--portal-weight-semibold)}
.available-labels {display:flex;flex-wrap:wrap;gap:.35rem}
.available-labels li {padding:.2rem .55rem;background:var(--portal-selected);border-radius:var(--portal-radius-control)}
.starter-row {padding:.65rem 0;border-bottom:1px solid var(--line)}
.starter-header {padding:0;border:0}
.starter-row p {margin:.45rem 0}
.starter-edit {background:var(--portal-surface-subtle);padding:.75rem .85rem;border:1px solid var(--line);border-radius:var(--portal-radius-control)}
.assistant-card .actions {flex-wrap:wrap}
.editor .assignment-layout {display:block;margin:.4rem 0}
.editor .assignment-card+.assignment-card,.editor .assignment-result {margin-top:.65rem}
.editor .assignment-option {display:flex!important;font-weight:400!important}
@media(max-width:740px) { .starter-layout,.assignment-layout {grid-template-columns:1fr} }
.privacy-template {margin:1rem 0;max-width:68rem}
.privacy-template h2 {margin:.4rem 0}
.privacy-actions {display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:.8rem 0}
.privacy-line {padding:.65rem 0;border-bottom:1px solid var(--line)}
.privacy-line summary,.privacy-choices summary {cursor:pointer}
.privacy-line+.secondary,.privacy-choices+.secondary {margin-top:.8rem}
.privacy-label {display:grid;gap:.35rem;max-width:30rem;margin:.65rem 0}
.privacy-choices {list-style:none;margin:.6rem 0;padding:0}
.privacy-choices li {display:grid;gap:.3rem;padding:.6rem 0;border-bottom:1px solid var(--line)}
.privacy-choices li>small,.privacy-choices li>details {margin-left:1.65rem}
.privacy-matches {display:grid;grid-template-columns:fit-content(45%) 1fr;gap:.5rem 1rem}
.privacy-matches dd {margin:0}
.privacy-matches small {display:block}

catalog-chat-boundary {display:contents}
catalog-chat-boundary[hidden] {display:none}
.chat-mobile-area {display:none}
.starter-review {margin-top:var(--portal-space-4)}
.account .chat-launch[aria-expanded=true] {background:var(--portal-selected);border-color:var(--portal-stroke-selected)}
.chat-launch {color:var(--accent);border-color:var(--portal-stroke-selected);background:var(--portal-brand-subtle);font-size:var(--portal-font-label)}
.catalog-workspace.with-chat {
 --nav-wide-width:clamp(13rem,15vw,15rem);--splitter-width:.75rem;
 /* Keep enough content width for the editor's icon, both button labels and spacing. */
 --catalog-pane-min:calc(18.5rem + 2 * var(--pane-padding) + 1px);
 --catalog-reserve:calc(var(--nav-width) + 2 * var(--catalog-pane-min));
 display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start;container-type:inline-size;
}
catalog-chat-splitter {display:none;grid-column:2}
.with-chat .chat-panel {grid-column:3}
@media(width > 760px) {
 .with-chat .chat-panel {
    width:var(--chat-width,clamp(22rem,32cqw,33rem));
    min-width:min(20rem,45cqw);
    max-width:max(min(20rem,45cqw), min(42rem,48cqw,calc(100cqw - var(--splitter-width) - var(--catalog-reserve))));
 }
 catalog-chat-splitter:defined {
    display:grid;place-items:center;position:sticky;top:0;width:var(--splitter-width);height:calc(100dvh - 4rem);
    min-height:23rem;cursor:col-resize;touch-action:none;user-select:none;
    background:linear-gradient(var(--line),var(--line)) center / 1px 100% no-repeat;
 }
 catalog-chat-splitter::after {
    content:"";width:.25rem;height:2.5rem;border-radius:.25rem;background:var(--portal-stroke-control,var(--line));
 }
 catalog-chat-splitter:is(:hover,:focus-visible,[data-dragging])::after {background:var(--accent)}
 catalog-chat-splitter:focus-visible {outline:2px solid var(--portal-focus,var(--accent));outline-offset:-2px}
 @media(forced-colors:active) {catalog-chat-splitter::after {background:ButtonText;forced-color-adjust:none}}
}
.with-chat .shell {grid-template-columns:var(--nav-width) minmax(0,1fr) minmax(0,1fr)}
.with-chat .starter-layout,.with-chat .assignment-layout {grid-template-columns:1fr}
.chat-panel {position:sticky;top:0;display:flex;flex-direction:column;height:calc(100dvh - 4rem);min-height:23rem;min-width:0;background:var(--portal-surface);border-left:1px solid var(--line);box-shadow:-3px 0 15px var(--portal-shadow);overflow:hidden}
.chat-header,.chat-composer {padding:1rem 1.15rem}
.chat-header {border-bottom:1px solid var(--line)}
.chat-header .panel-title {gap:.3rem}
.chat-header h2 {display:flex;gap:var(--portal-space-2);align-items:center;margin:0 auto 0 0;font-size:1.12rem;letter-spacing:-.02em}
.chat-header .tool-text {margin:0;font-size:var(--portal-font-caption);white-space:nowrap}
.chat-mark {display:inline-grid;place-items:center;color:var(--accent);background:var(--portal-selected);border-radius:var(--portal-radius-surface);width:2rem;height:2rem}
.chat-context {margin:.7rem 0 0;display:flex;gap:.45rem;flex-wrap:wrap;align-items:center;color:var(--portal-text-secondary);font-size:var(--portal-font-caption);overflow-wrap:anywhere}
.chat-context > :not(:first-child)::before {content:"·";margin-right:.45rem;color:var(--portal-text-secondary)}
.chat-task {display:flex;align-items:center;gap:var(--portal-space-2);margin-top:.65rem;font-size:var(--portal-font-caption)}
.chat-task select {min-width:0}
.chat-thread {padding:1.15rem;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;line-height:1.5;overflow-wrap:anywhere}
.chat-thread h3 {margin:0;font-size:1rem}
.chat-thread .chat-earlier h3 {color:var(--portal-text-secondary);font-size:var(--portal-font-caption)}
.chat-archived-card {margin:.5rem 0 1rem;padding:.5rem .9rem;border-left:2px solid var(--portal-stroke-control);font-size:var(--portal-font-label)}
.chat-archived-card dd {margin:0 0 .5rem;white-space:pre-wrap}
.chat-thread .chat-now {margin:1rem 0 .5rem;padding-top:.75rem;border-top:1px solid var(--portal-stroke-control)}
.chat-welcome {color:var(--portal-text-secondary);font-size:var(--portal-font-label)}
.chat-prompt {font-size:var(--portal-font-caption);border:1px solid var(--portal-stroke-selected);border-radius:1rem;background:var(--portal-brand-subtle);padding:.35rem .8rem;margin:.2rem .2rem .2rem 0;color:var(--accent);text-align:left}
.chat-prompt:enabled:hover {background:var(--portal-selected)}
.tool-text:enabled:hover,.textlink:hover {text-decoration:underline}
.chat-question,.chat-answer {white-space:pre-wrap}
.chat-question {width:fit-content;max-width:90%;margin:.5rem 0 .7rem auto;background:var(--portal-selected);padding:.55rem .85rem;border-radius:11px 11px 2px 11px}
.chat-answer {margin:.5rem 0 1rem}
.chat-card {padding:.9rem 1rem;border:1px solid var(--portal-stroke-selected);border-left:3px solid var(--accent);border-radius:var(--portal-radius-surface);background:var(--portal-brand-subtle);overflow-wrap:anywhere}
.chat-card dl {font-size:var(--portal-font-label)}
.chat-card dt {color:var(--portal-text-secondary);font-weight:var(--portal-weight-semibold)}
.chat-card dd {margin:0 0 .55rem}
.chat-card button {font-size:var(--portal-font-caption);margin:.25rem .3rem .25rem 0}
.chat-composer {border-top:1px solid var(--line)}
.chat-composer details {color:var(--portal-text-secondary);font-size:var(--portal-font-caption)}
.chat-composer > div {display:flex;align-items:end;gap:var(--portal-space-2);border-radius:var(--portal-radius-surface);padding:var(--portal-space-2)}
.chat-composer textarea {resize:vertical;max-height:7rem;min-height:2.7rem;min-width:0;flex:1;border:0;background:none;padding:.35rem}
.chat-composer button {min-height:2.5rem;padding:.45rem .6rem}
.chat-composer small {display:block;color:var(--portal-text-secondary);margin-top:.35rem}
.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
button:disabled,button[aria-disabled=true],input:disabled,select:disabled,textarea:disabled {
  color:var(--portal-text-disabled);background:var(--portal-surface-disabled);border-color:var(--line);
  cursor:default;opacity:1;
}
@media (forced-colors:active) {
  :root {--portal-focus:Highlight;--portal-stroke-control:ButtonText}
  .navitem.selected:not(:focus-visible),.chosen,.chat-launch[aria-expanded=true]:not(:focus-visible) {
    outline:1px solid Highlight;outline-offset:-2px;
  }
  button:disabled,button[aria-disabled=true],input:disabled,select:disabled,textarea:disabled {
    color:GrayText;border-color:GrayText;
  }
}
@media(max-width:1160px) {
 .catalog-workspace.with-chat {
   --nav-compact-width:3.7rem;--nav-wide-width:12rem;
   --catalog-reserve:calc(var(--nav-compact-width) + var(--catalog-pane-min));
 }
 .with-chat .shell {grid-template-columns:var(--nav-compact-width) minmax(0,1fr)}
 .with-chat .rail {grid-row:1/3}
 .with-chat .shell[data-nav-compact="expanded"] .rail {position:relative;width:var(--nav-width);z-index:1}
 .with-chat .editor {grid-column:2;border-left:0;border-top:1px solid var(--line)}
}
@media(max-width:760px) {
 .catalog-page:has(catalog-chat-boundary:not([hidden]) .chat-panel) {position:fixed;inset:0;z-index:10;display:flex;flex-direction:column;background:var(--portal-surface)}
 .with-chat .shell {display:none}
 .catalog-workspace.with-chat {display:flex;flex:1;min-height:0}
 .chat-panel {position:static;width:100%;height:100%;min-height:0;border:0}
 .chat-mobile-area {display:flex;gap:var(--portal-space-2);align-items:center;margin-top:.55rem;font-size:var(--portal-font-caption)}
 .chat-mobile-area select {min-width:0;max-width:100%}
 .account {max-width:100%;flex-wrap:wrap}
 .account .chat-launch {padding:.4rem;min-width:2.35rem;justify-content:center}
 .account .chat-launch-label,.account .org {display:none}
 .chat-header,.chat-composer,.chat-thread {padding:.85rem}
 .chat-composer {padding-bottom:max(.85rem,env(safe-area-inset-bottom))}
 body:has(catalog-chat-boundary:not([hidden]) .chat-panel) {overflow:hidden}
}
