@layer legacy {
/* Framed, quiet workspace inspired by the supplied RevisionDojo references. */
.aw-workspace, .aw-launch-bar, .aw-page-launch, .aw-context-action { font-family: var(--font-sans, Inter, system-ui, sans-serif); color: var(--aios-text); }
.aw-workspace *, .aw-launch-bar *, .aw-page-launch * { box-sizing: border-box; }
.aw-workspace [hidden], .aw-workspace[hidden] { display: none !important; }
/* The in-page launcher replaced the workspace bar, so the shell keeps its own
   scroll container through the launcher instead of through that bar. */
.app-shell > .main:has(> .aw-launch-bar),
.app-shell > .main:has(> .content > .aw-page-launch) { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.app-shell > .main:has(> .aw-launch-bar) > .content,
.app-shell > .main:has(> .content > .aw-page-launch) > .content { flex: 1; min-height: 0; }
.aw-launch-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 44px; flex-shrink: 0; }
.aw-launch-bar > div { display: flex; align-items: center; gap: 8px; }
/* Aiko now lives inside the page: a single right-aligned control in the reading
   column, aligned with the page heading instead of a separate workspace bar. */
.aw-page-launch { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 10px; }
.aw-launch-bar button, .aw-page-launch button, .aw-context-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 7px 16px; border: 1px solid var(--aios-border); border-radius: var(--aios-radius-pill); color: var(--aios-text); background: var(--aios-surface); cursor: pointer; font: inherit; font-size: 14px; }
.aw-page-launch [data-open-aiko] { background: var(--aios-accent-soft); color: var(--aios-accent-strong); border-color: transparent; font-weight: 650; }
.aw-launch-bar img, .aw-page-launch img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.aw-launch-bar svg, .aw-page-launch svg, #aiko-workspace button > svg, .aw-prompt-icon svg { width: 20px; height: 20px; flex-shrink: 0; }
.app-shell.chat-shell > .main { position: relative; }
.app-shell.chat-shell .aios-chat-topbar > .aw-launch-bar { position: relative; z-index: var(--z-shell); pointer-events: auto; display: flex; align-items: center; align-self: center; flex: 0 0 auto; min-height: 44px; padding: 0; border: 0; background: transparent; }
.app-shell.chat-shell .aios-chat-topbar:has(.chat-mobile-title[aria-expanded="true"]) .aw-launch-bar { display: none !important; }
/* The calm home surface owns its own vertical rhythm, so the in-page launcher
   floats over the top-right corner there instead of pushing the intro down. */
