:root {
  color-scheme: light;
  font-family: var(--awh-font-sans);
  font-synthesis: none;
  --canvas: var(--awh-canvas);
  --surface: var(--awh-surface);
  --surface-raised: var(--awh-surface-raised);
  --surface-soft: var(--awh-surface-soft);
  --line: var(--awh-line);
  --text: var(--awh-text);
  --muted: var(--awh-muted);
  --accent: var(--awh-accent);
  --accent-ink: var(--awh-accent-ink);
  --danger: var(--awh-danger);
}

html,
body { max-width: 100%; }

html {
  min-height: 100%;
  background-color: var(--canvas);
  overscroll-behavior-y: none;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

button,
input,
textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
* { box-sizing: border-box; }
img, svg, canvas, video { max-width: 100%; }
[hidden] { display: none !important; }

.app-shell {
  isolation: isolate;
  min-width: 0;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background-color: var(--canvas);
}

.app-header,
.app-main { width: min(100% - 40px, 880px); min-width: 0; max-width: 100%; margin-inline: auto; }

.app-header {
  display: flex;
  min-height: calc(72px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand-mark { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; color: var(--accent-ink); background: var(--accent); font-size: 18px; font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: -.01em; }
.brand small { overflow: hidden; max-width: 230px; margin-top: 2px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { display: inline-flex; align-items: center; gap: 8px; }
.quiet-status { color: var(--muted); font-size: 12px; white-space: nowrap; }

.app-main { padding-bottom: calc(42px + env(safe-area-inset-bottom)); }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.03em; }
.muted, .form-message { color: var(--muted); font-size: 14px; line-height: 1.55; }
.form-message { min-height: 1.3em; margin: 0; }

.sign-in-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 390px); align-items: center; gap: clamp(36px, 9vw, 104px); min-height: calc(100dvh - 96px); padding-block: 32px 64px; }
.sign-in-copy h1 { max-width: 560px; margin-bottom: 18px; font-size: clamp(42px, 7vw, 70px); line-height: .99; }
.sign-in-copy > p:last-child { max-width: 480px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.auth-card, .sheet-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 18px 52px rgba(0, 0, 0, .25); }
.auth-card { display: grid; gap: 11px; padding: 24px; }
.auth-card h2 { margin: 0; font-size: 23px; }
.auth-card .muted { margin: -3px 0 8px; }
label { color: #d7dce4; font-size: 13px; font-weight: 650; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  color: var(--text);
  background: #0f1217;
  box-shadow: none;
}
input { min-height: 46px; padding: 11px 13px; }
select { min-height: 46px; padding: 11px 13px; }
textarea { min-height: 82px; padding: 13px 14px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 138, 54, .16); }
.check-row { display: flex; align-items: center; gap: 9px; margin: 2px 0 4px; color: var(--muted); font-weight: 500; }
.check-row input { width: 17px; min-height: 17px; accent-color: var(--accent); }

