:root {
  color-scheme: light;
  --ink: #171915;
  --muted: #6b7066;
  --line: #e2e4dc;
  --paper: #f7f7f2;
  --white: #fff;
  --lime: #d9ff67;
  --lime-deep: #b9e637;
  --coral: #ff826d;
  --blue: #6179ff;
  --sidebar: #1d201b;
  --sidebar-muted: #9da397;
  --shadow: 0 18px 50px rgb(23 25 21 / 12%);
  font-family: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body, #root { width: 100%; min-height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgb(97 121 255 / 35%); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .46; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 16px; }
.spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.primary, .secondary, .ghost, .icon-button, .send-button { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; font-weight: 650; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.primary { min-height: 40px; padding: 0 15px; color: var(--ink); background: var(--lime); box-shadow: inset 0 -2px rgb(23 25 21 / 8%); }
.primary:hover:not(:disabled) { background: #e3ff8e; transform: translateY(-1px); }
.secondary { min-height: 40px; padding: 0 14px; background: var(--white); border: 1px solid var(--line); }
.secondary:hover:not(:disabled), .ghost:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: #eff1e9; }
.ghost { min-height: 36px; padding: 0 11px; background: transparent; }
.icon-button { width: 38px; height: 38px; padding: 0; background: transparent; }
.wide { width: 100%; }
.eyebrow { margin: 0; font-size: 10px; line-height: 1.4; font-weight: 800; letter-spacing: .18em; color: var(--muted); }
.offline-banner { position: fixed; z-index: 80; left: 50%; top: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 99px; background: var(--ink); color: white; font-size: 12px; box-shadow: var(--shadow); }
.offline-banner.restored { background: #244f35; }
.offline-banner button { min-height: 27px; padding: 0 9px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 99px; background: transparent; color: white; cursor: pointer; font-weight: 700; }
.offline-banner button:hover { background: rgb(255 255 255 / 12%); }

/* Login */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; background: var(--sidebar); color: white; }
.login-page::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 12%, rgb(217 255 103 / 14%), transparent 28%), radial-gradient(circle at 15% 80%, rgb(255 130 109 / 12%), transparent 26%); }
.login-orbit { position: absolute; border: 1px solid rgb(255 255 255 / 10%); border-radius: 50%; }
.orbit-one { width: 520px; height: 520px; left: -260px; top: -120px; }
.orbit-two { width: 680px; height: 680px; right: -330px; bottom: -320px; }
.login-card { width: min(100%, 440px); position: relative; z-index: 1; padding: 40px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 24px; background: rgb(31 34 29 / 82%); backdrop-filter: blur(18px); box-shadow: 0 40px 100px rgb(0 0 0 / 35%); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px 10px 10px 3px; display: grid; place-items: center; flex: none; background: var(--lime); color: var(--ink); font-weight: 900; transform: rotate(-3deg); }
.brand-mark.large { width: 45px; height: 45px; border-radius: 14px 14px 14px 4px; margin-bottom: 28px; font-size: 21px; }
.login-card .eyebrow { color: var(--lime); }
.login-card h1 { margin: 10px 0 14px; font-size: clamp(34px, 5vw, 48px); line-height: 1.08; letter-spacing: -.045em; }
.login-copy { margin: 0 0 27px; color: #c4c9bf; line-height: 1.75; font-size: 14px; }
.login-form { display: grid; gap: 16px; }
.development-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 0; padding: 8px 10px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 9px; background: rgb(255 255 255 / 7%); color: #c4c9bf; font-size: 11px; }.development-code code { color: var(--lime); font-size: 13px; font-weight: 750; }
.login-form label, .action-sheet label { display: grid; gap: 7px; font-size: 12px; font-weight: 650; }
.login-form input { width: 100%; height: 49px; border-radius: 12px; border: 1px solid rgb(255 255 255 / 14%); padding: 0 14px; color: white; background: rgb(255 255 255 / 7%); }
.login-form input::placeholder { color: #858b81; }
.login-form .primary { min-height: 48px; margin-top: 4px; }
.form-error { margin: 0; display: flex; gap: 7px; align-items: center; color: #ff9b8a; font-size: 12px; }
.privacy-note { margin: 18px 0 0; text-align: center; color: #858b81; font-size: 11px; line-height: 1.5; }

/* Main shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(480px, 1fr) 296px; background: var(--paper); }
.sidebar-shell { min-width: 0; }
.project-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 19px 14px 14px; color: white; background: var(--sidebar); overflow: hidden; }
.brand-row { display: flex; align-items: center; gap: 10px; padding: 0 7px 22px; }
.brand-row strong { font-size: 19px; letter-spacing: -.04em; }
.brand-row > span { color: var(--sidebar-muted); font-size: 11px; border-left: 1px solid #41463e; padding-left: 10px; }
.sidebar-actions { display: grid; grid-template-columns: 1fr 40px; gap: 7px; }
.sidebar-actions .icon-button { background: #30342d; color: #d4d9cf; }
.search { margin: 14px 0 11px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #373b34; border-radius: 10px; color: var(--sidebar-muted); background: #262923; }
.search input { min-width: 0; width: 100%; border: 0; outline: 0; color: white; background: transparent; font-size: 12px; }
.project-list { min-height: 0; flex: 1; overflow-y: auto; }
.nav-label { margin: 12px 8px 8px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #81877d; }
.project-row { width: 100%; border: 0; display: grid; grid-template-columns: 37px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 11px; color: #dfe3dc; text-align: left; background: transparent; cursor: pointer; }
.project-row:hover { background: #282c26; }
.project-row.selected { background: #34392f; box-shadow: inset 2px 0 var(--lime); }
.project-row > span:last-child { min-width: 0; display: grid; gap: 2px; }
.project-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.project-row small { color: #93998f; font-size: 10px; }
.project-avatar { width: 37px; height: 37px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); background: #e7e9df; font-weight: 800; font-size: 11px; }
.project-row:nth-of-type(3n+2) .project-avatar { background: #ffd0c7; }
.project-row:nth-of-type(3n+3) .project-avatar { background: #cfd6ff; }
.sidebar-empty { display: grid; place-items: center; gap: 8px; padding: 36px 10px; color: #777e73; font-size: 12px; }
.account-row { display: grid; grid-template-columns: 1fr 34px; align-items: center; gap: 9px; border-top: 1px solid #343831; padding: 14px 4px 1px; }
.account-profile { min-width: 0; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 9px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.account-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: var(--ink); font-weight: 800; font-size: 10px; }
.account-avatar.small { width: 30px; height: 30px; background: #e9ebE3; }
.account-profile > span:nth-child(2), .member-list > div > span:nth-child(2) { min-width: 0; display: grid; }
.account-row strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.account-row small { color: #8f958b; font-size: 10px; }
.account-row .icon-button { color: #9aa096; }

/* Conversation */
.workspace { min-width: 0; height: 100vh; display: grid; grid-template-rows: auto auto 1fr auto; background: var(--white); border-right: 1px solid var(--line); }
.workspace-header { min-height: 73px; padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.workspace-title { display: flex; align-items: center; gap: 9px; }
.workspace-title h1 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.workspace-header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.header-actions { display: flex; align-items: center; }
.status-pill { padding: 3px 7px; border-radius: 99px; color: #3d4a16; background: #e9fbb5; font-size: 9px; font-weight: 700; }
.status-pill.archived { color: #5a5e57; background: #eceee8; }
.status-pill.deletion-recoverable, .status-pill.cleanup-eligible { color: #873629; background: #ffe0d9; }
.mobile-menu { display: none; }
.overview-strip { margin: 12px 20px 0; border: 1px solid var(--line); border-radius: 13px; background: #fafaf6; overflow: hidden; }
.overview-heading { min-height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 10px; }
.overview-heading svg { color: #667e14; }
.overview-heading span { margin-left: auto; color: var(--muted); }
.overview-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overview-fields > div { min-width: 0; padding: 9px 12px 10px; display: grid; gap: 3px; border-right: 1px solid var(--line); }
.overview-fields > div:last-child { border: 0; }
.overview-fields span { color: var(--muted); font-size: 9px; }
.overview-fields strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #747970; font-size: 10px; font-weight: 500; }
.overview-decisions { display: grid; grid-template-columns: auto repeat(3, minmax(0,1fr)); align-items: center; gap: 7px; padding: 7px 11px; border-top: 1px solid var(--line); }.overview-decisions > span { color: var(--muted); font-size: 9px; }.overview-decisions > div { min-width: 0; display: flex; align-items: center; gap: 5px; }.overview-decisions strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }.overview-decisions small { flex: none; color: var(--muted); font-size: 8px; }
.conversation { min-height: 0; overflow-y: auto; padding: 18px max(22px, 5vw) 8px; scroll-behavior: smooth; }
.message { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 10px; padding: 10px 0; }
.message-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #e9ebe4; font-size: 10px; font-weight: 800; }
.message-avatar.agent { color: #4654b4; background: #e6e9ff; }
.message-content { min-width: 0; }
.message-content header { height: 24px; display: flex; align-items: center; gap: 7px; }
.message-content header strong { font-size: 12px; }
.message-content time { color: #999e96; font-size: 9px; }
.message-content > p { margin: 2px 0 5px; line-height: 1.65; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.result-message .message-content { padding: 10px 13px; border: 1px solid #dfe3ff; border-radius: 12px; background: #f8f8ff; }
.result-message { margin: 4px 0; }
.result-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 99px; color: #4654b4; background: #e5e8ff; font-size: 9px; font-weight: 700; }
.message-mentions { display: flex; flex-wrap: wrap; gap: 4px; }
.message-mentions span, .role-picker button { border: 0; border-radius: 99px; padding: 3px 7px; color: #4b5aa8; background: #eef0ff; font-size: 9px; }
.execution-panel { margin-top: 7px; min-height: 39px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 7px 9px; border-left: 2px solid #a9b3f9; background: #f5f6fb; font-size: 10px; }
.execution-dot { width: 7px; height: 7px; border-radius: 50%; background: #b2b7ae; }
.execution-dot.running { background: var(--blue); box-shadow: 0 0 0 3px rgb(97 121 255 / 15%); }
.execution-dot.succeeded { background: #56a641; }
.execution-dot.failed, .execution-dot.stopped { background: var(--coral); }
.execution-actions { margin-left: auto; display: flex; gap: 4px; }
.execution-actions button { border: 0; background: transparent; font-size: 9px; }
.execution-panel small { width: 100%; color: var(--muted); padding-left: 14px; }
.attachment-list { display: grid; gap: 5px; margin-top: 8px; }
.attachment-list button { max-width: 360px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: white; text-align: left; cursor: pointer; }
.attachment-list button span { font-size: 11px; font-weight: 650; }
.attachment-list button small { color: var(--muted); font-size: 9px; }
.message details { margin-top: 7px; color: var(--muted); font-size: 9px; }
.message details ul { padding-left: 18px; }
.load-more { display: block; margin: 0 auto 10px; border: 0; padding: 6px 10px; border-radius: 99px; color: var(--muted); background: #f0f1ec; cursor: pointer; font-size: 10px; }
.loading-state, .empty-conversation { min-height: 230px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; }
.empty-conversation > div { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; color: #566111; background: var(--lime); transform: rotate(-3deg); }
.empty-conversation h2 { margin: 6px 0 0; color: var(--ink); font-size: 18px; }
.empty-conversation p { max-width: 330px; margin: 0; font-size: 12px; line-height: 1.7; }
.inline-error { margin-bottom: 12px; display: flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 10px; color: #7d3125; background: #fff0ed; font-size: 11px; }
.inline-error button { margin-left: auto; border: 0; color: inherit; background: transparent; font-weight: 700; }
.composer-wrap { padding: 7px max(22px, 5vw) 16px; border-top: 1px solid var(--line); background: white; }
.role-picker { display: flex; gap: 5px; margin-bottom: 6px; overflow-x: auto; }
.role-picker button { cursor: pointer; white-space: nowrap; color: var(--muted); background: #f1f2ed; }
.role-picker button.active { color: var(--ink); background: var(--lime); box-shadow: inset 0 0 0 1px #c7e957; }
.composer-file-controls { position: relative; margin-bottom: 6px; }
.composer-file-trigger { min-height: 26px; display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: white; cursor: pointer; font-size: 9px; }
.composer-file-picker { position: absolute; z-index: 25; left: 0; bottom: calc(100% + 5px); width: min(360px, calc(100vw - 24px)); max-height: 210px; overflow-y: auto; display: grid; gap: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.composer-file-picker button { min-width: 0; display: grid; grid-template-columns: 16px minmax(0,1fr); align-items: center; gap: 4px; padding: 7px; border: 0; border-radius: 7px; background: transparent; text-align: left; cursor: pointer; font-size: 10px; }.composer-file-picker button[aria-pressed="true"] { background: #edf6da; }.composer-file-picker small { grid-column: 2; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.composer { min-height: 56px; display: grid; grid-template-columns: 1fr 39px; align-items: end; gap: 8px; padding: 9px 9px 9px 13px; border: 1px solid #cfd3c9; border-radius: 14px; box-shadow: 0 4px 15px rgb(23 25 21 / 5%); }
.composer:focus-within { border-color: #8f9af0; box-shadow: 0 0 0 3px rgb(97 121 255 / 10%); }
.composer textarea { width: 100%; min-height: 35px; max-height: 120px; resize: none; border: 0; outline: 0; line-height: 1.5; background: transparent; font-size: 12px; }
.send-button { width: 37px; height: 37px; border-radius: 11px; color: var(--ink); background: var(--lime); }
.composer-hint { display: block; margin-top: 5px; color: #9a9f97; font-size: 9px; text-align: right; }
.artifact-toast { position: fixed; z-index: 20; left: 270px; bottom: 20px; display: grid; grid-template-columns: 22px 1fr 30px; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: var(--ink); color: white; box-shadow: var(--shadow); }
.artifact-toast span { display: grid; }
.artifact-toast strong { font-size: 11px; }.artifact-toast small { color: #aab0a6; font-size: 9px; }.artifact-toast button { border: 0; color: white; background: transparent; }

/* Details */
.details-panel { height: 100vh; padding: 18px 17px; overflow-y: auto; background: var(--paper); }
.details-panel > header { display: flex; justify-content: space-between; align-items: flex-start; padding: 2px 2px 17px; }
.details-panel h2 { margin: 3px 0 0; font-size: 17px; }
.details-panel section { padding: 16px 2px; border-top: 1px solid var(--line); }
.section-title { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; }
.section-title h3 { margin: 0; font-size: 12px; }.section-title > span { margin-left: auto; color: var(--muted); font-size: 10px; }
.member-list { display: grid; gap: 8px; margin-bottom: 12px; }
.member-list > div { display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 8px; }
.member-list strong { font-size: 10px; }.member-list small { color: var(--muted); font-size: 9px; }
.member-action, .text-action { border: 0; color: #8a463b; background: transparent; cursor: pointer; font-size: 9px; }
.text-action { margin-top: 9px; min-height: 30px; }
.member-confirm { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 5px; margin: 0 0 9px; padding: 7px; border-radius: 8px; background: #ffebe7; font-size: 9px; }
.member-confirm button { border: 0; border-radius: 6px; padding: 4px 6px; background: white; cursor: pointer; font-size: 9px; }
.invite-code { display: grid; grid-template-columns: minmax(0,1fr) 30px; align-items: center; margin-top: 7px; padding: 6px 7px 6px 9px; border-radius: 9px; background: white; border: 1px solid var(--line); }
.invite-code code { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }.invite-code button { border: 0; background: transparent; cursor: pointer; }
.capability-note { display: grid; grid-template-columns: 27px 1fr; gap: 7px; padding: 10px; border: 1px dashed #cdd0c7; border-radius: 10px; color: var(--muted); }
.capability-note p { display: grid; gap: 3px; margin: 0; }.capability-note strong { color: var(--ink); font-size: 10px; }.capability-note span { line-height: 1.45; font-size: 9px; }
.file-mode { margin-left: auto; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 9px; }
.file-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 5px; margin-bottom: 7px; }
.file-path { min-width: 0; border: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; color: var(--muted); background: transparent; text-align: left; cursor: pointer; font-size: 9px; }
.file-upload { min-height: 29px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: white; cursor: pointer; font-size: 9px; font-weight: 650; }
.file-upload.disabled { opacity: .45; cursor: not-allowed; }.file-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.folder-create { display: grid; grid-template-columns: 1fr 28px; gap: 4px; margin-bottom: 7px; }.folder-create input { min-width: 0; height: 29px; border: 1px solid var(--line); border-radius: 7px; padding: 0 7px; font-size: 9px; }.folder-create button { border: 0; border-radius: 7px; background: var(--lime); cursor: pointer; }
.file-list { display: grid; gap: 4px; }
.file-empty { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; font-size: 9px; }
.file-row { display: grid; grid-template-columns: minmax(0,1fr) repeat(4, auto); align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.file-main { min-width: 0; display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 5px; padding: 2px; border: 0; background: transparent; text-align: left; cursor: pointer; }.file-main > span:last-child { min-width: 0; display: grid; }.file-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }.file-main small { color: var(--muted); font-size: 8px; }
.file-icon { width: 25px; height: 25px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }.file-icon:hover { background: #f0f1eb; }.file-icon.danger { color: #9b4d41; }
.file-restore { display: inline-flex; align-items: center; gap: 3px; min-height: 25px; border: 0; border-radius: 6px; background: #edf6da; cursor: pointer; font-size: 8px; }
.file-dialog-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgb(10 15 20 / 42%); }
.file-dialog { width: min(460px, 100%); max-height: min(620px, calc(100dvh - 32px)); overflow-y: auto; display: grid; gap: 13px; padding: 18px; border-radius: 14px; background: white; box-shadow: 0 18px 60px rgb(0 0 0 / 22%); }
.file-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.file-dialog header > div, .file-dialog label { min-width: 0; display: grid; gap: 4px; }.file-dialog header small { overflow-wrap: anywhere; color: var(--muted); font-size: 10px; }
.file-dialog form { display: grid; gap: 10px; }.file-dialog label span { font-size: 10px; font-weight: 700; }.file-dialog input { min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; }.file-dialog form p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.file-version-list { display: grid; gap: 6px; }.file-version { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; }.file-version > span { min-width: 0; display: grid; gap: 3px; }.file-version strong { font-size: 10px; }.file-version small { color: var(--muted); font-size: 9px; }.file-version button { min-height: 30px; padding: 0 9px; }

.overview-low-frequency { margin-left: auto; border: 0; background: transparent; color: var(--muted); text-decoration: underline; cursor: pointer; }
.overview-sources { margin-top: 8px; font-size: 12px; color: var(--muted); }
.overview-sources summary { cursor: pointer; }
.overview-version { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; }
.context-dialog-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgb(10 15 20 / 42%); }
.context-dialog { width: min(520px, 100%); display: grid; gap: 12px; padding: 18px; border-radius: 14px; background: var(--surface, #fff); box-shadow: 0 18px 60px rgb(0 0 0 / 22%); }
.context-dialog header { display: flex; justify-content: space-between; align-items: center; }
.context-dialog label { display: grid; gap: 5px; font-size: 12px; }
.context-dialog select, .context-dialog input, .context-dialog textarea { width: 100%; box-sizing: border-box; }
.context-confirm { padding: 10px; border-radius: 9px; background: #fff7dc; }
.muted-note { color: var(--muted); font-size: 9px; line-height: 1.5; }
.danger-confirm { margin-top: 8px; padding: 10px; border-radius: 10px; background: #ffebe7; }
.danger-confirm p { margin: 0 0 8px; color: #79372b; font-size: 10px; line-height: 1.5; }
.danger-confirm button { width: 100%; height: 34px; border: 0; border-radius: 8px; color: white; background: #b54c3b; font-size: 10px; font-weight: 700; }

/* Empty / modal */
.empty-workspace { grid-column: span 2; display: grid; place-items: center; align-content: center; padding: 30px; text-align: center; }
.empty-workspace h1 { margin: 8px 0; font-size: 30px; letter-spacing: -.04em; }.empty-workspace > p:not(.eyebrow) { max-width: 420px; color: var(--muted); line-height: 1.7; font-size: 13px; }.empty-workspace > div:last-child { display: flex; gap: 8px; }
.empty-illustration { width: 120px; height: 90px; position: relative; display: grid; place-items: center; margin-bottom: 22px; color: var(--ink); }
.empty-illustration span { position: absolute; width: 76px; height: 58px; border-radius: 18px 18px 18px 5px; background: var(--lime); transform: translate(-14px,-5px) rotate(-8deg); }.empty-illustration span:nth-child(2) { background: var(--coral); transform: translate(18px,8px) rotate(8deg); }.empty-illustration svg { z-index: 2; }
.modal-backdrop { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(23 25 21 / 55%); backdrop-filter: blur(5px); }
.action-sheet { width: min(100%, 420px); padding: 22px; border-radius: 18px; background: white; box-shadow: var(--shadow); }
.action-sheet > header { display: flex; align-items: flex-start; justify-content: space-between; }.action-sheet h2 { margin: 4px 0 20px; font-size: 21px; }
.action-sheet form { display: grid; gap: 15px; }.action-sheet input { height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; }
.account-settings > header h2 { margin-bottom: 3px; }.account-settings > header p { margin: 0 0 15px; color: var(--muted); font-size: 11px; }
.account-settings > section { padding: 15px 0; border-top: 1px solid var(--line); }.account-settings section h3 { margin: 0 0 5px; font-size: 13px; }.account-settings section > p { margin: 0 0 11px; color: var(--muted); font-size: 10px; line-height: 1.6; }.account-settings .account-danger h3 { color: #873629; }
.account-state-page { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 10px; padding: 28px; background: var(--paper); text-align: center; }.account-state-page .state-icon { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 17px; background: var(--lime); transform: rotate(-3deg); }.account-state-page h1 { margin: 4px 0 0; font-size: clamp(25px, 4vw, 38px); letter-spacing: -.04em; }.account-state-page > p:not(.eyebrow) { max-width: 480px; margin: 0 0 8px; color: var(--muted); line-height: 1.7; font-size: 13px; }.account-state-page > small { color: var(--muted); font-size: 10px; }
.mobile-projects { display: none; }

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 230px minmax(0,1fr); }
  .details-panel { position: fixed; z-index: 50; right: 0; top: 0; width: min(330px, 92vw); box-shadow: -20px 0 60px rgb(23 25 21 / 15%); }
}

@media (max-width: 700px) {
  .app-shell { display: block; }
  .workspace { height: 100dvh; border: 0; }
  .sidebar-shell { position: fixed; z-index: 71; left: 0; top: 0; bottom: 0; width: min(82vw, 310px); transform: translateX(-102%); transition: transform .22s ease; }
  .sidebar-shell.open { transform: translateX(0); }
  .project-sidebar { width: 100%; }
  .mobile-projects { display: block; position: fixed; z-index: 70; inset: 0; visibility: hidden; background: rgb(23 25 21 / 45%); opacity: 0; transition: opacity .2s; }
  .mobile-projects.open { visibility: visible; opacity: 1; }
  .mobile-menu { display: inline-flex; }
  .workspace-header { min-height: 65px; padding: 10px 12px; justify-content: flex-start; }
  .workspace-header > div:nth-child(2) { min-width: 0; flex: 1; }
  .workspace-title h1 { max-width: 42vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
  .header-actions .ghost { display: none; }
  .overview-strip { margin: 8px 10px 0; }
  .overview-heading span { display: none; }
  .overview-fields { overflow-x: auto; grid-template-columns: repeat(3, minmax(145px, 1fr)); }
  .overview-decisions { grid-template-columns: auto 1fr; }.overview-decisions > div:nth-of-type(n+3) { display: none; }
  .conversation { padding: 12px 14px 5px; }
  .composer-wrap { padding: 7px 10px max(10px, env(safe-area-inset-bottom)); }
  .message { grid-template-columns: 30px minmax(0,1fr); gap: 8px; }.message-avatar { width: 29px; height: 29px; border-radius: 9px; }
  .message-content > p { font-size: 12px; }.result-message .message-content { padding: 9px; }
  .execution-panel { align-items: flex-start; }.execution-actions { width: 100%; margin-left: 12px; }
  .composer-hint { display: none; }
  .details-panel { width: 92vw; }
  .visual-fixture .details-panel { display: none; }
  .artifact-toast { left: 12px; right: 12px; bottom: 96px; }
  .empty-workspace { height: 100dvh; }.empty-workspace h1 { font-size: 25px; }
  .login-card { padding: 28px 23px; border-radius: 20px; }.login-card h1 { font-size: 34px; }
  .offline-banner { width: calc(100% - 24px); justify-content: center; border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
