:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #343439; background: #fdfdfd; font-size: 14px;
  --canvas: #fdfdfd; --sidebar: #f8f8f8; --line: #ededee; --muted: #82828c;
  --accent: #2453e6; --soft: #f2f2f4; --sidebar-width: 232px;
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
button:disabled, select:disabled { opacity: .45; cursor: not-allowed; }
button:not(:disabled):hover { background: var(--soft); }
a { color: var(--accent); }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #7297f5; outline-offset: 3px; }
img { width: 17px; height: 17px; flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; background: white; padding: 12px; z-index: 100; }
.skip-link:focus { top: 12px; }
.workstation { height: 100dvh; display: flex; overflow: hidden; }
.sidebar { width: var(--sidebar-width); flex: none; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--line); padding: 0 8px; z-index: 30; }
.brand-row { height: 54px; padding: 0 8px; display: flex; align-items: center; gap: 8px; }
.wordmark { text-decoration: none; color: #303036; font-size: 15px; font-weight: 650; letter-spacing: -.4px; display: flex; gap: 5px; align-items: baseline; margin-right: auto; }
.wordmark span { font-size: 12px; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.icon-button { width: 30px; height: 30px; padding: 6px; display: inline-flex; justify-content: center; align-items: center; border-radius: 7px; color: var(--muted); flex: none; }
.icon-button img { width: 17px; height: 17px; opacity: .62; }
.sidebar-controls { display: flex; align-items: center; gap: 3px; padding: 6px 3px 19px; }
.search-field { display: flex; min-width: 0; flex: 1; gap: 8px; align-items: center; padding: 5px; border-radius: 6px; }
.search-field:focus-within { background: #eeeef0; }
.search-field img { opacity: .42; width: 16px; height: 16px; }
.search-field input { width: 100%; min-width: 0; outline: none; background: none; border: 0; padding: 0; font-size: 13px; }
.search-field input::placeholder { color: var(--muted); }
kbd { font-family: inherit; font-size: 10px; color: #a0a0a9; white-space: nowrap; }
.search-field kbd { display: none; }
.search-field:focus-within kbd { display: block; }
.sidebar-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.sidebar-empty { color: var(--muted); font-size: 12px; line-height: 1.7; padding: 16px 10px; margin: 0; }
.group-label { font-size: 11px; color: var(--muted); font-weight: 500; margin: 18px 10px 8px; }
.sidebar-list > .group-label:first-child { margin-top: 0; }
.thread-row { position: relative; border-radius: 10px; margin-bottom: 5px; }
.thread-row.selected { background: #fff; box-shadow: 0 1px 3px #00000003; }
.thread-row:hover { background: #f0f0f2; }
.thread-select { width: 100%; display: flex; flex-direction: column; text-align: left; padding: 10px 9px 9px; border-radius: inherit; gap: 7px; }
.thread-select:not(:disabled):hover { background: transparent; }
.thread-meta { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }
.avatar { display: inline-flex; justify-content: center; align-items: center; width: 17px; height: 17px; border-radius: 4px; font-size: 8px; font-weight: 650; color: #119a78; background: #dff5ed; flex: none; }
.thread-agent { font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.thread-status { color: #91919b; font-size: 11px; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.thread-status img { width: 13px; height: 13px; }
.thread-status.working { color: #4899d6; }
.thread-status.working img { animation: spin 1.8s linear infinite; }
.thread-status.done { color: #128665; }
.thread-status.failed { color: #b14a3e; font-size: 10px; }
.thread-title { font-size: 14px; line-height: 1.35; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-subtitle { color: #a1a1aa; font-size: 11px; height: 14px; width: 100%; display: flex; gap: 5px; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-subtitle img { width: 11px; height: 11px; opacity: .6; }
.thread-more { position: absolute; bottom: 5px; right: 5px; opacity: 0; background: var(--sidebar); width: 25px; height: 25px; }
.thread-row:hover .thread-more, .thread-row:focus-within .thread-more { opacity: 1; }
.thread-shelves { max-height: 42%; overflow-y: auto; flex: none; scrollbar-width: thin; }
.shelf-toggle { width: 100%; display: flex; align-items: center; gap: 10px; height: 35px; padding: 0 7px; font-size: 11px; color: #8d8d98; border-radius: 6px; }
.snoozed > .shelf-toggle { color: #4b6de8; }
.shelf-count { margin-left: 3px; }
.shelf-line { height: 1px; background: currentColor; opacity: .15; flex: 1; }
.shelf-toggle img { width: 12px; height: 12px; opacity: .5; }
.shelf-toggle[aria-expanded=true] img { transform: rotate(180deg); }
.slim .thread-select { gap: 4px; padding: 8px 9px; }
.slim .thread-title { font-size: 12px; }
.slim .thread-subtitle { font-size: 10px; }
.slim .thread-status { display: none; }
.sidebar-footer { min-height: 51px; padding: 7px 3px; display: flex; gap: 8px; align-items: center; }
.runtime-status { color: #90909a; font-size: 10px; flex: 1; }
.runtime-status.offline { color: #b14a3e; }
.main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.workspace-header { height: 49px; flex: none; display: flex; align-items: center; padding: 0 18px; gap: 10px; }
.header-identity { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.breadcrumb-agent { color: var(--muted); font-size: 13px; white-space: nowrap; }
.breadcrumb-divider { color: #a4a4ab; margin: 0 3px; }
.header-identity h1 { margin: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; align-items: center; gap: 5px; }
.header-actions .selected { background: var(--soft); }
#open-nav { display: none; }
.sidebar-collapsed .sidebar { display: none; }
.sidebar-collapsed #open-nav { display: inline-flex; }
.workspace-body { display: flex; min-height: 0; flex: 1; position: relative; }
.chat-column { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.transcript { overflow-y: auto; flex: 1; min-height: 0; padding: 32px max(28px,calc((100% - 820px) / 2)); overscroll-behavior: contain; scrollbar-width: thin; }
.welcome { width: 100%; max-width: 500px; margin: clamp(45px,15vh,180px) auto 50px; text-align: center; }
.welcome-mark { display: inline-flex; align-items: center; justify-content: center; color: #92929a; margin-bottom: 20px; }
.welcome-mark img { width: 27px; height: 27px; opacity: .42; }
.welcome h2 { font-size: 24px; font-weight: 500; letter-spacing: -.7px; margin: 0 0 11px; line-height: 1.3; }
.welcome > p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.suggestions { display: flex; flex-direction: column; margin: 31px auto 0; max-width: 335px; text-align: left; }
.suggestions button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 11px 8px; border-radius: 7px; font-size: 12px; color: #74747e; text-align: left; }
.suggestions button img { width: 15px; height: 15px; opacity: .5; }
.suggestions button span { flex: 1; }
.suggestions button img:last-child { width: 12px; opacity: .35; }
.turn { max-width: 820px; margin: 0 auto 38px; }
.user-message { width: fit-content; max-width: 84%; margin: 0 0 38px auto; background: #f3f3f5; border-radius: 20px; padding: 13px 17px; font-size: 15px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-message { color: #48484e; }
.markdown { font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.markdown:empty { display: none; }
.markdown p { margin: 0 0 17px; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { font-size: 16px; line-height: 1.5; font-weight: 600; margin: 24px 0 12px; }
.markdown > :first-child { margin-top: 0; }
.markdown > :last-child { margin-bottom: 0; }
.markdown ul, .markdown ol { padding-left: 24px; }
.markdown li { margin: 5px 0; }
.markdown pre { overflow-x: auto; max-width: 100%; background: #f5f5f6; border: 1px solid var(--line); padding: 15px; border-radius: 9px; font-size: 12px; line-height: 1.65; }
.markdown code { background: #f0f0f2; padding: 2px 4px; border-radius: 4px; font-size: .9em; }
.markdown pre code { padding: 0; background: none; }
.markdown blockquote { margin: 15px 0; padding-left: 16px; border-left: 2px solid #d9d9de; color: var(--muted); }
.markdown table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 12px; }
.markdown th, .markdown td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; }
.markdown hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.work-details { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.work-details summary { cursor: pointer; display: flex; align-items: center; gap: 5px; width: fit-content; padding: 4px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
.work-details summary img { width: 12px; height: 12px; opacity: .5; }
.work-details[open] summary img { transform: rotate(90deg); }
.work-details > div { border-left: 1px solid var(--line); margin: 10px 0; padding: 0 12px; }
.tool-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 9px 0; color: #666671; }
.tool-row img { width: 14px; height: 14px; opacity: .55; }
.tool-row > span:first-of-type { flex: 1; }
.tool-row > span:last-child { font-size: 10px; color: var(--muted); }
.tool-row.error > span:last-child { color: #b14a3e; }
.tool-row.running img { animation: spin 1.8s linear infinite; }
.source-summary { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 0 0 12px; overflow-wrap: anywhere; }
.activity { display: flex; gap: 8px; align-items: center; color: var(--muted); margin-top: 20px; font-size: 12px; }
.activity img { width: 14px; height: 14px; opacity: .5; animation: spin 1.8s linear infinite; }
.turn-footer { display: flex; align-items: center; gap: 8px; color: #96969f; margin-top: 14px; font-size: 10px; }
.turn-footer .icon-button { margin-left: -7px; }
.error-card { padding: 15px; margin-top: 20px; background: #fff7f5; border: 1px solid #f1ded9; border-radius: 9px; font-size: 12px; color: #9b483a; line-height: 1.6; }
.error-card p { margin: 0 0 8px; }
.error-card button { text-decoration: underline; padding: 0; }
.composer-wrap { flex: none; padding: 14px 28px 18px; width: 100%; max-width: 876px; margin: 0 auto; }
.composer { background: #fff; border: 1px solid #eaeaec; border-radius: 23px; box-shadow: 0 10px 19px -9px #00000020, 0 3px 5px -3px #0000000a; padding: 14px 15px 10px; }
.composer:focus-within { border-color: #dcdce3; }
.composer textarea { display: block; width: 100%; min-height: 64px; max-height: 200px; resize: none; border: 0; background: none; outline: none; padding: 0 1px 10px; font-size: 15px; line-height: 1.7; scrollbar-width: thin; }
.composer textarea::placeholder { color: #95959f; }
.composer textarea:focus-visible { outline: none; }
.composer-toolbar { display: flex; align-items: center; gap: 6px; min-width: 0; }
.composer-control { display: flex; align-items: center; min-width: 0; gap: 4px; color: #7c7c88; border-radius: 5px; }
.composer-control:hover { background: #f8f8f9; }
.composer-control img { width: 15px; height: 15px; opacity: .55; }
.composer-control select { background: transparent; border: 0; font-size: 13px; padding: 5px 0; max-width: 160px; min-width: 0; cursor: pointer; text-overflow: ellipsis; }
.toolbar-divider { width: 1px; height: 14px; background: #e7e7eb; margin: 0 3px; }
#abilities-toggle { width: 26px; height: 26px; margin-left: auto; }
.send-button { display: inline-flex; justify-content: center; align-items: center; background: var(--accent); width: 32px; height: 32px; border-radius: 50%; flex: none; margin-left: 2px; }
.send-button:not(:disabled):hover { background: #1945cf; }
.send-button img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.send-button:disabled { opacity: .4; }
.composer-footer { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: #96969f; padding: 11px 10px 0; line-height: 1.5; }
.composer-context { color: var(--muted); display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.6; margin: 0 8px 10px; }
.composer-context:empty { display: none; }
.composer-context button { color: var(--accent); text-decoration: underline; }
.scroll-bottom { position: absolute; bottom: 180px; left: calc(50% - 16px); background: white; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 3px 10px #0001; }
.scroll-bottom img { transform: rotate(180deg); }
.workspace-panel { position: relative; width: var(--panel-width,clamp(290px,28vw,570px)); flex: none; border-left: 1px solid var(--line); display: flex; flex-direction: column; background: var(--canvas); min-width: 0; }
.panel-resizer { position: absolute; left: -4px; top: 0; bottom: 0; width: 7px; cursor: col-resize; touch-action: none; z-index: 1; }
.panel-resizer:hover, .panel-resizer:focus-visible { background: #2453e61a; }
body.resizing { user-select: none; cursor: col-resize; }
.panel-heading { height: 43px; padding: 0 13px; display: flex; align-items: center; gap: 8px; flex: none; }
.panel-heading h2 { font-size: 12px; color: var(--muted); font-weight: 400; margin: 0; flex: 1; }
.panel-content { flex: 1; overflow-y: auto; scrollbar-width: thin; min-height: 0; padding: 15px 20px; }
.panel-content.is-launcher { display: flex; align-items: center; justify-content: center; padding-bottom: 90px; }
.panel-launcher { width: 100%; max-width: 300px; }
.panel-launcher h3 { font-size: 13px; font-weight: 500; margin: 0 0 14px; text-align: center; }
.panel-launcher button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 11px 10px; font-size: 14px; border-radius: 7px; }
.panel-launcher button span { flex: 1; }
.panel-launcher button img { opacity: .7; width: 16px; height: 16px; }
.panel-launcher button img:last-child { width: 11px; height: 11px; opacity: .3; }
.panel-intro h3 { font-size: 14px; font-weight: 500; line-height: 1.5; margin: 0 0 8px; overflow-wrap: anywhere; }
.panel-intro p, .panel-note { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0 0 18px; }
.panel-note { margin: 20px 0; }
.panel-content .group-label { margin-left: 0; }
.assistant-option { display: flex; align-items: flex-start; gap: 9px; padding: 12px 9px; border-radius: 8px; width: 100%; text-align: left; margin-bottom: 5px; }
.assistant-option.selected { background: var(--soft); }
.assistant-option > span:nth-child(2) { flex: 1; min-width: 0; }
.assistant-option strong { display: block; font-size: 12px; font-weight: 500; margin-bottom: 5px; }
.assistant-option > span > span { display: block; font-size: 11px; line-height: 1.65; color: var(--muted); }
.assistant-option > img { width: 13px; height: 13px; opacity: .55; }
.capability { border-bottom: 1px solid var(--line); }
.capability summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 12px; cursor: pointer; }
.capability summary span { flex: 1; }
.capability summary img { width: 14px; height: 14px; opacity: .5; }
.capability summary img:last-child { width: 11px; }
.capability[open] summary img:last-child { transform: rotate(180deg); }
.capability p { font-size: 11px; line-height: 1.75; color: var(--muted); margin: 0 0 15px; overflow-wrap: anywhere; }
.panel-sources { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.source-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #656570; text-decoration: none; padding: 8px 10px; background: #f3f3f5; border-radius: 7px; line-height: 1.5; max-width: 100%; overflow-wrap: anywhere; }
.source-chip img { width: 14px; height: 14px; opacity: .5; }
a.source-chip:hover { background: #ededf1; color: var(--accent); }
.empty-state { text-align: center; padding: 60px 8px; max-width: 290px; margin: auto; }
.empty-state > img { width: 24px; height: 24px; opacity: .35; margin-bottom: 15px; }
.empty-state h3 { font-size: 13px; font-weight: 500; margin: 0 0 9px; }
.empty-state p { font-size: 12px; color: var(--muted); line-height: 1.75; margin: 0; }
.activity-group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.activity-group h3 { font-size: 12px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.thread-details { display: grid; grid-template-columns: auto 1fr; gap: 17px 12px; font-size: 12px; margin: 25px 0; }
.thread-details dt { color: var(--muted); }
.thread-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.panel-link { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); width: 100%; padding: 12px 0; }
.panel-link img { width: 12px; height: 12px; }
.connection-banner { padding: 9px 20px; font-size: 12px; background: #fff8ed; color: #8b632f; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.text-button { font-size: 12px; text-decoration: underline; }
.backdrop { position: fixed; inset: 0; z-index: 25; background: #25253340; }
.thread-menu { position: fixed; margin: 0; width: 205px; padding: 5px; border: 1px solid #e7e7eb; border-radius: 10px; background: white; box-shadow: 0 8px 35px #0002; }
.thread-menu button { width: 100%; display: flex; gap: 9px; align-items: center; padding: 9px; text-align: left; font-size: 12px; border-radius: 5px; }
.thread-menu button img { width: 15px; height: 15px; opacity: .55; }
.menu-label { font-size: 10px; color: var(--muted); padding: 10px 9px 3px; }
.menu-divider { border-top: 1px solid var(--line); margin: 5px 0; }
dialog { width: min(420px,calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 25px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 80px #0002; }
dialog::backdrop { background: #24243440; }
dialog h2 { font-size: 17px; font-weight: 550; margin: 0 0 20px; }
dialog p { font-size: 13px; line-height: 1.75; color: #73737e; margin: 15px 0; }
dialog label { display: block; font-size: 12px; margin-bottom: 8px; color: var(--muted); }
dialog input { width: 100%; border: 1px solid #dcdce2; border-radius: 6px; padding: 9px; background: white; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.dialog-actions button { padding: 8px 12px; border-radius: 6px; font-size: 12px; }
.primary-button { color: white; background: var(--accent); }
.primary-button:not(:disabled):hover { background: #1945cf; }
.danger-button { background: #b74a3e; color: white; }
.danger-button:not(:disabled):hover { background: #9c392f; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 20px; padding: 12px 17px; border-radius: 10px; background: #303039; color: white; box-shadow: 0 5px 20px #0002; z-index: 100; font-size: 12px; max-width: calc(100vw - 24px); }
.toast button { color: #b7c8ff; padding: 3px 5px; border-radius: 4px; font-size: 12px; }
.toast button:hover { color: #243e97; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1280px) {
  :root { --sidebar-width: 218px; }
  .composer-control select { max-width: 160px; }
  .composer-control img { display: none; }
  .composer-toolbar { gap: 4px; }
  .composer-footer > span:last-child { display: none; }
  .welcome h2 { font-size: 22px; }
}
@media (max-width: 1100px) {
  .panel-resizer { display: none; }
  .workspace-panel { position: absolute; right: 0; top: 0; bottom: 0; z-index: 20; width: min(370px,100%); box-shadow: -20px 0 60px #0000000a; }
  .composer-control select { max-width: 170px; }
  .composer-control img { display: block; }
}
@media (max-width: 760px) {
  .sidebar, .sidebar-collapsed .sidebar { display: none; position: fixed; inset: 0 auto 0 0; width: min(280px,87vw); box-shadow: 15px 0 50px #0001; }
  .sidebar.is-open { display: flex; }
  #open-nav { display: inline-flex; }
  .workspace-header { height: 49px; padding: 0 9px; gap: 6px; }
  .breadcrumb-agent, .breadcrumb-divider { display: none; }
  .header-identity { gap: 7px; }
  .header-identity h1 { font-size: 12px; }
  .header-actions { gap: 1px; }
  .workspace-panel { width: 100%; }
  .transcript { padding: 25px 20px; }
  .welcome { margin-top: clamp(35px,12vh,100px); }
  .welcome h2 { font-size: 23px; max-width: 280px; margin-left: auto; margin-right: auto; }
  .welcome > p { max-width: 240px; margin: auto; }
  .suggestions { margin-top: 25px; }
  .user-message { max-width: 92%; font-size: 14px; }
  .composer-wrap { padding: 10px 12px max(12px,env(safe-area-inset-bottom)); }
  .composer { padding: 13px 12px 10px; border-radius: 20px; }
  .composer textarea { font-size: 16px; min-height: 65px; }
  .composer-control select { font-size: 12px; max-width: 118px; }
  .composer-control img { display: none; }
  .toolbar-divider { margin: 0 1px; }
  .composer-toolbar { gap: 3px; }
  #abilities-toggle { width: 26px; }
  .composer-footer { font-size: 10px; padding-top: 10px; }
  .thread-more { opacity: 1; }
  .panel-content { padding: 15px 23px; }
  .panel-heading { height: 47px; }
  .icon-button { width: 34px; height: 34px; }
  .panel-launcher button { padding: 14px 10px; }
}
@media (max-width: 380px) {
  .composer-control select { max-width: 100px; }
  #abilities-toggle { width: 24px; padding: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Searchable, two-step assistant/project picker. */
.search-field:focus-within kbd { display: none; }
.breadcrumb-project { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog.project-picker { width: min(680px,calc(100% - 32px)); padding: 0; border-radius: 22px; color: #343439; background: var(--canvas); overflow: hidden; }
.picker-search { display: flex; align-items: center; gap: 10px; padding: 17px 18px 10px; }
.picker-search input { border: 0; box-shadow: none; outline: none; background: none; padding: 6px 0; font-size: 19px; min-width: 0; }
.project-picker h2 { margin: 18px 24px 10px; font-size: 14px; font-weight: 500; color: var(--muted); }
.picker-results { max-height: min(430px,55dvh); min-height: 160px; overflow-y: auto; padding: 0 10px 14px; scrollbar-width: thin; }
.picker-option { display: flex; align-items: center; width: 100%; text-align: left; padding: 11px 12px; gap: 12px; border-radius: 10px; min-height: 65px; }
.picker-option.highlighted, .picker-option:hover { background: var(--soft); }
.picker-option > span:last-child { min-width: 0; }
.picker-option strong { font-size: 16px; font-weight: 500; display: block; }
.picker-option small { display: block; color: #9797a1; font-size: 13px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-avatar { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; flex: none; background: #dff5ed; color: #119a78; font-size: 11px; font-weight: 650; border-radius: 5px; }
.identity-badge { color: hsl(var(--identity-hue) 62% 32%); background: hsl(var(--identity-hue) 65% 92%); }
.agent-badge { border-radius: 50%; }
.identity-badge svg { width: 80%; height: 80%; }
.picker-option .identity-badge { width: 25px; height: 25px; font-size: 11px; }
.project-avatar img { width: 17px; height: 17px; opacity: .6; }
.project-avatar.neutral { background: #ededf0; }
.picker-add { color: var(--muted); font-size: 14px; margin-top: 6px; min-height: 44px; }
.picker-add > img { width: 20px; height: 20px; opacity: .6; }
.picker-empty { padding: 4px 14px; }
.picker-footer { display: flex; flex-wrap: wrap; gap: 17px; background: #f8f8f8; padding: 12px 22px; color: var(--muted); font-size: 12px; }
.picker-footer kbd { padding: 3px 5px; border-radius: 4px; background: #eaeaed; color: #4a4a52; font-size: 12px; }
#add-project-dialog label { margin-top: 15px; }
#add-project-dialog p { line-height: 1.55; }
.folder-upload input { display: block; margin-top: 8px; font-size: 12px; }
#project-create-error { color: #b14a3e; }
.settings-row { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; }
.settings-row img { width: 16px; height: 16px; opacity: .5; }
.project-detail { padding: 0 14px 12px; }
.project-detail button { padding: 9px 12px; border-radius: 6px; margin: 4px 7px 4px 0; background: var(--soft); }
.project-detail button.primary-button { background: var(--accent); color: white; }
@media (max-width: 500px) {
  .project-picker { max-height: calc(100dvh - 24px); }
  .picker-footer { gap: 12px; font-size: 11px; padding: 12px; }
  .picker-search { padding: 12px; }
  .breadcrumb-project { max-width: 95px; }
  .picker-option small { max-width: 240px; }
}