.primary-button, .secondary-button, .danger-button, .refresh-button, .icon-button, .text-button, .project-trigger, .conversation-trigger { border: 0; cursor: pointer; }
.primary-button { min-height: 46px; border-radius: 12px; padding: 11px 16px; color: var(--accent-ink); background: var(--accent); font-weight: 800; }
.primary-button:disabled { cursor: not-allowed; opacity: .48; }
.secondary-button, .danger-button, .refresh-button, .icon-button { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--text); background: var(--surface-raised); font-weight: 700; }
.danger-button { width: 100%; margin-top: 18px; color: #ffd6d2; border-color: #743a38; background: #2a1719; }
.text-button { display: inline-flex; min-height: 44px; align-items: center; width: fit-content; padding: 4px 0; color: var(--muted); background: transparent; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.technical-entry { color: var(--muted); font-size: 13px; line-height: 1.55; }
.technical-entry summary { cursor: pointer; color: var(--muted); }
.technical-entry[open] { display: grid; gap: 9px; padding-top: 8px; }
.technical-entry p { margin: 0; }
.advanced-ai-fields { display: grid; gap: 9px; margin-top: 12px; }
.provider-advanced { margin: 2px 0 4px; }

.workspace-view { padding-top: clamp(12px, 3vw, 30px); }
.workspace-heading { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; margin-bottom: clamp(24px, 5vw, 44px); }
.workspace-heading > div { min-width: 0; }
.workspace-home { display: inline-flex; min-height: 42px; align-items: center; gap: 9px; border: 0; border-radius: 12px; padding: 5px 8px 5px 5px; color: var(--text); background: transparent; font-weight: 800; cursor: pointer; }
.workspace-home:hover { background: var(--surface); }
.workspace-home-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--accent-ink); background: var(--accent); font-size: 15px; font-weight: 900; }
.project-trigger { display: inline-flex; min-width: 0; max-width: min(100%, 620px); align-items: center; gap: 8px; padding: 0; color: var(--text); background: transparent; font-size: clamp(26px, 5vw, 42px); font-weight: 780; letter-spacing: -.045em; text-align: left; }
.project-trigger span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-trigger { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; margin-top: 8px; padding: 0; color: var(--muted); background: transparent; font-size: 14px; text-align: left; }
.conversation-trigger:hover { color: var(--text); }
.worker-summary { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.refresh-button { flex: 0 0 auto; color: var(--muted); }
.workstream { min-width: 0; min-height: min(54dvh, 560px); }
.workstream-title { margin-bottom: 22px; }
.workstream-title h1 { margin-bottom: 7px; font-size: clamp(28px, 4vw, 38px); }
.workstream-title p { margin: 0; color: var(--muted); font-size: 15px; }
.empty-work { max-width: 540px; padding: 30px 0 42px; color: var(--muted); }
.empty-work h2 { margin: 12px 0 8px; color: var(--text); font-size: 21px; }
.empty-work p { margin: 0; line-height: 1.6; }
.empty-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #6a4226; border-radius: 12px; color: var(--accent); background: #20170f; }
.work-thread { display: grid; min-width: 0; gap: 16px; max-width: 740px; margin: 0; padding: 0 0 32px; list-style: none; }
.task-turn { display: grid; min-width: 0; gap: 8px; }
.task-goal { width: fit-content; max-width: min(100%, 620px); margin-left: auto; padding: 13px 15px; border-radius: 16px 16px 4px 16px; color: #fff; background: var(--surface-soft); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-response { display: grid; min-width: 0; gap: 8px; padding: 2px 0 0; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.state-chip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; color: #c8cdd7; background: var(--surface); font-size: 11px; font-weight: 750; }
.state-chip.completed { color: #b7efcc; border-color: #2d6747; background: #14231a; }
.state-chip.failed { color: #ffd2cf; border-color: #713d3b; background: #29191a; }
.state-chip.approval { color: #ffd4a9; border-color: #775132; background: #261b13; }
.task-summary { max-width: 650px; color: #d5dae2; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.task-actions .secondary-button { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.artifact-links { display: grid; gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }

.composer { position: sticky; bottom: 0; z-index: 2; display: grid; min-width: 0; gap: 10px; margin: 0; padding: 16px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--canvas); }
.composer textarea { min-height: 58px; max-height: 180px; resize: none; background: var(--surface); }
.composer-actions { display: flex; min-width: 0; min-height: 36px; align-items: center; justify-content: space-between; gap: 14px; }
.composer-tools { display: flex; min-width: 0; align-items: center; gap: 9px; }
.composer-tools .icon-button { width: 36px; height: 36px; flex: 0 0 auto; padding: 0; font-size: 22px; line-height: 1; }
.composer-actions .primary-button { min-height: 38px; padding: 8px 13px; }
.pending-attachments, .message-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pending-attachments li, .message-attachments a, .message-attachments span { display: inline-flex; min-width: 0; align-items: center; gap: 7px; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; color: var(--text); background: var(--surface); font-size: 13px; overflow-wrap: anywhere; text-decoration: none; }
.pending-attachments span { overflow: hidden; max-width: 210px; text-overflow: ellipsis; white-space: nowrap; }
.pending-attachments button { border: 0; padding: 0; color: var(--muted); background: transparent; font: inherit; cursor: pointer; }
.message-attachments { margin-top: 8px; }
.message-attachments a:hover { border-color: #745033; color: #fff; }
.advanced-panel { max-width: 740px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.advanced-panel summary { cursor: pointer; }
.advanced-panel > div { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.advanced-panel p { margin: 0; }

.sheet { position: fixed; z-index: 10; inset: 0; display: grid; max-width: 100%; align-items: end; padding: 16px; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .66); }
.sheet-card { position: relative; z-index: 1; width: min(100%, 700px); min-width: 0; max-width: 100%; max-height: min(84dvh, 760px); margin: auto; overflow: auto; padding: 22px; }
.sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sheet-header h2 { margin: 0; font-size: 24px; }
.project-list, .session-list { display: grid; gap: 8px; }
.conversation-list { margin-top: 14px; }
.conversation-title-form { display: grid; gap: 8px; margin-top: 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.conversation-title-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.conversation-title-form .text-button { justify-self: start; }
.conversation-title-form .conversation-delete { color: #ffaaa3; }
.conversation-trash { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.conversation-trash > summary { min-height: 44px; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 750; }
.conversation-trash-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.conversation-trash-row > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.conversation-trash-row strong { color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.conversation-trash-row small { color: var(--muted); font-size: 11px; }
.conversation-trash-row .secondary-button { flex: 0 0 auto; min-height: 38px; }

.project-choice { display: grid; width: 100%; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: var(--surface-raised); text-align: left; }
.project-choice.selected { border-color: var(--accent); }
.project-choice strong { font-size: 15px; }
.project-choice span { color: var(--muted); font-size: 12px; }
.account-card { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.settings-tabs { display: flex; gap: 7px; margin: 0 -2px 6px; padding: 2px 2px 10px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.settings-tabs::-webkit-scrollbar { display: none; }
.settings-tab { min-width: var(--awh-touch-target, 44px); min-height: var(--awh-touch-target, 44px); flex: 0 0 auto; border: 1px solid transparent; border-radius: 999px; padding: 7px 11px; color: var(--muted); background: transparent; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.settings-tab.active { border-color: var(--line); color: var(--text); background: var(--surface-raised); }
@media (max-width: 540px) { .settings-tabs { flex-wrap: wrap; overflow-x: visible; } }
.settings-panel { min-height: 280px; padding-bottom: 6px; }
.settings-intro, .settings-summary { padding: 20px 0 6px; }
.settings-intro h3, .settings-summary h3 { margin: 0 0 7px; font-size: 22px; }
.settings-intro p:last-child, .settings-summary p:last-child { margin-bottom: 0; }
.settings-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.settings-action { display: grid; min-height: 116px; gap: 7px; align-content: start; border: 1px solid var(--line); border-radius: 14px; padding: 15px; color: var(--text); background: var(--surface-raised); text-align: left; font: inherit; cursor: pointer; }
.settings-action strong { font-size: 14px; }
.settings-action span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.settings-action:hover { border-color: #65442d; background: #1c1f25; }
.account-form { display: grid; gap: 9px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.account-form h3 { margin: 0 0 2px; font-size: 16px; }
.compact-form { display: grid; gap: 9px; margin-top: 14px; }
.compact-form > .form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.recovery-card { border-color: #4a3b2d; }
.session-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.session-row .secondary-button { min-height: 34px; padding: 6px 9px; font-size: 12px; }
.memory-row { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.memory-row p, .memory-row small { margin: 0; color: var(--muted); line-height: 1.55; }
.memory-header, .memory-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.memory-header span { color: var(--muted); font-size: 12px; }
.memory-actions { justify-content: flex-start; }
.memory-actions .secondary-button { min-height: 34px; padding: 6px 9px; font-size: 12px; }
pre { max-width: 100%; overflow-x: auto; overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #0f1217; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
code { overflow-wrap: anywhere; word-break: break-word; }

.workstream, .work-thread, .task-turn, .task-response, .composer { min-width: 0; }
.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; }

@media (max-width: 680px) {
  .app-header, .app-main { width: min(100% - 32px, 680px); }
  .brand small { max-width: 170px; }
  .quiet-status { display: none; }
  .sign-in-view { grid-template-columns: 1fr; align-content: start; min-height: auto; padding-top: 34px; }
  .sign-in-copy h1 { font-size: clamp(38px, 11vw, 54px); }
  .sign-in-copy > p:last-child { font-size: 16px; }
  .auth-card { padding: 20px; }
  .workspace-heading { align-items: flex-start; margin-bottom: 34px; }
  .project-trigger { font-size: 30px; }
  .refresh-button { min-height: 36px; padding: 7px 9px; font-size: 12px; }
  .workstream { min-height: min(50dvh, 480px); }
  .composer { margin: 0; padding-inline: 0; }
  .advanced-panel > div { display: grid; }
  .sheet { align-items: end; padding: 0; }
  .sheet-card { width: 100%; max-height: 88dvh; border-radius: 20px 20px 0 0; }
  .settings-action-grid { grid-template-columns: 1fr; }
  .settings-panel { min-height: 340px; }
}

@media (prefers-reduced-motion: no-preference) { .sheet-card { animation: sheet-in .16s ease-out; } }
@keyframes sheet-in { from { transform: translateY(12px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }

.sheet-card .icon-button,
.sheet-card .secondary-button,
.sheet-card .text-button {
  min-height: var(--awh-touch-target, 44px);
}
.sheet-card .text-button { display: inline-flex; align-items: center; }

.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.inline-form input, .inline-form select { min-width: 0; }
.task-progress-row { display: grid; grid-template-columns: minmax(90px, 180px) 1fr; gap: 10px; align-items: center; max-width: 650px; color: var(--muted); font-size: 12px; }
.task-progress-row progress { width: 100%; height: 8px; accent-color: var(--accent); }
.person-card { display: grid; gap: 10px; }
.person-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.person-access-editor { display: grid; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.person-projects { display: grid; gap: 6px; }
@media (max-width: 640px) { .inline-form { grid-template-columns: 1fr; } .task-progress-row { grid-template-columns: 1fr; } }

.login-downloads{margin-top:10px;padding-top:10px;border-top:1px solid var(--line);display:grid;gap:6px;color:var(--muted);font-size:.78rem}.login-downloads>span{font-weight:650}.login-download-actions{display:flex;gap:7px;flex-wrap:wrap}.login-download-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 10px;border:1px solid var(--line);border-radius:9px;color:var(--text);background:var(--surface-soft);text-decoration:none;font-size:.78rem;font-weight:650}.login-download-actions a:hover,.login-download-actions a:focus-visible{border-color:var(--accent);outline:none}.login-downloads small{font-size:.7rem}


/* Canonical Work surface: chat-first, mobile-safe, and free of presentation overlays. */
body.work-active { height: 100dvh; overflow: hidden; }
body.work-active .app-shell { display: flex; height: 100dvh; min-height: 0; flex-direction: column; overflow: hidden; }
body.work-active .app-header { display: none; }
body.work-active .app-main { display: flex; width: min(100% - 20px, 900px); min-height: 0; flex: 1 1 auto; padding: 0; overflow: hidden; }
body.work-active .workspace-view { display: flex; width: 100%; min-height: 0; padding: 0; flex: 1 1 auto; flex-direction: column; overflow: hidden; }
body.work-active .workspace-heading { display: grid; min-height: calc(58px + env(safe-area-inset-top)); flex: 0 0 auto; grid-template-columns: auto minmax(0,1fr) auto; margin: 0; padding-top: env(safe-area-inset-top); align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
body.work-active .workspace-home { min-width: 42px; padding-right: 9px; }
body.work-active .workspace-home > span:last-child { font-size: 12px; }
body.work-active .workspace-heading .eyebrow { display: none; }
body.work-active .workspace-project { min-width: 0; }
body.work-active .workspace-actions { display: inline-flex; align-items: center; gap: 4px; }
body.work-active .workspace-account { display: inline-flex; min-height: 34px; padding: 6px 9px; font-size: 12px; }
body.work-active .workspace-project { display: flex; min-width: 0; flex-direction: column; }
body.work-active .conversation-trigger { order: 0; display: inline-flex; margin: 0; color: var(--text); font-size: 15px; font-weight: 780; line-height: 1.2; }
body.work-active .project-trigger { order: 1; max-width: 100%; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 0; }
body.work-active .workspace-chat-action { width: 34px; min-height: 34px; padding: 0; border: 0; background: transparent; font-size: 20px; }
body.work-active .work-advanced-links, body.work-active .advanced-panel { display: none !important; }
body.work-active .hub-status-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; color: #8d97a4; font-size: 10px; }
body.work-active .status-item { display: inline-flex; align-items: center; gap: 5px; }
body.work-active .status-dot { width: 6px; height: 6px; border-radius: 50%; background: #5bd58c; box-shadow: 0 0 9px rgba(91,213,140,.42); }
body.work-active .refresh-button { width: 34px; min-height: 34px; padding: 0; border: 0; background: transparent; font-size: 18px; }
body.work-active .workstream { position: relative; display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; overflow: hidden; }
body.work-active .workstream-title { display: none; }
body.work-active .empty-work { margin: auto; padding: 24px 0; text-align: center; }
body.work-active .work-thread { display: block; width: 100%; max-width: 780px; min-height: 0; flex: 1 1 auto; margin: 0 auto; padding: 20px 0 28px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
body.work-active .conversation-latest { position: absolute; z-index: 3; right: max(10px, calc((100% - 780px) / 2)); bottom: 12px; min-height: 38px; border: 1px solid rgba(255,138,54,.28); border-radius: 999px; padding: 7px 12px; color: #ffd2b1; background: rgba(30,22,16,.96); box-shadow: 0 10px 30px rgba(0,0,0,.28); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
body.work-active .task-turn { margin-bottom: 14px; }
body.work-active .user-turn { justify-items: end; }
body.work-active .task-goal { max-width: min(78%, 620px); margin: 0; padding: 11px 13px; border: 1px solid rgba(255,138,54,.18); border-radius: 18px 18px 5px 18px; background: #261b14; }
body.work-active .assistant-turn { grid-template-columns: 30px minmax(0,1fr); align-items: start; }
body.work-active .assistant-turn::before { content: 'A'; display: grid; width: 28px; height: 28px; grid-row: 1 / span 4; place-items: center; border-radius: 9px; color: var(--accent); background: #21170f; font-size: 10px; font-weight: 900; }
body.work-active .assistant-turn .task-response { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
body.work-active .task-summary { max-width: none; margin: 0; color: #e7eaee; font-size: 14px; line-height: 1.62; }
body.work-active .task-meta { opacity: .72; font-size: 10px; }
body.work-active .task-progress-row { grid-template-columns: 96px minmax(0,1fr); }
body.work-active .typing-indicator { width: fit-content; margin: 2px 0; color: var(--muted); font-size: 12px; }
body.work-active .composer { position: relative; bottom: auto; flex: 0 0 auto; width: 100%; max-width: 780px; margin: 0 auto; padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--canvas); }
body.work-active .composer textarea { min-height: 64px; max-height: 140px; border-radius: 16px; background: var(--surface); }
body.work-active .composer-actions { min-height: 36px; }
body.work-active .composer-actions .primary-button { min-width: 74px; }
body.work-active .form-message { min-height: 0; }

/* Work is a fixed conversation viewport; authenticated product surfaces are not. */
body.work-active.product-dashboard-active {
  height: auto;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
}
body.work-active.product-dashboard-active .app-shell {
  display: block;
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}
body.work-active.product-dashboard-active .app-main {
  display: block;
  min-height: 100dvh;
  overflow: visible;
}
@media (max-width: 680px) {
  body.work-active .app-main { width: calc(100% - 20px); padding-bottom: 74px; }
  body.work-active .workspace-heading { min-height: 58px; grid-template-columns: auto minmax(0,1fr) auto; }
  body.work-active .workspace-home { padding-right: 5px; }
  body.work-active .workspace-account { padding-inline: 7px; }
  body.work-active .workspace-home > span:last-child { display: none; }
  body.work-active .project-trigger { font-size: 14px; }
  body.work-active .conversation-trigger { font-size: 10px; }
  body.work-active .hub-status-row { font-size: 9px; }
  body.work-active .work-thread { padding: 14px 0 20px; }
  body.work-active .task-goal { max-width: 86%; font-size: 14px; }
  body.work-active .assistant-turn { grid-template-columns: 28px minmax(0,1fr); }
  body.work-active .assistant-turn::before { width: 26px; height: 26px; }
  body.work-active .assistant-turn .task-response { padding: 11px 12px; }
  body.work-active .composer { margin: 0; padding-inline: 0; }
}

/* M17 product polish: calm hierarchy, clear owner system entry, touch-first. */
.settings-action,
.system-feature-card,
.secondary-button,
.primary-button,
.icon-button { transition: border-color .16s ease, background-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.settings-action:focus-visible,
.system-feature-card:focus-visible,
.secondary-button:focus-visible,
.primary-button:focus-visible,
.icon-button:focus-visible { outline: 3px solid rgba(255, 138, 54, .22); outline-offset: 2px; }
.system-action-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .85fr); gap: 12px; margin-top: 18px; }
.system-action-grid > *, .system-feature-copy, .system-health-details { min-width: 0; }
.system-feature-card,
.system-health-card { min-height: 150px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-raised); }
.system-feature-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; color: var(--text); text-decoration: none; }
.system-feature-card:hover { border-color: #6a472d; transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, .22); }
.system-feature-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #65442d; border-radius: 13px; color: var(--accent); background: #21170f; font-size: 23px; }
.system-feature-copy { display: grid; gap: 6px; }
.system-feature-copy strong { font-size: 16px; }
.system-feature-copy small { color: var(--muted); font-size: 12px; line-height: 1.55; }
.system-feature-arrow { color: var(--muted); font-size: 21px; }
.system-health-card { padding: 18px; }
.system-health-card > div { display: flex; align-items: center; gap: 9px; }
.system-health-card > .system-health-details { display: grid; }
.system-health-details .session-item { min-width: 0; overflow-wrap: anywhere; }
.system-health-card p { margin: 10px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.system-health-dot { width: 9px; height: 9px; border-radius: 50%; background: #63d893; box-shadow: 0 0 0 4px rgba(99, 216, 147, .09); }
.system-advanced { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
@media (max-width: 680px) { .system-action-grid { grid-template-columns: minmax(0, 1fr); } .system-feature-card, .system-health-card { min-height: auto; } }

.execution-details { margin-top: 7px; color: var(--muted); font-size: 11px; }
.execution-details > summary { width: fit-content; cursor: pointer; user-select: none; list-style: none; }
.execution-details > summary::-webkit-details-marker { display: none; }
.execution-details > summary::after { content: ' ›'; }
.execution-details[open] > summary::after { content: ' ⌄'; }
.execution-journey { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; list-style: none; margin: 9px 0 0; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.025); }
.execution-step { display: flex; min-width: 0; align-items: center; gap: 6px; font-size: 11px; opacity: .42; white-space: normal; }
.execution-step-dot { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.execution-step.done { opacity: .68; }
.execution-step.done .execution-step-dot, .execution-step.active .execution-step-dot { background: currentColor; }
.execution-step.active { opacity: 1; font-weight: 700; }
.execution-step.halted { opacity: .82; font-weight: 700; }

/* AWH UX Closure v2 — outcome-first file results and compact work composer. */
.artifact-results { display: grid; gap: 9px; margin-top: 4px; }
.result-file-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: #0f1216; }
.result-file-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #ffd5b6; background: rgba(255,122,26,.13); font-size: 11px; font-weight: 900; }
.result-file-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.result-file-copy strong { overflow: hidden; color: #f3f5f7; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.result-file-copy small { color: #89929e; font-size: 10px; }
.result-file-actions { display: flex; align-items: center; gap: 7px; }
.result-file-actions a, .result-file-actions button { min-height: 34px; box-sizing: border-box; padding: 7px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #eef1f4; background: #191d22; font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.result-file-actions a:last-of-type, .result-file-actions button { border-color: rgba(255,122,26,.28); color: #ffc69d; background: rgba(255,122,26,.08); }
.result-file-actions button { box-sizing: border-box; padding: 7px 10px; border: 1px solid rgba(255,122,26,.28); border-radius: 10px; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; white-space: nowrap; }
body.work-active .composer { gap: 5px; margin: 7px auto 10px; padding: 8px 10px 9px; border: 1px solid var(--line); border-radius: 20px; background: #111419; box-shadow: 0 -10px 36px rgba(8,10,13,.22); }
body.work-active .composer textarea { min-height: 52px; max-height: 140px; padding: 8px 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.work-active .composer textarea:focus { border: 0; box-shadow: none; }
body.work-active .composer-actions { min-height: 34px; gap: 9px; }
body.work-active .composer-tools .icon-button { width: 32px; height: 32px; border-radius: 10px; font-size: 20px; }
body.work-active .composer-actions .primary-button { min-width: 58px; min-height: 36px; padding: 6px 11px; border-radius: 11px; }
@media (max-width: 680px) {
  body.work-active .composer { width: 100%; margin: 4px 0 8px; padding: 7px 8px 8px; border-radius: 18px; }
  body.work-active .composer textarea { min-height: 48px; padding: 7px 4px; font-size: 16px; }
  body.work-active .composer-actions .primary-button { min-width: 38px; width: 38px; height: 36px; padding: 0; font-size: 18px; }
  body.work-active .composer-actions .primary-button .send-label { display: none; }
  .result-file-card { grid-template-columns: 38px minmax(0,1fr); padding: 10px; }
  .result-file-icon { width: 38px; height: 38px; }
  .result-file-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .result-file-actions a, .result-file-actions button { flex: 1 1 0; text-align: center; }
  body.work-active .hub-status-row { display: none; }
  .execution-journey { grid-template-columns: 1fr 1fr; }
  .user-task-status { max-width: 86%; }
  body.work-active .workspace-heading { min-height: calc(50px + env(safe-area-inset-top)); }
  body.work-active .workspace-account, body.work-active .refresh-button { display: none !important; }
  body.work-active .conversation-latest { right: 8px; bottom: 8px; }
  body.work-active .conversation-trigger { margin-top: 1px; }
}

.artifact-sheet-card { width: min(100%, 980px); height: min(88vh, 820px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.artifact-sheet-card .sheet-header { min-width: 0; }
.artifact-sheet-card .sheet-header > div { min-width: 0; }
.artifact-sheet-card .sheet-header h2 { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.artifact-preview { min-width: 0; min-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(8,10,13,.62); }
.artifact-preview-frame { display: block; width: 100%; height: 100%; min-height: 520px; border: 0; background: #fff; }
.artifact-preview-image { display: block; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
.artifact-preview-text { min-width: 0; margin: 0; padding: 18px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.artifact-preview-message { display: grid; min-height: 240px; place-content: center; gap: 8px; padding: 28px; text-align: center; }
.artifact-preview-message p { max-width: 560px; margin: 0; color: var(--muted); }
.artifact-workspace-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 12px; }
.artifact-workspace-actions a { text-decoration: none; }
@media (max-width: 680px) {
  .artifact-sheet { align-items: stretch; }
  .artifact-sheet-card { width: 100%; height: 100dvh; max-height: 100dvh; padding: calc(14px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; }
  .artifact-preview { min-height: 0; border-radius: 14px; }
  .artifact-preview-frame { min-height: 100%; }
  .artifact-workspace-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artifact-workspace-actions > * { width: 100%; text-align: center; }
}

/* Chat-first mobile Work: keep navigation available on Home, not inside a focused conversation. */
body.work-active.awh-keyboard-open:not(.product-dashboard-active) .awh-mobile-nav { display: none !important; }
body.work-active .assistant-turn .task-response { border: 0; background: transparent; padding: 7px 0; }
body.work-active .result-turn .task-meta { display: none; }
@media (max-width: 680px) {
  body.work-active:not(.product-dashboard-active) .app-main { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  body.work-active.awh-keyboard-open:not(.product-dashboard-active) .app-main { padding-bottom: 0; }
  body.work-active .work-thread { padding-bottom: 12px; }
  body.work-active .assistant-turn .task-response { padding: 4px 0; }
  body.work-active .composer { margin-bottom: calc(6px + env(safe-area-inset-bottom)); }
}

/* Live Activity: one compact, human-first status surface backed by canonical task/action-graph polling. */
.live-activity { display: grid; gap: 7px; min-width: 0; padding: 10px 0 2px; }
.live-activity-headline { display: flex; min-width: 0; align-items: center; gap: 9px; }
.live-activity-headline strong { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.live-activity-pulse { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,122,26,.35); animation: awh-live-pulse 1.6s ease-out infinite; }
.live-activity p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.live-activity progress { width: 100%; height: 5px; accent-color: var(--accent); }
.live-activity-updated { color: #737d89; font-size: 10px; }
@keyframes awh-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,122,26,.34); } 70%,100% { box-shadow: 0 0 0 8px rgba(255,122,26,0); } }
@media (prefers-reduced-motion: reduce) { .live-activity-pulse { animation: none; } }

/* AiPASS UX P0 — compact one-line composer; details stay progressively disclosed. */
body.work-active .composer textarea{min-height:44px}
body.work-active .assistant-turn:not(.approval-turn):not(.failure-turn) .task-meta{display:none}
@media(max-width:680px){body.work-active .composer textarea{min-height:44px}}
/* BAY Ecosystem gateway + national landing polish. AWH remains the canonical root surface. */
.app-header{border-bottom:1px solid rgba(255,255,255,.045)}
.brand-mark{box-shadow:0 8px 24px rgba(255,138,54,.16)}
.ecosystem-link{display:inline-flex;min-height:40px;align-items:center;padding:8px 12px;border:1px solid var(--line);border-radius:999px;color:var(--text);background:var(--surface);text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap}.ecosystem-link:hover,.ecosystem-link:focus-visible{border-color:var(--accent);outline:none;background:var(--surface-raised)}
.sign-in-copy{position:relative}.sign-in-copy:before{content:"";display:block;width:48px;height:3px;margin:0 0 24px;border-radius:999px;background:var(--accent)}.sign-in-copy .eyebrow{font-size:10px;letter-spacing:.2em}.sign-in-copy h1{max-width:620px}.sign-in-copy>p{max-width:560px}.auth-card{position:relative;overflow:hidden;padding:28px;border-color:#303743;box-shadow:0 28px 78px rgba(0,0,0,.32)}.auth-card:before{content:"AWH";position:absolute;right:18px;top:15px;color:#ffffff08;font-size:52px;font-weight:950;letter-spacing:-.06em;pointer-events:none}.auth-card .primary-button{min-height:50px}.auth-secondary-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.login-downloads{margin-top:4px;padding-top:14px}.ecosystem-strip{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:13px;align-items:center;max-width:540px;margin-top:26px;padding:15px 16px;border:1px solid #303743;border-radius:17px;color:var(--text);background:var(--surface);text-decoration:none;box-shadow:0 18px 42px rgba(0,0,0,.18)}.ecosystem-strip:hover,.ecosystem-strip:focus-visible{border-color:#71492d;outline:none;transform:translateY(-1px);background:var(--surface-raised)}.ecosystem-strip-mark{display:grid;width:44px;height:44px;place-items:center;border-radius:13px;color:#fff;background:#285ccc;font-size:18px;font-weight:900}.ecosystem-strip strong,.ecosystem-strip small{display:block}.ecosystem-strip strong{font-size:14px}.ecosystem-strip small{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.45}.ecosystem-strip-arrow{color:var(--accent);font-size:20px;font-weight:900}.awh-trust-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.awh-trust-row span{display:inline-flex;min-height:28px;align-items:center;padding:5px 9px;border:1px solid rgba(255,255,255,.07);border-radius:999px;color:#7f8996;background:#0f1216;font-size:10px;font-weight:700}.workspace-ecosystem-link{display:inline-flex;min-height:34px;align-items:center;padding:6px 9px;border:1px solid var(--line);border-radius:10px;color:#cfd5dd;background:var(--surface);text-decoration:none;font-size:10px;font-weight:850}.workspace-ecosystem-link:hover,.workspace-ecosystem-link:focus-visible{border-color:#65442d;color:#fff;outline:none}
@media(max-width:680px){.app-header{min-height:calc(66px + env(safe-area-inset-top))}.ecosystem-link{padding:7px 10px;font-size:10px}.sign-in-view{gap:22px;padding-top:22px}.sign-in-copy:before{margin-bottom:18px}.sign-in-copy h1{font-size:clamp(38px,11vw,52px)}.ecosystem-strip{margin-top:18px;padding:12px 13px}.ecosystem-strip small{font-size:10px}.awh-trust-row{margin-top:10px}.auth-card{padding:21px}.workspace-ecosystem-link{min-height:34px;padding-inline:7px}}

/* Public root: the IP/hostname opens a real home surface, not the sign-in form. */
.public-home-view{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);gap:clamp(34px,7vw,90px);align-items:center;min-height:calc(100dvh - 96px);padding:42px 0 72px}.public-home-copy h1{max-width:680px;margin:0 0 18px;font-size:clamp(44px,7vw,76px);line-height:.98;letter-spacing:-.055em}.public-home-copy>p:last-of-type{max-width:620px;color:var(--muted);font-size:17px;line-height:1.65}.public-home-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.public-link-button{text-decoration:none}.public-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.public-home-card{display:grid;min-height:150px;align-content:start;gap:8px;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--text);text-decoration:none;box-shadow:var(--awh-shadow-panel)}.public-home-card>span{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;background:var(--accent-soft);color:var(--accent);font-weight:900}.public-home-card strong{font-size:15px}.public-home-card small{color:var(--muted);font-size:11px;line-height:1.5}.public-home-card:hover,.public-home-card:focus-visible{border-color:rgba(255,138,54,.38);background:var(--surface-raised);outline:none}.public-home-active .app-header{border-bottom:1px solid var(--line-soft)}
@media(max-width:760px){.public-home-view{grid-template-columns:1fr;gap:28px;min-height:auto;padding:34px 0 88px}.public-home-copy h1{font-size:clamp(39px,12vw,56px)}.public-home-copy>p:last-of-type{font-size:15px}.public-home-actions{display:grid;grid-template-columns:1fr}.public-home-actions>*{width:100%}.public-home-grid{grid-template-columns:1fr 1fr}.public-home-card{min-height:132px;padding:15px}}
@media(max-width:430px){.public-home-grid{grid-template-columns:1fr}.public-home-card{min-height:105px}}

/* Mobile UX consolidation — one light visual language for focused Work. */
body.work-active .composer{background:var(--awh-surface,#fff);border-color:var(--awh-line,#d9dee7);box-shadow:0 10px 30px rgba(20,32,51,.10)}
body.work-active .composer textarea{color:var(--awh-text,#172033)}
body.work-active .composer textarea::placeholder{color:#98a2b3}
body.work-active .composer-tools .icon-button{background:var(--awh-surface-raised,#f2f4f7);border-color:var(--awh-line,#d9dee7);color:var(--awh-text,#172033)}
body.work-active .empty-work{max-width:520px}
.awh-work-starters{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:18px}
.awh-work-starter{min-height:42px;padding:0 13px;border:1px solid var(--awh-line,#d9dee7);border-radius:999px;background:var(--awh-surface,#fff);color:var(--awh-text,#172033);font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.awh-work-starter:hover,.awh-work-starter:focus-visible{border-color:rgba(233,111,25,.42);background:var(--awh-accent-soft,rgba(233,111,25,.10));outline:none}
@media(max-width:680px){
  body.work-active .workspace-heading{min-height:calc(44px + env(safe-area-inset-top));gap:7px}
  body.work-active .workspace-home{min-width:36px}.workspace-chat-action{width:32px!important;min-height:32px!important}
  body.work-active .conversation-trigger{font-size:14px}.project-trigger{font-size:10px!important}
  body.work-active .empty-work{margin:auto auto 10vh;padding:10px 12px 18px}.empty-work h2{font-size:20px}.empty-work p{font-size:13px;line-height:1.5}
  body.work-active .composer{margin:4px 0 calc(4px + env(safe-area-inset-bottom));padding:7px 8px 8px;border-radius:17px}
  body.work-active:not(.product-dashboard-active) .app-main{padding-bottom:calc(62px + env(safe-area-inset-bottom))}
}

/* Root Portfolio Hub — authenticated root is the ecosystem launcher, not AWH Work. */
body.ecosystem-home-active{height:auto;overflow:auto;background:var(--awh-canvas)}
body.ecosystem-home-active .app-main{width:min(1180px,calc(100% - 32px));padding:30px 0 80px}
.ecosystem-home-view{display:grid;gap:30px;width:100%}
.ecosystem-home-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:34px;border:1px solid var(--awh-line);border-radius:28px;background:var(--awh-surface);box-shadow:var(--awh-shadow-panel)}
.ecosystem-home-hero h1{max-width:760px;margin:4px 0 10px;color:var(--awh-text);font-size:clamp(36px,6vw,64px);line-height:1.02;letter-spacing:-.045em}.ecosystem-home-hero p:last-child{max-width:720px;margin:0;color:var(--awh-muted);font-size:15px;line-height:1.65}.ecosystem-home-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ecosystem-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.ecosystem-summary>div{display:grid;gap:3px;padding:16px 18px;border:1px solid var(--awh-line);border-radius:17px;background:var(--awh-surface)}.ecosystem-summary strong{font-size:28px;color:var(--awh-text)}.ecosystem-summary span{color:var(--awh-muted);font-size:11px}
.ecosystem-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:13px}.ecosystem-section-head span{color:var(--awh-accent-strong);font-size:10px;font-weight:850;letter-spacing:.1em}.ecosystem-section-head h2{margin:4px 0 0;color:var(--awh-text);font-size:25px}.ecosystem-section-head>a{color:var(--awh-accent-strong);font-size:12px;font-weight:750;text-decoration:none}
.ecosystem-featured-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ecosystem-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ecosystem-project-card{display:flex;min-width:0;min-height:250px;flex-direction:column;padding:18px;border:1px solid var(--awh-line);border-radius:20px;background:var(--awh-surface);box-shadow:0 10px 28px rgba(21,35,58,.045)}.ecosystem-project-card.featured{min-height:225px;background:var(--awh-surface)}.ecosystem-project-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.ecosystem-project-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:13px;background:var(--awh-accent-soft);color:var(--awh-accent-strong);font-size:20px;font-weight:900}.ecosystem-project-status{padding:5px 8px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:9px;font-weight:800}.ecosystem-project-status.status-active{background:#ecfdf3;color:#067647}.ecosystem-project-status.status-pilot{background:#fffaeb;color:#b54708}.ecosystem-project-card h3{margin:15px 0 3px;color:var(--awh-text);font-size:19px}.ecosystem-project-card>small{color:var(--awh-muted);font-size:10px}.ecosystem-project-card>p{margin:10px 0;color:var(--awh-muted);font-size:12px;line-height:1.55}.ecosystem-project-capabilities{display:flex;flex-wrap:wrap;gap:5px;margin-top:auto;padding-top:8px}.ecosystem-project-capabilities span{padding:4px 7px;border-radius:999px;background:#f7f8fa;color:#667085;font-size:9px}.ecosystem-project-action{width:100%;min-height:42px;margin-top:14px;border:1px solid var(--awh-line);border-radius:12px;background:var(--awh-accent);color:#fff;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.ecosystem-empty{grid-column:1/-1;padding:24px;border:1px dashed var(--awh-line);border-radius:16px;color:var(--awh-muted);text-align:center}
.ecosystem-owner-tools details{padding:15px 17px;border:1px solid var(--awh-line);border-radius:18px;background:var(--awh-surface)}.ecosystem-owner-tools summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;color:var(--awh-text)}.ecosystem-owner-tools summary span{color:var(--awh-accent-strong);font-size:11px;font-weight:800}.ecosystem-owner-tools summary strong{font-size:11px}.ecosystem-owner-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}.ecosystem-owner-grid a{padding:12px;border:1px solid var(--awh-line);border-radius:12px;background:#f7f8fa;color:var(--awh-text);font-size:11px;font-weight:750;text-align:center;text-decoration:none}
@media(max-width:760px){body.ecosystem-home-active{padding-bottom:0}body.ecosystem-home-active .app-main{width:calc(100% - 20px);padding:14px 0 76px}body.ecosystem-home-active .awh-mobile-nav{display:none!important}.ecosystem-home-view{gap:22px}.ecosystem-home-hero{align-items:stretch;flex-direction:column;padding:22px 17px;border-radius:22px}.ecosystem-home-hero h1{font-size:38px}.ecosystem-home-actions{display:grid;grid-template-columns:1fr 1fr}.ecosystem-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.ecosystem-featured-grid,.ecosystem-project-grid{grid-template-columns:1fr}.ecosystem-project-card,.ecosystem-project-card.featured{min-height:0}.ecosystem-owner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ecosystem-owner-tools summary{align-items:flex-start;flex-direction:column}.ecosystem-owner-tools summary strong{color:var(--awh-muted)}}
.ecosystem-search-box{display:block;min-width:min(320px,48vw)}.ecosystem-search-box input{width:100%;min-height:44px;padding:0 13px;border:1px solid var(--awh-line);border-radius:12px;background:#fff;color:var(--awh-text);font:inherit;font-size:13px;outline:none}.ecosystem-search-box input:focus{border-color:rgba(233,111,25,.5);box-shadow:0 0 0 3px rgba(233,111,25,.1)}
@media(max-width:760px){.ecosystem-search-box{min-width:0}.ecosystem-home-actions{grid-template-columns:minmax(0,1fr) auto}.ecosystem-home-actions .public-link-button{display:inline-flex;align-items:center;justify-content:center}}
