.feature-workspace {
  --edge: #354151;
  --panel: #192331;
  --muted: #a9b5c6;
  --link: #a2c6ff;
  --green: #9cddbd;
  --mono: ui-monospace, Menlo, monospace;
  min-height: 100%;
  background: #101723;
  color: #f3f6fc;
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}
.feature-workspace a:hover { color: var(--link); text-decoration: underline; }
.feature-workspace :is(a, button):focus-visible { outline: 2px solid #93c5fd; outline-offset: 3px; }
.fw-wrap { max-width: 1400px; margin: auto; padding: 30px 4.5% 42px; }
.fw-crumb { display: flex; align-items: center; gap: 12px; min-height: 55px; padding: 12px 4.5%; border-bottom: 1px solid var(--edge); color: var(--muted); font-size: 12px; }
.fw-crumb strong { color: #e3e8f0; font-weight: 500; }
.fw-heading, .fw-actions, .fw-band, .fw-card footer, .fw-wave { display: flex; align-items: center; gap: 10px; }
.fw-heading, .fw-card footer { flex-wrap: wrap; justify-content: space-between; }
.fw-heading { margin-bottom: 16px; }
.feature-workspace h1:where(:not(.description-prose *)) { font-size: clamp(34px, 3.7vw, 54px); line-height: 1.11; letter-spacing: -.053em; font-weight: 630; }
.fw-heading p { color: var(--muted); font-size: 13px; }
.feature-workspace h2:where(:not(.description-prose *)) { display: flex; align-items: center; gap: 10px; margin: 25px 0 12px; font-size: 21px; font-weight: 620; letter-spacing: -.037em; }
.fw-count, .fw-mono, .fw-dates { font: 12px/1.5 var(--mono); color: var(--muted); letter-spacing: normal; }
.fw-count { padding: 0 6px; border: 1px solid var(--edge); border-radius: 5px; }
.fw-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--edge); border-radius: 7px; background: #202c3d; font-size: 13px; font-weight: 550; cursor: pointer; }
.fw-primary { background: #3466cd; border-color: #5081e4; color: white; }
.fw-danger { background: transparent; color: #ffb6bd; }
.feature-workspace .fw-button:hover { filter: brightness(1.14); color: white; text-decoration: none; }
.fw-panel { min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--edge); border-radius: 13px; }
.fw-deck { display: grid; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.fw-card { display: flex; flex-direction: column; }
.fw-band { position: relative; isolation: isolate; overflow: hidden; justify-content: space-between; padding: 15px 19px; background: #203743; color: #b1e2dd; }
.fw-violet { background: #302e49; color: #d2c2f8; }
.fw-art { position: absolute; z-index: -1; right: -10px; top: 50%; transform: translateY(-50%); width: 62%; height: 180px; opacity: .45; pointer-events: none; }
.fw-project { display: inline-flex; min-width: 0; align-items: center; gap: 8px; font-weight: 600; }
.fw-initial { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 7px; background: #182735; }
.fw-badge, .fw-design-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.fw-badge { background: #2c3544; color: #d0d8e4; }
.fw-badge::before, .fw-design-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fw-active { background: #233e60; color: #acd2ff; }
.fw-completed { background: #203c34; color: var(--green); }
.fw-paused { background: #403522; color: #f6d18f; }
.fw-card-body { flex: 1; padding: 18px 20px; }
.fw-card-body > h3 { margin: 4px 0 8px; font-size: 23px; line-height: 1.18; letter-spacing: -.033em; font-weight: 700; }
.fw-preview:not([hidden]) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 38px; }
.fw-description { position: relative; }
.fw-preview[aria-hidden="true"] { visibility: hidden; position: absolute; inset: 0 0 auto; }
.fw-preview { font-size: 13px; color: var(--muted); }
.fw-description-toggle { padding: 4px 0; margin-top: 4px; color: var(--link); font-size: 12px; font-weight: 600; cursor: pointer; }
.fw-hero .fw-description { margin-top: 16px; }
.fw-hero .fw-preview { min-height: 0; font-size: inherit; }
.fw-meter { margin-top: 15px; }
.fw-meter > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-size: 12px; color: #c2ccda; }
.fw-meter b { color: #edf3fc; }
.fw-track { height: 5px; margin-top: 7px; border-radius: 5px; background: #384657; overflow: hidden; }
.fw-track i { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.fw-card footer { padding: 11px 19px; border-top: 1px solid var(--edge); background: #18222f; font-size: 12px; color: #b9cce3; }
.fw-manager { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; font-weight: 600; font-size: 12px; color: var(--link); }
.fw-unavailable { color: #b1b8c6; font-weight: 400; }
.fw-row { display: grid; grid-template-columns: minmax(120px, 1fr) 90px minmax(86px, 125px) 146px; align-items: center; gap: 18px; padding: 14px 17px; }
.fw-row + .fw-row, .fw-task + .fw-task { border-top: 1px solid var(--edge); }
.fw-created { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.fw-created, .fw-row small, .fw-dates { overflow-wrap: anywhere; }
.fw-row > div:first-child { min-width: 0; }
.fw-row small { display: block; margin-top: 3px; color: var(--muted); }
.fw-row .fw-badge { justify-self: start; }
.fw-row .fw-meter { margin: 0; }
.fw-row .fw-manager { justify-self: end; }
.fw-hero .fw-band { min-height: 66px; }
.fw-hero-body { padding: 20px 24px; }
.fw-hero-body > h1 { margin: 5px 0 9px; }
.fw-actions { flex-wrap: wrap; margin-top: 18px; }
.fw-hero .fw-meter { border-top: 1px solid var(--edge); padding-top: 16px; }
.fw-details { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(225px, 1fr); gap: 20px; }
.fw-details section { min-width: 0; }
.fw-wave { justify-content: space-between; padding: 10px 16px; background: #202d3e; color: #bccada; font: 11px var(--mono); }
.fw-wave strong { color: white; }
.fw-task { display: flex; align-items: start; gap: 10px; padding: 13px 16px; }
.fw-task p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.fw-run { display: inline-block; color: var(--link); font: 11px var(--mono); margin-left: 6px; }
.fw-dates { margin-top: 21px; font-size: 11px; line-height: 1.8; }
.fw-empty { padding: 24px; color: var(--muted); border: 1px dashed var(--edge); border-radius: 10px; }
.fw-notice { padding: 11px 16px; color: #c9deff; background: #1d3049; font-size: 12px; }

@media (max-width: 1100px) {
  .fw-details { grid-template-columns: minmax(0, 1fr); }
  .fw-row { grid-template-columns: minmax(110px, 1fr) 73px 90px 138px; gap: 10px; }
}
@media (min-width: 768px) and (max-width: 960px) {
  .fw-deck { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .fw-wrap { padding: 22px 16px 35px; }
  .fw-crumb { min-height: 40px; padding: 8px 16px; }
  .fw-details { gap: 0; }
}
@media (max-width: 560px), (min-width: 768px) and (max-width: 860px) {
  .fw-deck { grid-template-columns: minmax(0, 1fr); }
  .fw-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 15px; }
  .fw-row .fw-badge { justify-self: end; }
  .fw-row .fw-meter { max-width: 130px; }
  .fw-preview:not([hidden]) { min-height: 0; }
  .fw-hero-body { padding: 17px; }
  .fw-hero-body > h1 { font-size: 32px; }
  .fw-actions { gap: 6px; }
  .fw-task { padding: 12px; }
}
@media (max-width: 560px) {
  .fw-run { display: flex; align-items: center; gap: 3px; width: fit-content; min-height: 30px; margin-left: 0; }
}

.fw-design-title { font-size: 16px; font-weight: 700; line-height: 1.2; }
.fw-credit { font-size: 12px; color: var(--muted); }
.fw-revision { display: flex; align-items: center; padding: 10px; }
.fw-thumbnail { width: 48px; height: 36px; border-radius: 4px; object-fit: cover; }

/* Review uses the width left by the application navigation. */
.fw-room { container: workspace / inline-size; min-height: 0; flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.fw-room [hidden] { display: none !important; }
.fw-room .fw-crumb { flex: none; min-height: 47px; padding: 0 2.35%; background: #151e2b; }
.fw-room .fw-crumb a:first-child { color: #edf3fc; font-size: 18px; font-weight: 700; }
.fw-room-header { isolation: isolate; position: relative; overflow: hidden; flex: none; padding: 17px 2.35% 20px; background: #1c2938; border-bottom: 1px solid var(--edge); }
.fw-room-header .fw-band { position: absolute; inset: 0; z-index: -1; background: none; color: #678f92; pointer-events: none; }
.fw-room-header .fw-band :is(a, span) { display: none; }
.fw-room-header .fw-art { width: 36%; height: 260px; }
.fw-room-header .fw-heading { margin: 0; flex-wrap: nowrap; justify-content: flex-start; }
.fw-room-header h1 { min-width: 0; font-size: clamp(29px, 3cqw, 43px); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fw-room-header button { cursor: pointer; }
.fw-room-meta { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12px; color: #bdcad9; }
.fw-panes { display: grid; grid-template-columns: minmax(292px,.85fr) minmax(0,1.9fr); flex: 1; min-height: 0; gap: 16px; padding: 18px 2.35% 20px; }
.fw-panes > section, .fw-design-review { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.fw-chat { background: #151e2b; }
.fw-pane-head, .fw-tabs { flex: none; display: flex; align-items: center; height: 51px; gap: 16px; padding: 0 15px; border-bottom: 1px solid var(--edge); background: #1b2736; }
.fw-pane-head { justify-content: space-between; }
.fw-room .fw-pane-head h2, .fw-dialog header h2 { font-size: 15px; margin: 0; }
.fw-pane-head small { font-size: 11px; color: #b8d8c9; }
.fw-pane-head small::before { content: "●"; margin-right: 5px; color: #9cddbd; }
.fw-tabs button { white-space: nowrap; display: flex; align-items: center; align-self: stretch; justify-content: center; gap: 7px; padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.fw-tabs button[aria-pressed=true] { border-color: #8eb7ff; color: #edf3fc; }
.fw-tabs .fw-count { font-size: 10px; }
.fw-compact-tabs { display: none; }
.fw-threads, #workspace-tasks { min-height: 0; flex: 1; padding: 16px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.fw-byline { display: none; }
.fw-chat .fw-byline, .fw-arrival strong { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 600; color: #d8e0ec; }
.fw-chat .fw-byline time { color: var(--muted); font: 10px var(--mono); white-space: nowrap; }
.fw-chat .fw-by-user { text-align: right; }
.fw-chat .fw-user-bubble { padding: 10px 12px; border: 1px solid #365fa4; border-radius: 12px 12px 3px 12px; background: #254f9c; max-width: 93%; }
.fw-chat .fw-user-bubble img { max-width: min(100%, 20rem); height: auto; }
.fw-chat .fw-user-bubble > div, .fw-chat .chat-reply { font-size: 13px; }
.fw-chat .chat-reply { margin-left: 18px; }
.fw-arrival { margin: 12px 0; color: var(--muted); font-size: 12px; }
.fw-arrival a { display: inline-block; background: #203148; color: #bed6ff; padding: 4px 7px; border: 1px solid #3d536e; border-radius: 5px; font-size: 11px; }
.fw-composer-wrap { flex: none; padding: 13px 14px; border-top: 1px solid #2f3b4b; background: var(--panel); }
.fw-composer { min-width: 0; background: #273445; border: 1px solid #475568; border-radius: 11px; }
.fw-composer:focus-within { outline: 2px solid #80acff; outline-offset: 1px; }
.fw-composer textarea { display: block; width: 100%; height: 44px; min-height: 44px; max-height: min(100px, 22dvh); resize: none; border: 0; outline: 0; padding: 10px 12px 0; font-size: 13px; background: transparent; }
.fw-compose-bar { display: flex; justify-content: space-between; padding: 3px 7px 6px; }
.fw-compose-bar button { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 7px; cursor: pointer; }
.fw-compose-bar [type=submit] { background: #3466cd; font-size: 18px; }
.fw-compose-bar :disabled { background: #39485a; color: #afbbc8; }
.fw-target { display: flex; align-items: center; width: fit-content; max-width: calc(100% - 22px); margin: 10px 11px 0; padding-left: 9px; gap: 6px; border: 1px solid #516986; border-radius: 99px; background: #22364e; color: #d8e8ff; font-weight: 600; font-size: 11px; }
.fw-target button { width: 30px; min-height: 28px; flex: none; cursor: pointer; }
.fw-target:not([hidden]) + textarea { padding-top: 6px; }
.fw-feedback-error { padding: 8px 10px; margin-bottom: 8px; border: 1px solid #805356; border-radius: 7px; background: #412b36; color: #ffd0cf; font-size: 12px; }
.fw-feedback-error button { text-decoration: underline; font-weight: 700; }
.fw-design-review, .fw-stage, .fw-preview-surface { flex: 1; }
.fw-room[data-review=tasks] .fw-design-review, .fw-room[data-review=designs] #workspace-tasks { display: none; }
.fw-catalog { display: flex; flex: none; overflow-x: auto; padding: 13px 15px 8px; gap: 9px; scrollbar-width: thin; }
.fw-design-card { flex: 1 0 120px; min-width: 0; display: flex; align-items: center; gap: 9px; border: 1px solid #3c4859; border-radius: 8px; background: #202c3b; padding: 8px 10px; text-align: left; cursor: pointer; }
.fw-design-card[aria-pressed=true] { background: #26374b; border-color: #809fce; }
.fw-design-card img { width: 34px; height: 34px; object-fit: cover; object-position: top; border-radius: 5px; }
.fw-design-card span { min-width: 0; }
.fw-design-card strong, .fw-design-card small { display: block; }
.fw-design-card strong { font-size: 13px; line-height: 1.25; }
.fw-design-card small { color: #bfcbda; font: 10px/1.4 var(--mono); }
.fw-design-card [data-state=Approved] { color: var(--green); }
.fw-design-card [data-state=Failed] { color: #ffb2b2; }
.fw-design-card :is([data-state=Working], [data-state=Queued]) { color: #f2cd8e; }
.fw-stage { min-height: 0; display: flex; flex-direction: column; margin: 0 15px; overflow: auto; }
.fw-selectors { display: flex; align-items: center; min-height: 38px; gap: 8px; font-size: 12px; }
.fw-selectors select { min-width: 0; max-width: 48%; color-scheme: dark; padding: 5px 2px; }
.fw-selectors .fw-mono { margin-left: auto; white-space: nowrap; }
.fw-preview-surface { display: flex; min-height: 0; overflow: auto; border-radius: 8px; }
.fw-preview-surface iframe, .fw-preview-surface > img { display: block; border: 0; width: 100%; height: 100%; object-fit: contain; object-position: top; }
.fw-open-preview { display: inline-flex; align-items: center; gap: 5px; flex: none; min-height: 30px; margin-left: 2px; padding: 0 9px; border: 1px solid #3d536e; border-radius: 6px; background: #203148; color: #bed6ff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.feature-workspace .fw-open-preview:hover { background: #26374b; border-color: #809fce; color: #e1edff; text-decoration: none; }
/* Pager overlays the preview so paging never shifts layout. */
.fw-preview-frame { position: relative; display: flex; flex: 1; min-height: 0; }
.fw-pager {
  position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px;
  border: 1px solid #475568; border-radius: 50%; background: #101723d9; color: #edf3fc; cursor: pointer;
  box-shadow: 0 4px 14px #070e1980; backdrop-filter: blur(4px);
}
.fw-pager-prev { left: 10px; }
.fw-pager-next { right: 10px; }
.fw-pager:hover { background: #26374b; border-color: #809fce; }
.fw-pager:disabled { opacity: .35; cursor: default; background: #101723d9; border-color: #475568; }
.fw-placeholder { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed #465567; border-radius: 10px; padding: 16px; text-align: center; color: #bcc8d8; }
.fw-placeholder { --fw-state-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9cde4' stroke-width='1.7' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M3 8l9-5 9 5-9 5z M3 12l9 5 9-5 M3 16l9 5 9-5'/%3E%3C/svg%3E"); }
.fw-placeholder[data-state=working], .fw-placeholder[data-state=queued] { --fw-state-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9cde4' stroke-width='1.7' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 1 0 0-18z M12 7v5l3 2'/%3E%3C/svg%3E"); }
.fw-placeholder[data-state=failed] { --fw-state-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9cde4' stroke-width='1.7' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 3 2 21h20z M12 9v5 M12 17v.5'/%3E%3C/svg%3E"); }
.fw-chat > .fw-placeholder { --fw-state-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9cde4' stroke-width='1.7' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M5 10h14v11H5z M8 10V7a4 4 0 1 1 8 0v3'/%3E%3C/svg%3E"); }
#workspace-tasks > .fw-placeholder { --fw-state-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9cde4' stroke-width='1.7' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M2 6l2 2 3-4 M10 6h11 M2 13l2 2 3-4 M10 13h11 M10 20h11'/%3E%3C/svg%3E"); }
.fw-placeholder::before {
  content: ""; width: 41px; height: 41px; flex: none; margin-bottom: 6px; border-radius: 11px;
  background: #243343 var(--fw-state-icon) center / 21px no-repeat;
}
.fw-placeholder p { max-width: 32ch; font-size: 13px; line-height: 1.55; }
.fw-placeholder strong { color: #e3eaf4; font-size: 16px; }
.fw-chat > .fw-placeholder, .fw-catalog[hidden] + .fw-stage { margin: 15px; }
.fw-review-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 11px 15px; border-top: 1px solid var(--edge); background: #1b2736; }
.fw-review-actions > span { flex: 1; font-size: 11px; color: var(--muted); }
.fw-review-actions button { font-size: 12px; min-height: 35px; }
.fw-review-actions :disabled { cursor: default; opacity: .6; }
.fw-review-actions [data-approved=true] { background: #213f34; color: #abdfc5; border-color: #426553; opacity: 1; }
#workspace-tasks h2 { margin-top: 0; justify-content: space-between; }
.fw-dialog { position: fixed; width: min(540px, calc(100% - 32px)); max-height: 80dvh; margin: auto; background: var(--panel); color: #edf3fc; border: 1px solid #475568; border-radius: 13px; padding: 16px; }
.fw-dialog::backdrop { background: #070e19b8; }
.fw-dialog > header { display: flex; justify-content: space-between; align-items: center; }
.fw-dialog > header button { width: 32px; height: 32px; font-size: 21px; }
.fw-dialog .fw-wrap { padding: 12px 0; }
.fw-dialog .fw-hero-body { padding: 0; }
.fw-dialog .fw-details { display: block; }
@container workspace (max-width: 1090px) {
  .fw-panes { grid-template-columns: minmax(281px,.82fr) minmax(0,1.5fr); gap: 12px; padding: 14px; }
}
@container workspace (max-width: 900px) {
  .fw-room .fw-crumb { min-height: 39px; padding-inline: 16px; }
  .fw-room-header { padding: 13px 16px; }
  .fw-room-header h1 { font-size: 27px; }
  .fw-panes { display: flex; padding: 0; gap: 0; }
  .fw-panes > section { flex: 1; border: 0; border-radius: 0; }
  .fw-room[data-view=chat] .fw-review, .fw-room:not([data-view=chat]) .fw-chat, .fw-wide-tabs { display: none; }
  .fw-compact-tabs { display: flex; height: 45px; gap: 0; }
  .fw-compact-tabs button { flex: 1; }
  .fw-pane-head { height: 43px; }
  .fw-composer-wrap { padding: 10px 14px max(12px, env(safe-area-inset-bottom)); }
  .fw-composer textarea { font-size: 16px; }
  .fw-compose-bar button { width: 40px; height: 36px; }
  .fw-catalog { padding: 11px 12px 4px; gap: 7px; }
  .fw-design-card { padding: 8px; gap: 6px; }
  .fw-stage { margin: 0 12px; }
  .fw-review-actions { padding: 10px 12px max(11px, env(safe-area-inset-bottom)); }
  .fw-review-actions button { min-height: 44px; }
}
@container workspace (max-width: 530px) {
  .fw-pager { width: 44px; height: 44px; margin-top: -22px; }
  .fw-pager-prev { left: 6px; }
  .fw-pager-next { right: 6px; }
  .fw-open-preview { padding: 0 8px; }
  .fw-open-preview span { display: none; }
  .fw-open-preview::after { content: "Preview"; }
  .fw-selectors { gap: 6px; }
  .fw-selectors select { flex: 1 1 auto; max-width: none; text-overflow: ellipsis; }
  .fw-selectors select + select { flex: 0 1 auto; }
  .fw-review-actions > span { display: none; }
  .fw-review-actions button { flex: 1; }
  .fw-review-actions button:first-of-type { flex: 1.22; }
  .fw-design-card img { width: 25px; height: 31px; }
  .fw-target button { min-height: 34px; }
}
.fw-evidence { margin-top: 14px; font-size: 12px; }
.fw-evidence summary { cursor: pointer; color: var(--link); }
.fw-dialog .fw-hero h3 { font-size: 20px; font-weight: 650; margin-top: 5px; }
.fw-target select { max-width: 45%; min-width: 0; color-scheme: dark; font-weight: 500; }
.fw-target-choice { padding: 8px 10px 0; font-size: 12px; }
.fw-target-choice button { margin-left: 4px; color: var(--link); text-decoration: underline; }
.fw-task-wave { margin-top: 16px; border-radius: 9px; }
.fw-task-wave .fw-task { justify-content: space-between; font-size: 13px; }
.fw-task-status { flex: none; padding: 3px 8px; border-radius: 20px; background: #303b4b; font-size: 10px; }
#workspace-tasks > .fw-placeholder, .fw-chat > .fw-placeholder { flex: none; min-height: 160px; padding: 20px; }
@container workspace (max-width: 365px) {
  .fw-compact-tabs { padding-inline: 6px; }
  .fw-compact-tabs button { gap: 4px; }
  .fw-room-header h1 { font-size: 24px; }
  .fw-room-header .fw-heading { gap: 5px; }
}
.fw-mobile-crumb { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: #b4c0d0; }
.fw-day { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 10px var(--mono); margin-bottom: 12px; }
.fw-day::before, .fw-day::after { content: ""; flex: 1; border-top: 1px solid #2d3948; }
@media (max-width: 767px) {
  .fw-room > .fw-crumb { display: none; }
  main > div:has(> .fw-mobile-crumb) { min-height: 39px; height: 39px; background: #151e2b; }
}
.fw-sent-target { display: inline-block; max-width: 100%; margin-bottom: 6px; padding: 3px 9px; border: 1px solid #5374a7; border-radius: 99px; background: #204681; color: #e1edff; font-size: 11px; font-weight: 600; }
.fw-target > svg { flex: none; }
.fw-chat .fw-byline:not(.fw-by-user)::before, .fw-arrival strong::before {
  content: "◇"; display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 7px;
  border: 1px solid #486265; border-radius: 5px; background: #263f42; color: #b4dfd2;
}
.fw-chat .chat-reply { margin-left: 26px; }
.fw-arrival + .fw-arrival { margin-top: -4px; }
.fw-arrival + .fw-arrival strong { display: none; }

/* The feature scroller owns the end of the discussion. Focus and wheel input
   must not scroll any ancestor shared with the sidebar. */
html:has(.fw-viewport), body:has(> .fw-viewport) { overflow: clip; overscroll-behavior: none; }
.fw-viewport {
  position: fixed; inset-inline: 0; top: var(--fw-visible-top, 0px);
  height: var(--fw-visible-height, 100dvh); overflow: clip;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
.fw-viewport main, .fw-viewport .fw-room { min-height: 0; overflow: clip; }
.fw-viewport aside nav { min-height: 0; overscroll-behavior-y: contain; }
.fw-viewport aside > div, .fw-viewport main > div:has(> .fw-mobile-crumb) { flex-shrink: 0; }
.fw-discussion-scroll { position: relative; flex: 1; min-height: 0; overflow: hidden auto; overscroll-behavior-y: none; scrollbar-width: thin; }
.fw-workspace-stack { display: flex; flex-direction: column; height: calc(100% - 60px); min-height: 280px; }
.fw-workspace-stack :is(.fw-threads, #workspace-tasks, .fw-design-review) { overscroll-behavior-y: auto; }
.fw-discussion-bottom { padding: 0 2.35% max(24px, env(safe-area-inset-bottom)); }
@container workspace (max-width: 1090px) {
  .fw-discussion-bottom { padding-inline: 14px; }
}
@container workspace (max-width: 900px) {
  .fw-workspace-stack { height: calc(100% - 66px); }
  .fw-discussion-bottom { padding: 12px 12px max(18px, env(safe-area-inset-bottom)); }
}
.fw-viewport[data-writing-chat] .fw-workspace-stack { height: 100%; }