.app-shell[data-active-view="home"] > .main:has(.calm-role-home) { position: relative; }
.app-shell[data-active-view="home"] > .main:has(.calm-role-home) > .content > .aw-page-launch { position: absolute; z-index: var(--z-shell); top: 8px; right: 16px; margin: 0; }
.aw-history-icon { display: none; }
.aw-context-action { margin: 8px 0; color: var(--aios-accent-strong); }
.aw-workspace { position: fixed; inset: 12px 12px 12px auto; width: var(--aw-panel-width, 420px); z-index: var(--z-modal); display: flex; flex-direction: column; background: var(--aios-surface); border: 1px solid var(--aios-border); border-radius: var(--aios-radius-xl); box-shadow: var(--aios-shadow); overflow: visible; }
.aw-workspace[data-expanded="true"] { left: 12px; width: auto; }
.aw-workspace button, .aw-workspace select, .aw-workspace summary { min-height: 44px; font: inherit; font-size: 13px; }
.aw-workspace button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; padding: 8px 12px; border: 1px solid transparent; border-radius: var(--aios-radius-md); color: var(--aios-text); background: transparent; cursor: pointer; }
.aw-workspace button:hover, .aw-workspace summary:hover { background: var(--aios-surface-hover); }
.aw-workspace button:disabled { opacity: .4; cursor: default; }
#aiko-workspace .aw-icon-button { width: 44px; height: 44px; flex-shrink: 0; padding: 10px; border: 1px solid var(--aios-border); border-radius: 50%; background: var(--aios-surface); }
#aiko-workspace .aw-icon-button:hover { color: var(--aios-accent-strong); border-color: var(--aios-accent); background: var(--aios-accent-soft); }
.aw-icon-button svg, .awc-zoom-controls svg, .awc-background-menu svg { width: 22px; height: 22px; }
.aw-workspace :is(button, input, textarea, select, summary, canvas, [role="separator"]):focus-visible, .aw-launch-bar button:focus-visible, .aw-page-launch button:focus-visible, .aw-context-action:focus-visible { outline: 2px solid var(--aios-accent); outline-offset: 3px; }
.aw-workspace select { color: var(--aios-text); border: 1px solid var(--aios-border); border-radius: var(--aios-radius-sm); background: var(--aios-surface); max-width: 100%; padding: 6px; }
.aw-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--aios-border); flex-shrink: 0; }
.aw-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.aw-heading img { width: 36px; height: 36px; object-fit: contain; }
.aw-heading strong { font-size: 18px; font-weight: 650; }
.aw-heading small { display: block; margin-top: 3px; color: var(--aios-text-muted); font-size: 11px; }
.aw-header-actions { display: flex; align-items: center; gap: 2px; }
.aw-header [data-aw="close"] { font-size: 25px; }
.aw-header [data-aw="canvas"][aria-pressed="true"] { background: var(--aios-accent-soft); color: var(--aios-accent-strong); }
.aw-body { display: grid; grid-template-columns: minmax(0, 1fr); flex: 1; min-height: 0; overflow: hidden; border-radius: 0 0 var(--aios-radius-xl) var(--aios-radius-xl); }
.aw-workspace[data-canvas="true"] .aw-body { grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); }
.aw-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 12px 16px 16px; overflow: hidden; }
.aw-chat-tools { display: flex; align-items: center; gap: 4px; }
.aw-history { flex: 1; width: 100px; border: 0 !important; color: var(--aios-text-muted) !important; }
.aw-context { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0; padding: 2px 4px 2px 12px; border: 1px solid var(--aios-border); border-radius: var(--aios-radius-md); font-size: 12px; }
.aw-context span { overflow-wrap: anywhere; }
.aw-log { flex: 1; min-height: 80px; overflow-y: auto; overscroll-behavior: contain; padding: 10px 2px; scrollbar-width: thin; }
.aw-welcome { min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px 16px; }
.aw-welcome img { width: 84px; height: 84px; margin-bottom: 24px; }
.aw-welcome h2 { font-size: clamp(20px, 2vw, 27px); font-weight: 600; letter-spacing: -.6px; margin: 0 0 10px; line-height: 1.2; }
.aw-welcome p { color: var(--aios-text-muted); line-height: 1.65; font-size: 14px; max-width: 310px; margin: 0; }
.aw-message { margin: 8px 0 24px; padding: 0 4px; overflow-wrap: anywhere; font-size: 14px; line-height: 1.65; }
.aw-message-author { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--aios-text-muted); }
.aw-message-author img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.aw-message-text p { margin: 5px 0 12px; }
.aw-message-text pre { overflow-x: auto; max-width: 100%; }
.aw-message-text table { display: block; max-width: 100%; overflow-x: auto; }
.aw-message-text img, .aw-message-text svg { max-width: 100%; height: auto; }
.aw-user { background: var(--aios-surface-subtle); border-radius: var(--aios-radius-lg); padding: 12px 16px; margin-left: 24px; }
.aw-user p { white-space: pre-wrap; }
.aw-thinking { color: var(--aios-text-muted); }
.aw-suggestions { display: grid; gap: 7px; padding: 8px 0 14px; }
.aw-suggestions button { justify-content: space-between; text-align: left; border-color: var(--aios-border); border-radius: var(--aios-radius-md); color: var(--aios-accent-strong); }
.aw-chat:has(.aw-message) .aw-suggestions { display: none; }
.aw-composer { margin: 0; padding: 12px; border: 1px solid var(--aios-border); border-radius: var(--aios-radius-xl); background: var(--aios-surface-subtle); }
.aw-composer textarea { display: block; resize: vertical; min-height: 60px; max-height: 180px; width: 100%; border: 0; border-radius: 0; background: transparent; color: var(--aios-text); font: inherit; font-size: 15px; line-height: 1.5; padding: 4px; box-shadow: none; }
.aw-composer > div { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.aw-composer [data-aw="selection"] { font-size: 11px; padding: 6px; color: var(--aios-text-muted); }
.aw-sending { flex: 1; font-size: 10px; color: var(--aios-text-muted); }
.aw-workspace .aw-send { border-radius: var(--aios-radius-pill); background: var(--aios-accent-strong); color: var(--aios-bg); font-size: 24px; flex-shrink: 0; width: 44px; height: 44px; margin-left: auto; }
.aw-workspace .aw-primary { background: var(--aios-accent-strong); color: var(--aios-bg); border-radius: var(--aios-radius-pill); padding: 8px 16px; }
.aw-attachment { display: flex; align-items: center; gap: 10px; padding: 8px; margin-bottom: 8px; border: 1px solid var(--aios-border); border-radius: var(--aios-radius-md); }
.aw-attachment img { width: 48px; height: 42px; object-fit: contain; background: var(--aios-surface-subtle); }
.aw-attachment span { flex: 1; font-size: 12px; overflow-wrap: anywhere; }
.aw-mobile-tabs { display: none; }
.aw-resize { position: absolute; left: -6px; top: 30px; bottom: 30px; width: 12px; cursor: col-resize; touch-action: none; }
.aw-workspace[data-expanded="true"] .aw-resize { display: none; }
.aw-canvas { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-left: 1px solid var(--aios-border); padding: 0 12px 12px; background: var(--aios-surface); }
.awc-top { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 8px 0; }
.awc-title { color: var(--aios-text); font: inherit; font-size: 14px; font-weight: 600; border: 1px solid transparent; border-radius: var(--aios-radius-sm); background: transparent; padding: 8px; min-width: 0; min-height: 44px; flex: 1; width: 80px; }
.awc-title:hover { border-color: var(--aios-border); }
.awc-menu { position: relative; flex-shrink: 0; }
.awc-menu summary { display: flex; align-items: center; padding: 8px 12px; cursor: pointer; border: 1px solid var(--aios-border); border-radius: var(--aios-radius-pill); }
.awc-menu > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: var(--z-float); display: grid; padding: 8px; width: 230px; border: 1px solid var(--aios-border); border-radius: var(--aios-radius-lg); background: var(--aios-surface); box-shadow: var(--aios-shadow); }
.awc-paper { position: relative; flex: 1; min-height: 120px; overflow: hidden; border: 1px solid var(--aios-border); border-radius: var(--aios-radius-lg); background: #ffffff; }
.awc-paper canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; touch-action: none; cursor: crosshair; }
.awc-paper canvas[data-tool="pan"] { cursor: grab; }
.awc-paper canvas[data-tool="select"] { cursor: default; }
.awc-empty { position: absolute; top: 42%; left: 12px; right: 12px; text-align: center; pointer-events: none; color: #676767; font-size: 20px; letter-spacing: -.4px; }
.awc-empty small { display: block; margin-top: 12px; font-size: 13px; letter-spacing: 0; }
.awc-toolbar { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2px; padding: 8px 4px; margin-top: 10px; border: 1px solid var(--aios-border); border-radius: var(--aios-radius-xl); }
.awc-toolbar button { padding: 8px; }
.awc-toolbar svg { width: 23px; height: 23px; }
.awc-toolbar button[aria-pressed="true"] { background: var(--aios-text); color: var(--aios-bg); border-radius: var(--aios-radius-lg); }
.awc-color { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.awc-color input { width: 36px; height: 36px; padding: 2px; border: 0; background: transparent; cursor: pointer; }
.awc-width { width: 68px; }
.awc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 6px; }
.awc-bottom > div { display: flex; align-items: center; }
.awc-bottom button { padding: 6px; }
.awc-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 54px; }
.awc-save { font-size: 11px; line-height: 1.5; color: var(--aios-text-muted); }
.awc-save[data-error="true"] { color: var(--aios-danger); }
.awc-text-editor { position: absolute; width: 180px; height: 85px; padding: 6px; font: 20px/1.4 Inter, system-ui, sans-serif; color: #202123; background: #ffffff; border: 2px solid var(--aios-accent); border-radius: var(--aios-radius-sm); }
/* Second direction: the current AIOS chat composition, with tactile learning controls. */
.aw-workspace { background: var(--aios-bg); }
.aw-header { padding: 12px 20px; }
.aw-heading small { display: none; }
.aw-chat { background: var(--aios-bg); padding: 12px 24px 24px; }
.aw-chat-tools { order: 0; }
.aw-context { order: 0; }
.aw-log { order: 1; }
.aw-attachment { order: 2; }
.aw-composer { order: 3; padding: 6px 10px; background: var(--aios-surface-subtle); border: 1px solid var(--aios-border); box-shadow: 0 3px 0 var(--aios-border); }
.aw-suggestions { order: 4; }
#aiko-workspace .aw-composer textarea { border: 0 !important; box-shadow: none !important; outline: none !important; height: 36px; min-height: 36px; resize: none; background: transparent !important; }
#aiko-workspace .aw-composer > div { margin-top: 2px; }
#aiko-workspace .aw-composer:focus-within { border-color: var(--aios-accent); }
.aw-chat:has(.aw-welcome) .aw-log { flex: 0 0 auto; min-height: 0; margin-top: auto; overflow: visible; }
.aw-chat:has(.aw-welcome) .aw-suggestions { margin-bottom: auto; }
.aw-welcome { min-height: 0; padding: 22px 10px 28px; }
.aw-welcome img { width: 94px; height: 94px; margin-bottom: 20px; }
.aw-welcome h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 750; letter-spacing: -1.2px; }
#aiko-workspace .aw-welcome p { display: block; color: var(--aios-text-muted); margin-top: 6px; font-size: 14px; }
.aw-suggestions { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 20px; gap: 12px; }
.aw-suggestions button { justify-content: flex-start; align-items: center; gap: 10px; border: 1px solid var(--aios-border); border-radius: var(--aios-radius-lg); background: var(--aios-surface); color: var(--aios-text); box-shadow: 0 3px 0 var(--aios-border); font-size: 12px; min-height: 66px; padding: 12px; }
.aw-suggestions button:hover { border-color: var(--aios-accent); background: var(--aios-accent-soft); box-shadow: 0 3px 0 var(--aios-accent); }
.aw-suggestions button:active, .aw-primary:active { transform: translateY(2px); box-shadow: none; }
.aw-prompt-icon { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: var(--aios-radius-md); background: var(--aios-accent-soft); font-size: 21px; }
.aw-suggestions button:first-child .aw-prompt-icon { background: var(--aios-warning-soft); }
.aw-workspace .aw-primary { min-height: 46px; border-radius: var(--aios-radius-lg); font-weight: 650; box-shadow: 0 3px 0 var(--aios-border); }
.aw-canvas { background: var(--aios-bg); padding-left: 20px; padding-right: 20px; }
.awc-top { min-height: 70px; }
.awc-paper { border-width: 2px; border-radius: var(--aios-radius-xl); }
.awc-toolbar { background: var(--aios-surface); box-shadow: 0 3px 0 var(--aios-border); margin-top: 14px; }
.awc-toolbar button[aria-pressed="true"] { background: var(--aios-accent-soft); color: var(--aios-accent-strong); border: 1px solid var(--aios-accent); box-shadow: 0 2px 0 var(--aios-accent); }
.aw-result-link { color: var(--aios-accent-strong) !important; border: 1px solid var(--aios-border) !important; }
@media (min-width: 821px) {
  html.aw-native-canvas body #app .app-shell.chat-shell { width: calc(100vw - var(--aw-panel-width) - 24px) !important; max-width: calc(100vw - var(--aw-panel-width) - 24px) !important; }
  html.aw-open:not(.aw-expanded) #app { margin-right: calc(var(--aw-panel-width, 420px) + 24px); }
  .chat-shell > .main:has(.aw-launch-bar) .aios-chat-app { height: 100%; min-height: 0; }
}
@media (max-width: 1100px) {
  .aw-workspace[data-expanded="true"] { left: 12px; }
  .aw-workspace[data-canvas="true"] .aw-body { grid-template-columns: minmax(280px, .8fr) minmax(0, 1fr); }
  .aw-heading small { display: none; }
  .awc-footer { flex-wrap: wrap; padding-top: 6px; }
}
@media (max-width: 820px) {
  .app-shell.chat-shell .aios-chat-topbar > .aw-launch-bar { grid-column: 2; grid-row: 1; justify-self: end; }
  .app-shell.chat-shell .aios-chat-topbar:has(> .aw-launch-bar) > .chat-mobile-title { justify-self: start !important; width: 44px !important; min-width: 44px !important; max-width: 44px !important; padding: 0 !important; font-size: 0 !important; }
  .app-shell.chat-shell .chat-mobile-title:has(.aw-history-icon) > :not(.aw-history-icon) { display: none !important; }
  .chat-mobile-title .aw-history-icon { display: inline-flex; }
  .aw-history-icon svg { width: 20px; height: 20px; }
  .app-shell.chat-shell .aw-launch-bar [data-open-aiko] { display: none; }
  .app-shell.chat-shell .aw-launch-bar [data-open-canvas] { padding: 6px 12px; }
  .aw-launch-bar { min-height: 44px; }
  .aw-page-launch { margin-bottom: 8px; }
  .aw-workspace, .aw-workspace[data-expanded="true"] { inset: 0; width: 100%; height: var(--aw-mobile-height, 100dvh); max-height: 100dvh; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); border-radius: 0; border: 0; }
  .aw-header { padding: 8px 12px; min-height: 62px; }
  .aw-heading img { width: 28px; height: 28px; }
  .aw-heading strong { font-size: 17px; }
  .aw-header-actions [data-aw="expand"] { display: none; }
  .aw-mobile-tabs { display: flex; border-bottom: 1px solid var(--aios-border); padding: 0 8px; }
  .aw-mobile-tabs button { flex: 1; border-radius: 0; border-bottom: 2px solid transparent; }
  .aw-mobile-tabs button[aria-pressed="true"] { color: var(--aios-accent-strong); border-bottom-color: var(--aios-accent); }
  .aw-body, .aw-workspace[data-canvas="true"] .aw-body { display: flex; flex-direction: column; border-radius: 0; }
  .aw-chat, .aw-canvas { flex: 1; min-height: 0; }
  .aw-chat { padding: 8px 12px 12px; }
  .aw-workspace[data-tab="canvas"] .aw-chat, .aw-workspace[data-tab="chat"] .aw-canvas { display: none; }
  .aw-canvas { border: 0; padding: 0 8px 8px; }
  .awc-top { min-height: 54px; }
  .awc-toolbar { padding: 4px; margin-top: 6px; }
  .awc-footer { flex-wrap: nowrap; gap: 4px; }
  .awc-footer .aw-primary { font-size: 11px; padding: 6px 10px; }
  .awc-save { font-size: 10px; max-width: 47%; }
  .awc-bottom button { min-width: 44px; }
  .aw-resize { display: none; }
  .aw-welcome { padding: 16px; }
  .aw-welcome img { width: 60px; height: 60px; margin-bottom: 16px; }
  .aw-context { margin: 4px 0; }
  .aw-composer textarea { font-size: 16px; }
}
/* The sheet fills its pane. Tools sit on the sheet, rather than reducing it. */
#aiko-workspace .aw-canvas { position: relative; padding: 0; overflow: hidden; }
#aiko-workspace .aw-native-close { position: absolute; top: 12px; right: 12px; z-index: var(--z-raised); background: var(--aios-surface); border: 1px solid var(--aios-border); border-radius: 50%; }
#aiko-workspace { --awc-paper-bg: #ffffff; --awc-paper-dots: #d6d6da; --awc-paper-grid: #ececee; --awc-default-ink: #202123; }
body[data-theme="dark"] #aiko-workspace { --awc-paper-bg: #181a1b; --awc-paper-dots: #45484c; --awc-paper-grid: #2e3135; --awc-default-ink: #f0f1f3; }
#aiko-workspace .awc-paper, #aiko-workspace .awc-text-editor { background: var(--awc-paper-bg); color: var(--awc-default-ink); }
#aiko-workspace .awc-empty { color: var(--aios-text-muted); }
#aiko-workspace[data-native-canvas="true"] :is(.aw-header, .aw-mobile-tabs, .aw-chat) { display: none; }
#aiko-workspace[data-native-canvas="true"] .aw-body { grid-template-columns: minmax(0, 1fr); border-radius: inherit; }
#aiko-workspace[data-native-canvas="true"] .aw-canvas { border: 0; display: flex; }
#aiko-workspace .awc-paper { position: absolute; inset: 0; border: 0; border-radius: 0; min-height: 0; }
#aiko-workspace .awc-top { position: absolute; top: 14px; left: 16px; right: 16px; z-index: var(--z-raised); min-height: 44px; padding: 0; }
#aiko-workspace .awc-title { flex: 0 1 200px; background: var(--aios-surface); border: 1px solid var(--aios-border); border-radius: var(--aios-radius-pill); padding: 8px 16px; box-shadow: 0 2px 0 var(--aios-border); }
#aiko-workspace .awc-menu { margin-left: auto; }
#aiko-workspace .awc-menu summary { background: var(--aios-surface); box-shadow: 0 2px 0 var(--aios-border); }
#aiko-workspace [data-c="close-canvas"] { border: 1px solid var(--aios-border); border-radius: var(--aios-radius-pill); background: var(--aios-surface); font-size: 22px; box-shadow: 0 2px 0 var(--aios-border); }
#aiko-workspace .awc-dock { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-raised); max-width: 800px; margin: 0 auto; padding: 4px 8px 8px; background: var(--aios-surface); border: 1px solid var(--aios-border); border-radius: var(--aios-radius-xl); box-shadow: 0 4px 0 var(--aios-border), var(--aios-shadow); }
#aiko-workspace .awc-toolbar { justify-content: flex-start; border: 0; box-shadow: none; margin: 0; padding: 6px 0; }
#aiko-workspace .awc-bottom { margin: 0; border-top: 1px solid var(--aios-border); padding-top: 4px; }
#aiko-workspace .awc-footer { padding: 4px 4px 0; }
#aiko-workspace .awc-footer .aw-primary { margin-left: auto; flex-shrink: 0; white-space: nowrap; }
#aiko-workspace .awc-footer:has(.awc-save[data-error="true"]) { flex-wrap: wrap; }
#aiko-workspace .awc-footer .awc-save[data-error="true"] { order: 3; flex-basis: 100%; max-width: none; }
#aiko-workspace .awc-save:not([data-error="true"]) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.awc-zoom-wrap { position: relative; }
.awc-background-wrap { position: absolute; right: 8px; bottom: calc(100% + 12px); }
.awc-view-controls { display: flex; gap: 2px; margin-left: auto; }
#aiko-workspace .awc-zoom-controls { position: absolute; right: 0; bottom: calc(100% + 8px); display: flex; align-items: center; gap: 2px; padding: 6px; border: 1px solid var(--aios-border); border-radius: var(--aios-radius-lg); background: var(--aios-surface); box-shadow: var(--aios-shadow); }
#aiko-workspace .awc-background-menu { position: absolute; right: 0; bottom: calc(100% + 8px); width: 196px; display: grid; gap: 4px; padding: 6px; border: 1px solid var(--aios-border); border-radius: var(--aios-radius-lg); background: var(--aios-surface); box-shadow: var(--aios-shadow); }
#aiko-workspace .awc-background-menu button { justify-content: flex-start; gap: 12px; padding: 8px 12px; border: 1px solid transparent; }
#aiko-workspace .awc-background-menu button[aria-pressed="true"] { color: var(--aios-accent-strong); background: var(--aios-accent-soft); border-color: var(--aios-accent); }
.awc-zoom { min-width: 44px; text-align: center; font-size: 12px; }
#aiko-workspace .aw-canvas:has(.awc-text-editor) .awc-dock { display: none; }
#aiko-workspace .awc-text-done { position: absolute; top: 72px; right: 12px; z-index: var(--z-raised); background: var(--aios-accent-strong); color: var(--aios-bg); border-radius: var(--aios-radius-pill); }
@media (max-width: 820px) {
  #aiko-workspace .awc-top { top: 10px; left: 10px; right: 10px; }
  #aiko-workspace .awc-title { flex-basis: 160px; }
  #aiko-workspace .awc-dock { left: 8px; right: 8px; bottom: 10px; padding: 2px 4px 6px; }
  #aiko-workspace .awc-toolbar { padding: 4px 0; }
}
/* Size the conversation for its pane, including short windows. */
#aiko-workspace .aw-chat { padding: 10px 14px 14px; gap: 6px; }
#aiko-workspace .aw-log { flex: 1 1 0; min-height: 0; overflow-y: auto; margin-top: 0; }
#aiko-workspace .aw-welcome { padding: 16px 4px; min-height: 100%; }
#aiko-workspace .aw-welcome img { width: 48px; height: 48px; margin-bottom: 12px; }
#aiko-workspace .aw-welcome h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.4px; }
#aiko-workspace .aw-welcome p { font-size: 13px; line-height: 1.5; }
#aiko-workspace .aw-composer { flex-shrink: 0; }
#aiko-workspace .aw-suggestions { padding: 4px 0; gap: 6px; margin-bottom: 0; flex-shrink: 0; }
#aiko-workspace .aw-suggestions button { min-height: 44px; padding: 8px; box-shadow: none; }
#aiko-workspace .aw-prompt-icon { width: 24px; height: 24px; }
#aiko-workspace .aw-context { margin: 0; flex-shrink: 0; }
#aiko-workspace .aw-resize { z-index: var(--z-raised); left: -10px; width: 20px; }
#aiko-workspace .aw-resize::after { content: ""; position: absolute; left: 8px; top: 35%; height: 30%; width: 4px; border-radius: 4px; background: var(--aios-border); }
#aiko-workspace .aw-resize:hover::after, #aiko-workspace .aw-resize:focus-visible::after { background: var(--aios-accent); }
@media (max-height: 600px) {
  #aiko-workspace .aw-suggestions { display: none; }
}
@media (prefers-reduced-motion: reduce) { .aw-workspace *, .aw-launch-bar *, .aw-page-launch * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
}
