:root {
  --navy: #101c38;
  --navy-deep: #071a36;
  --green: #3fb692;
  --cyan: #53c0d6;
  --violet: #524e9e;
  --ink: #132342;
  --muted: #758196;
  --line: #dfe6f0;
  --canvas: #f3f7fb;
  --font-ui: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.plan-goal-rows { display:grid; gap:8px; padding:0 24px 24px; overflow:auto; }
html:not(.ui-v31) body #planGoalOverviewDialog[open] { display:flex; flex-direction:column; height:min(740px, calc(100dvh - 32px)); max-height:calc(100dvh - 32px); overflow:hidden; }
html:not(.ui-v31) body dialog#planGoalOverviewDialog > .dialog-head { flex:none; margin:0; }
html:not(.ui-v31) body dialog#planGoalOverviewDialog > .dialog-intro { flex:none; margin:14px 24px; }
#planGoalOverviewDialog .plan-goal-toolbar { display:flex; align-items:flex-end; flex-wrap:wrap; gap:8px; width:100%; }
#planGoalOverviewDialog .plan-goal-toolbar label { display:grid; gap:5px; min-width:130px; }
#planGoalOverviewDialog select { width:100%; min-height:34px; padding:6px 28px 6px 10px; border:1px solid var(--line); border-radius:8px; background-color:white; color:var(--ink); font:inherit; }
#planGoalSearch { width:100%; min-height:36px; }
#planGoalOverviewDialog .plan-goal-sort-note { margin:0; color:var(--muted); }
#planGoalOverviewDialog #planGoalRows { flex:1; min-height:0; align-content:start; scrollbar-width:thin; }
#planGoalRows .plan-goal-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; padding:12px; border:1px solid var(--line); border-radius:10px; background:#fff; }
#planGoalRows .plan-goal-row strong { display:block; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
#planGoalRows .plan-goal-row small { display:block; color:var(--muted); font-size:10px; line-height:1.6; overflow-wrap:anywhere; margin-top:3px; }
#planGoalRows .plan-goal-row button { width:auto; min-width:56px; white-space:nowrap; }
#planGoalRows .plan-goal-row { grid-template-columns:minmax(0,1fr) auto auto; }
#planGoalRows .plan-goal-metrics { display:flex; gap:18px; text-align:right; }
#planGoalRows .plan-goal-metrics strong { color:var(--ink); font-variant-numeric:tabular-nums; }
#quickInputCampaignField .hy-select-menu button { display:flex; gap:12px; align-items:center; }
#quickInputCampaignField .campaign-option-name { flex:1; min-width:0; }
#quickInputCampaignField .campaign-option-name small { display:block; font-size:10px; color:var(--muted); margin-top:3px; }
#quickInputCampaignField .campaign-option-metrics { flex:none; text-align:right; font-variant-numeric:tabular-nums; }
#quickInputCampaignField .campaign-option-metrics small { display:block; font-size:10px; line-height:1.7; }
@media(max-width:600px) {
  #planGoalRows .plan-goal-row { grid-template-columns:minmax(0,1fr) auto; }
  #planGoalRows .plan-goal-metrics { grid-row:2; text-align:left; }
  #planGoalRows .plan-goal-row > button { grid-column:2; grid-row:1 / 3; }
}
#planGoalRows .plan-goal-empty { margin:0; padding:44px 16px; text-align:center; color:var(--muted); font-size:12px; line-height:1.7; border:1px dashed var(--line); border-radius:10px; }
#businessGoalProducts { display:grid; gap:10px; }
#businessGoalForm > small { color:var(--muted); font-size:10px; line-height:1.6; }
#businessGoalForm .business-goal-primary-grid { grid-template-columns:1fr; }
#planGoalOverviewDialog .dialog-intro { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
#planGoalOverviewStatus { width:100%; overflow-wrap:anywhere; }
#planGoalRows .business-goal-current { overflow-wrap:anywhere; }

/* Long-task projections reuse the conversation/sidebar/detail layout. */
.long-task-sidebar[hidden], .long-task-bar[hidden], .long-task-detail[hidden], .task-workspace-types[hidden], #sidebarConversationList[hidden], #taskWorkspaceBackdrop[hidden], #taskWorkspaceClose[hidden] { display:none !important; }
.long-task-sidebar { min-width:0; max-width:100%; min-height:0; flex:1; overflow-y:auto; overflow-x:hidden; padding:4px 2px 12px; font-size:11px; scrollbar-width:thin; scrollbar-color:rgba(113,139,162,.32) transparent; }
.conversation-workspace .task-workspace-types { display:flex; flex:none; gap:5px; padding:0 1px 10px; }
.conversation-workspace nav.task-workspace-types button { flex:1; min-width:0; min-height:30px; display:flex; align-items:center; justify-content:center; border:1px solid transparent; border-radius:7px; padding:5px 7px; color:var(--muted); background:transparent; box-shadow:none; font-size:10px; transition:color .15s ease,background .15s ease,border-color .15s ease; }
.conversation-workspace nav.task-workspace-types button.active { color:var(--violet); border-color:var(--line); background:#fff; box-shadow:0 2px 7px rgba(30,52,82,.04); }
.conversation-workspace nav.task-workspace-types button::before,.conversation-workspace nav.task-workspace-types button::after { content:none!important; display:none!important; }
.task-workspace-types b { margin-left:3px; color:var(--muted); font-size:9px; font-weight:500; }
.long-task-sidebar header, .long-task-detail > header, .long-task-bar { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.long-task-sidebar header { margin-bottom:10px; padding:0 5px; }
.long-task-sidebar header strong { color:var(--ink); font-size:11px; font-weight:620; }
.long-task-sidebar header small { display:block; margin-top:4px; color:var(--muted); font-size:9px; }
.long-task-sidebar button, .long-task-bar button, .long-task-detail button { border:1px solid var(--line); border-radius:7px; padding:6px 9px; color:var(--ink); background:#fff; font-size:11px; }
.long-task-sidebar button:disabled, .long-task-detail button:disabled { opacity:.5; cursor:default; }
.long-task-list { display:grid; grid-template-columns:minmax(0,1fr); min-width:0; gap:6px; }
.long-task-sidebar .long-task-row { min-width:0; max-width:100%; width:100%; text-align:left; white-space:normal; border-color:transparent; padding:11px 10px; background:transparent; transition:background .15s ease,border-color .15s ease,box-shadow .15s ease; }
.long-task-sidebar .long-task-row:hover { background:rgba(255,255,255,.7); border-color:var(--line); }
.long-task-sidebar .long-task-row.selected { border-color:var(--line); background:#fff; box-shadow:0 2px 7px rgba(30,52,82,.07); }
.long-task-empty { margin:10px 3px; padding:15px 10px; border:1px dashed var(--line); border-radius:8px; color:var(--muted); background:rgba(255,255,255,.48); line-height:1.8; font-size:10px; }
.long-task-row strong, .long-task-row small, .long-task-bar strong, .long-task-bar small { display:block; overflow-wrap:anywhere; }
.long-task-row strong, .long-task-row .long-task-row-next { min-width:0; max-width:100%; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; text-overflow:ellipsis; white-space:normal; overflow-wrap:anywhere; }
.long-task-row strong { font-size:11px; line-height:1.6; }
.long-task-sidebar header > div, .long-task-detail > header > div { min-width:0; }
.long-task-sidebar header button { flex:none; }
.long-task-sidebar .long-task-row:focus-visible { outline:2px solid var(--cyan); outline-offset:-2px; }
.conversation-workspace .sidebar-conversation-row small.conversation-long-task-link { color:var(--violet); font-size:9px; }
.long-task-row small, .long-task-bar small { margin-top:4px; color:var(--muted); font-size:10px; line-height:1.5; }
.long-task-bar { flex:none; margin:0 16px 8px; border:1px solid var(--line); border-radius:9px; padding:10px 12px; background:linear-gradient(110deg,rgba(83,192,214,.065),rgba(82,78,158,.035)); }
.long-task-bar > div { min-width:0; }
.long-task-bar strong { font-size:12px; }
.long-task-bar button { flex:none; }
.chat-panel > .long-task-bar { grid-row:3; }
.chat-panel:has(> .long-task-bar:not([hidden])) { grid-template-rows:auto auto auto minmax(0,1fr) auto auto; }
.chat-panel:has(> .long-task-bar:not([hidden])) > .conversation { grid-row:4; }
.chat-panel:has(> .long-task-bar:not([hidden])) > .agent-status-strip { grid-row:5; }
.chat-panel:has(> .long-task-bar:not([hidden])) > .composer { grid-row:6; }
.context-panel .long-task-detail { margin:0 0 14px; padding:14px; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.long-task-detail > header { align-items:flex-start; }
.long-task-detail > header strong { min-width:0; display:block; color:var(--ink); font-size:14px; font-weight:650; line-height:1.6; }
.long-task-eyebrow { display:block; margin-bottom:4px; color:var(--muted); font-size:10px; }
.long-task-detail > header button { flex:none; }
.long-task-detail h3 { margin:19px 0 7px; font-size:12px; font-weight:650; color:var(--ink); }
.long-task-detail p { margin:5px 0; }
.long-task-detail ul { margin:7px 0; padding-left:18px; }
.long-task-detail li + li { margin-top:8px; }
.long-task-facts { display:grid; gap:5px; margin:7px 0; }
.long-task-facts > div { display:grid; grid-template-columns:90px minmax(0,1fr); gap:7px; }
.long-task-facts dt, .long-task-note { color:var(--muted); }
.long-task-facts dd { margin:0; }
.long-task-status { color:var(--violet); }
.long-task-note { font-size:10px; line-height:1.6; }
.long-task-controls { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.long-task-controls .long-task-adjust { border-color:rgba(83,192,214,.4); color:#347f98; background:#f1f8fa; }
.long-task-controls [data-long-task-control="stop"] { color:#947285; }
.long-task-detail .long-task-plan { display:grid; gap:8px; padding-left:21px; }
.long-task-plan li::marker { color:var(--violet); font-size:11px; }
.long-task-plan small { display:block; color:var(--muted); font-size:10px; }
.long-task-resources { margin-top:20px; border-top:1px solid var(--line); padding-top:12px; color:var(--muted); }
.long-task-resources summary { color:var(--muted); cursor:pointer; font-size:11px; }
.long-task-resources[open] summary { margin-bottom:10px; color:var(--ink); }
.long-task-warning { padding:8px; border:1px solid #ecd9af; border-radius:7px; color:#775b28; background:#fffaf0; }
.long-task-feedback { margin:6px 0 0; color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.long-task-feedback:empty { display:none; }
@media (max-width:780px) {
  .long-task-bar { margin:0 8px 8px; align-items:flex-start; }
  .long-task-facts > div { grid-template-columns:80px minmax(0,1fr); }
  .context-panel .long-task-detail { grid-column:1 / -1; }
}
@media (max-width:920px) {
  #app .agent-meta #tasksButtonHeader { display:inline-flex; flex:none; min-width:36px; justify-content:center; padding:5px 7px; }
  #app .conversation-workspace.is-task-open { position:fixed; inset:0 auto 0 0; z-index:302; width:min(340px,calc(100vw - 36px)); height:100dvh; min-height:0; display:flex; flex-direction:column; align-items:stretch; padding:20px 16px 12px; border-right:1px solid var(--line); box-shadow:18px 0 70px rgba(7,22,47,.2); }
  #app .task-workspace-backdrop { position:fixed; inset:0; z-index:301; width:100%; height:100dvh; border:0; padding:0; background:rgba(7,22,47,.25); }
  #app .conversation-workspace.is-task-open .conversation-workspace-header { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
  #app .conversation-workspace.is-task-open > nav,#app .conversation-workspace.is-task-open > .sidebar-create-actions { width:100%; flex:none; }
  #app .conversation-workspace.is-task-open nav.conversation-tabs button { font-size:10px; }
  #app .conversation-workspace.is-task-open nav.task-workspace-types button { font-size:10px; white-space:nowrap; }
}
@media (max-width:640px) {
  #app .agent-header { gap:8px; padding-inline:10px; }
  #app .agent-header .agent-identity { min-width:0; gap:8px; }
  #app .agent-header .agent-meta { flex:none; }
}
@media (max-width:820px) {
  #app .topbar { flex-wrap:nowrap; gap:12px; height:64px; }
  #app .topbar > .scope-controls { width:auto; max-width:calc(100% - 44px); margin-left:auto; flex-wrap:nowrap; }
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font-ui); font-synthesis: none; }
button, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(83,192,214,.3); outline-offset: 2px; }

.login-gate { min-height:100dvh; display:grid; grid-template-columns:minmax(520px,1.08fr) minmax(440px,.92fr); overflow:hidden; background:#f5f8fb; }
.login-gate[hidden] { display:none; }
.login-visual { position:relative; min-height:100dvh; display:flex; flex-direction:column; overflow:hidden; padding:34px clamp(34px,5vw,76px) 28px; color:#fff; background:radial-gradient(circle at 18% 8%,rgba(83,192,214,.18),transparent 24%),radial-gradient(circle at 82% 56%,rgba(82,78,158,.19),transparent 28%),linear-gradient(155deg,#102f59 0%,#071b38 55%,#06152c 100%); isolation:isolate; }
.login-visual::before { content:""; position:absolute; inset:0; z-index:-3; opacity:.3; background-image:radial-gradient(circle at 14% 18%,#fff 0 1px,transparent 1.4px),radial-gradient(circle at 76% 25%,#fff 0 1px,transparent 1.4px),radial-gradient(circle at 58% 72%,#fff 0 .8px,transparent 1.3px),radial-gradient(circle at 32% 84%,#fff 0 .8px,transparent 1.3px); background-size:230px 190px,310px 270px,260px 240px,380px 330px; }
.login-brand-row { position:relative; z-index:3; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.login-brand { display:flex; align-items:center; gap:12px; color:#fff; text-decoration:none; }
.login-brand img { width:46px; height:46px; object-fit:contain; filter:drop-shadow(0 8px 18px rgba(0,0,0,.18)); }
.login-brand strong,.login-brand small { display:block; }
.login-brand strong { font-size:20px; font-weight:720; letter-spacing:.06em; }
.login-brand small { margin-top:4px; color:#8eabc8; font-size:9px; font-weight:720; letter-spacing:.22em; }
.login-runtime { display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(255,255,255,.1); border-radius:99px; padding:8px 11px; color:#9eb5cb; background:rgba(255,255,255,.035); font-size:8px; font-weight:700; letter-spacing:.1em; }
.login-runtime i { width:6px; height:6px; border-radius:50%; background:#43d3a4; box-shadow:0 0 0 4px rgba(67,211,164,.1),0 0 16px rgba(67,211,164,.65); }
.login-story { position:relative; z-index:2; width:min(650px,94%); margin:auto 0; padding:54px 0 42px; }
.login-kicker { margin:0; color:#70d2c0; font-size:10px; font-weight:760; letter-spacing:.19em; }
.login-story h1 { margin:19px 0 22px; font-size:clamp(39px,4.4vw,68px); font-weight:650; line-height:1.12; letter-spacing:-.045em; }
.login-story h1 span { color:transparent; background:linear-gradient(95deg,#79d8b8 2%,#73d5e3 48%,#aaa5f1 92%); background-clip:text; -webkit-background-clip:text; }
.login-lead { width:min(590px,95%); margin:0; color:#9bb0c6; font-size:14px; line-height:1.85; }
.login-story ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; margin:42px 0 0; padding:0; list-style:none; }
.login-story li { min-width:0; display:grid; grid-template-columns:34px minmax(0,1fr); align-items:center; gap:10px; border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:13px 12px; background:rgba(255,255,255,.035); backdrop-filter:blur(10px); }
.login-story li > i { width:32px; height:32px; display:grid; place-items:center; border-radius:9px; color:#70d2c0; background:rgba(89,207,190,.09); font-size:8px; font-style:normal; font-weight:750; }
.login-story li strong,.login-story li small { display:block; }
.login-story li strong { color:#f3f7fa; font-size:11px; }
.login-story li small { margin-top:4px; overflow:hidden; color:#8299b0; font-size:8px; line-height:1.5; }
.login-visual-foot { position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:20px; color:#7890a8; font-size:9px; }
.login-visual-foot span { color:#9db3c7; letter-spacing:.08em; }
.login-aurora-scene { position:absolute; inset:7% -18% 4% -17%; z-index:-2; overflow:hidden; perspective:980px; transform-style:preserve-3d; pointer-events:none; }
.login-aurora-scene::before { content:""; position:absolute; width:112%; height:68%; left:-8%; top:17%; border-radius:50%; background:radial-gradient(ellipse at 46% 46%,rgba(55,209,166,.18),transparent 38%),radial-gradient(ellipse at 70% 48%,rgba(65,183,218,.14),transparent 34%),radial-gradient(ellipse at 83% 44%,rgba(110,82,198,.09),transparent 25%); filter:blur(34px); transform:translateZ(-120px) rotateZ(-7deg) scale(1.08); }
.login-aurora-canvas { position:absolute; inset:-8%; width:116%; height:116%; display:block; opacity:.9; mix-blend-mode:screen; filter:saturate(1.16) blur(.25px); transform:translate3d(-2%,0,42px) rotateX(9deg) rotateZ(-5.5deg) scale(1.12); transform-origin:50% 54%; }
.aurora-depth-haze { position:absolute; left:-8%; width:115%; border-radius:50% 50% 43% 57%/58% 42% 62% 38%; mix-blend-mode:screen; transform-style:preserve-3d; }
.aurora-depth-haze.near { height:34%; top:43%; border-top:1px solid rgba(111,235,199,.2); background:linear-gradient(100deg,transparent 8%,rgba(46,196,151,.08) 35%,rgba(65,190,218,.1) 58%,rgba(111,83,203,.06) 76%,transparent 94%); filter:blur(14px); transform:translateZ(88px) rotateZ(-8deg) rotateX(12deg); animation:aurora-depth-near 16s ease-in-out infinite alternate; }
.aurora-depth-haze.far { height:46%; top:26%; border-top:1px solid rgba(96,204,219,.12); background:linear-gradient(92deg,transparent 10%,rgba(46,196,151,.05) 28%,rgba(65,190,218,.08) 62%,transparent 94%); filter:blur(24px); opacity:.72; transform:translateZ(-80px) rotateZ(-3deg) scale(.95); animation:aurora-depth-far 21s ease-in-out infinite alternate-reverse; }
@keyframes aurora-depth-near { to { transform:translate3d(4%,14px,88px) rotateZ(-4deg) rotateX(15deg) scaleY(1.1); } }
@keyframes aurora-depth-far { to { transform:translate3d(-3%,-10px,-80px) rotateZ(1deg) scale(1.04,.9); } }

.login-form-panel { position:relative; min-height:100dvh; display:grid; place-items:center; padding:58px clamp(32px,5vw,74px) 74px; background:radial-gradient(circle at 8% 10%,rgba(83,192,214,.08),transparent 23%),linear-gradient(155deg,#fbfdff,#f2f6fa); }
.login-form-panel::before { content:""; position:absolute; width:280px; height:110px; right:-90px; top:-38px; border:1px solid rgba(83,192,214,.12); border-radius:50%; transform:rotate(-17deg); }
.login-card { position:relative; width:min(440px,100%); overflow:hidden; border:1px solid rgba(210,222,233,.88); border-radius:20px; padding:39px 38px 31px; background:rgba(255,255,255,.9); box-shadow:0 28px 80px rgba(23,48,81,.11),0 2px 8px rgba(23,48,81,.035); backdrop-filter:blur(18px); }
.login-card::before { content:""; position:absolute; inset:0 0 auto; height:3px; border-radius:20px 20px 0 0; background:linear-gradient(90deg,var(--green),var(--cyan) 55%,var(--violet)); }
.login-card-mark { width:58px; height:58px; display:grid; place-items:center; margin-bottom:24px; border:1px solid rgba(83,192,214,.25); border-radius:16px; background:linear-gradient(145deg,#fff,#f2f8fa); box-shadow:0 12px 28px rgba(31,67,102,.09); }
.login-card-mark img { width:43px; height:43px; object-fit:contain; }
.login-form-kicker { margin:0; color:#3b9b8a; font-size:9px; font-weight:800; letter-spacing:.2em; }
.login-card h2 { margin:10px 0 9px; color:#122746; font-size:28px; line-height:1.25; letter-spacing:-.035em; }
.login-intro { margin:0 0 27px; color:#7c899b; font-size:11px; line-height:1.7; }
.login-field { display:grid; gap:8px; margin-top:16px; color:#536176; font-size:10px; font-weight:650; }
.login-field > input,.password-field { width:100%; min-height:47px; border:1px solid #d8e1eb; border-radius:10px; color:#263a56; background:#f9fbfd; transition:.18s ease; }
.login-field > input { padding:0 13px; outline:0; font-size:13px; }
.login-field > input:focus,.password-field:focus-within { border-color:rgba(83,192,214,.8); background:#fff; box-shadow:0 0 0 4px rgba(83,192,214,.09); }
.password-field { display:flex; align-items:center; overflow:hidden; }
.password-field input { min-width:0; flex:1; height:45px; border:0; outline:0; padding:0 13px; color:#263a56; background:transparent; font-size:13px; }
.password-field button { height:30px; border:0; border-left:1px solid #e5eaf0; padding:0 12px; color:#708095; background:transparent; font-size:9px; }
.login-options { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:15px; }
.login-options label { display:flex; align-items:center; gap:6px; color:#7b8797; font-size:9px; cursor:pointer; }
.login-options input { width:13px; height:13px; accent-color:var(--green); }
.login-options button { border:0; padding:0; color:#4c8293; background:transparent; font-size:9px; }
.login-submit { width:100%; height:48px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:24px; border:1px solid rgba(54,151,143,.42); border-radius:10px; padding:0 17px; color:#24566a; background:linear-gradient(118deg,rgba(49,141,118,.13) 0%,rgba(56,153,168,.15) 58%,rgba(81,77,150,.1) 100%),#f8fcfc; box-shadow:0 9px 22px rgba(45,119,119,.1),inset 0 1px 0 rgba(255,255,255,.78); font-size:11px; font-weight:720; transition:.18s ease; }
.login-submit:hover:not(:disabled) { transform:translateY(-1px); border-color:rgba(54,151,143,.62); background:linear-gradient(118deg,rgba(49,141,118,.18) 0%,rgba(56,153,168,.2) 58%,rgba(81,77,150,.13) 100%),#f7fbfc; box-shadow:0 12px 25px rgba(45,119,119,.14),inset 0 1px 0 rgba(255,255,255,.86); }
.login-submit:disabled { cursor:wait; opacity:.86; }
.login-submit b { color:#476d85; font-size:15px; }
.login-spinner { width:14px; height:14px; border:2px solid rgba(49,111,116,.2); border-top-color:#318d76; border-radius:50%; animation:spin .7s linear infinite; }
.login-security-note { display:grid; grid-template-columns:27px minmax(0,1fr); align-items:center; gap:9px; margin-top:20px; border-top:1px solid #e7ecf1; padding-top:18px; }
.login-security-note > i { width:26px; height:26px; display:grid; place-items:center; border-radius:50%; color:#268069; background:#e7f7f1; font-size:10px; font-style:normal; }
.login-security-note strong,.login-security-note small { display:block; }
.login-security-note strong { color:#536176; font-size:9px; }
.login-security-note small { margin-top:3px; color:#929dab; font-size:8px; }
.login-form-foot { position:absolute; inset:auto clamp(32px,5vw,74px) 24px; display:flex; align-items:center; justify-content:space-between; gap:20px; color:#9ba5b2; font-size:8px; }
.login-form-foot button { border:0; padding:0; color:#8692a2; background:transparent; font-size:8px; }

@media (max-width: 980px) {
  .login-gate { grid-template-columns:minmax(320px,.9fr) minmax(420px,1.1fr); }
  .login-story ul { grid-template-columns:1fr; width:min(330px,100%); margin-top:30px; }
  .login-story li { min-height:60px; }
  .login-lead { font-size:12px; }
}
@media (max-width: 760px) {
  .login-gate { display:block; min-height:100dvh; background:#f3f7fb; }
  .login-visual { min-height:245px; padding:24px 22px 32px; }
  .login-runtime,.login-story ul,.login-visual-foot { display:none; }
  .login-story { width:100%; margin:38px 0 0; padding:0; }
  .login-kicker { font-size:8px; }
  .login-story h1 { margin:13px 0 12px; font-size:32px; }
  .login-lead { width:95%; font-size:10px; line-height:1.65; }
  .login-aurora-scene { inset:4% -22% -8% -22%; opacity:.74; }
  .login-form-panel { min-height:calc(100dvh - 245px); display:block; padding:0 14px 52px; }
  .login-card { transform:translateY(-14px); margin:0 auto; border-radius:17px; padding:28px 23px 25px; }
  .login-card-mark { width:48px; height:48px; margin-bottom:19px; border-radius:13px; }
  .login-card-mark img { width:36px; height:36px; }
  .login-card h2 { font-size:24px; }
  .login-form-foot { inset:auto 24px 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-depth-haze,.login-spinner,.preparing-lines i,.preparing-lines b { animation:none; }
}

.app-shell { min-height: 100dvh; display: grid; grid-template-columns: 236px minmax(0,1fr); background: #eef3f8; }

.sidebar {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; overflow: hidden;
  padding: 24px 16px 20px; color: #fff;
  background: radial-gradient(circle at 20% 0, rgba(83,192,214,.2), transparent 25%), linear-gradient(170deg, #102f59, #071a36 65%, #06162d);
}
.sidebar::after { content:""; position:absolute; width:270px; height:110px; left:-100px; bottom:92px; border:1px solid rgba(83,192,214,.12); border-radius:50%; transform:rotate(-28deg); pointer-events:none; }
.brand { position:relative; z-index:1; display:flex; align-items:center; gap:11px; min-height:54px; padding:0 8px; color:#fff; text-decoration:none; }
.brand img { width:43px; height:43px; object-fit:contain; }
.brand strong,.brand small { display:block; }
.brand strong { font-size:20px; letter-spacing:.06em; }
.brand small { margin-top:4px; color:#93aecb; font-size:10px; font-weight:700; letter-spacing:.2em; }

.primary-nav { position:relative; z-index:1; display:grid; gap:5px; margin-top:34px; }
.primary-nav button { position:relative; min-height:46px; display:grid; grid-template-columns:26px 1fr 5px; align-items:center; gap:9px; border:1px solid transparent; border-radius:9px; padding:0 12px; color:#b9cbe0; background:transparent; text-align:left; transition:background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease; }
.primary-nav button:hover { color:#e2edf7; background:rgba(255,255,255,.045); }
.primary-nav button.active { color:#fff; border-color:rgba(83,192,214,.14); background:linear-gradient(90deg,rgba(83,192,214,.105),rgba(117,113,186,.045)); box-shadow:0 8px 20px rgba(0,8,24,.13); }
.primary-nav button.active::before { content:""; position:absolute; inset:8px auto 8px -1px; width:2px; border-radius:3px; background:linear-gradient(#53c0d6,#7773ba); }
.primary-nav button > .nav-icon { justify-self:center; }
.primary-nav button b { font-size:13px; font-weight:610; letter-spacing:.01em; }
.primary-nav button > i { width:5px; height:5px; border-radius:50%; background:transparent; }
.primary-nav button.active > i { background:var(--cyan); box-shadow:0 0 0 4px rgba(83,192,214,.09); }

.sidebar-conversations { position:relative; z-index:1; min-height:0; display:flex; flex:1; flex-direction:column; margin-top:22px; padding-top:16px; border-top:1px solid rgba(142,174,205,.13); }
.sidebar-conversations > header { display:flex; align-items:center; justify-content:space-between; padding:0 7px 9px; color:#718cab; font-size:9px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.sidebar-conversations > header button { border:0; padding:3px 1px; color:#8ea8c3; background:transparent; font-size:9px; letter-spacing:0; transition:color .16s ease; }
.sidebar-conversations > header button:hover { color:#d8e9f7; }
.sidebar-new-chat { min-height:38px; display:grid; grid-template-columns:21px 1fr auto; align-items:center; gap:8px; border:1px solid rgba(83,192,214,.19); border-radius:8px; padding:0 10px; color:#eef7ff; background:linear-gradient(100deg,rgba(83,192,214,.13),rgba(117,113,186,.075)); text-align:left; box-shadow:0 8px 20px rgba(0,8,24,.12); transition:border-color .18s ease,background .18s ease,transform .18s ease; }
.sidebar-new-chat:hover { border-color:rgba(83,192,214,.38); background:linear-gradient(100deg,rgba(83,192,214,.2),rgba(117,113,186,.11)); transform:translateY(-1px); }
.sidebar-new-chat:disabled { opacity:.42; transform:none; }
.sidebar-new-chat > i { width:20px; height:20px; display:grid; place-items:center; border-radius:6px; color:#83d7df; background:rgba(83,192,214,.1); font-size:15px; font-style:normal; }
.sidebar-new-chat > b { overflow:hidden; text-overflow:ellipsis; color:inherit; font-size:11px; font-weight:640; white-space:nowrap; }
.sidebar-new-chat > span { color:#6884a3; font-size:8px; white-space:nowrap; }
.sidebar-conversation-list { min-height:0; display:grid; align-content:start; gap:3px; margin-top:8px; overflow-x:hidden; overflow-y:auto; padding:0 2px 8px 0; scrollbar-width:thin; scrollbar-color:rgba(135,164,193,.28) transparent; }
.sidebar-conversation-list::-webkit-scrollbar { width:5px; }
.sidebar-conversation-list::-webkit-scrollbar-thumb { border-radius:99px; background:rgba(135,164,193,.28); }
.sidebar-conversation-list.disabled { pointer-events:none; opacity:.5; }
.sidebar-conversation-row { min-width:0; min-height:39px; display:grid; grid-template-columns:14px minmax(0,1fr); align-items:center; gap:7px; border:1px solid transparent; border-radius:7px; padding:5px 8px; color:#9eb2c8; background:transparent; text-align:left; transition:color .16s ease,background .16s ease,border-color .16s ease; }
.sidebar-conversation-row:hover { color:#e3eef8; background:rgba(255,255,255,.045); }
.sidebar-conversation-row.active { color:#f4f9ff; border-color:rgba(83,192,214,.16); background:linear-gradient(90deg,rgba(83,192,214,.1),rgba(117,113,186,.045)); }
.sidebar-conversation-row > i { position:relative; width:13px; height:12px; border:1px solid currentColor; border-radius:4px; opacity:.72; }
.sidebar-conversation-row > i::after { content:""; position:absolute; left:2px; bottom:-3px; width:4px; height:4px; border-left:1px solid currentColor; border-bottom:1px solid currentColor; transform:skewY(-35deg); }
.sidebar-conversation-row > span,.sidebar-conversation-row strong,.sidebar-conversation-row small { min-width:0; display:block; }
.sidebar-conversation-row strong { overflow:hidden; text-overflow:ellipsis; font-size:10px; font-weight:560; white-space:nowrap; }
.sidebar-conversation-row small { margin-top:2px; color:#647f9e; font-size:8px; }
.sidebar-conversation-empty { margin:6px 4px; border:1px dashed rgba(132,160,188,.14); border-radius:7px; padding:13px 8px; color:#6f89a5; text-align:center; font-size:9px; }
.sidebar-conversation-empty.error { color:#b895a2; }
.sidebar-conversation-item { position:relative; min-width:0; display:grid; grid-template-columns:minmax(0,1fr) 22px; align-items:center; border-radius:7px; }
.sidebar-conversation-item .sidebar-conversation-row { width:100%; grid-template-columns:14px minmax(0,1fr); padding-right:3px; }
.sidebar-conversation-more { width:22px; height:28px; display:grid; place-items:center; border:0; border-radius:6px; padding:0 0 5px; color:#718aa5; background:transparent; font-size:15px; line-height:1; opacity:0; transition:opacity .15s ease,color .15s ease,background .15s ease; }
.sidebar-conversation-item:hover .sidebar-conversation-more,.sidebar-conversation-more:focus-visible,.sidebar-conversation-item.menu-open .sidebar-conversation-more { opacity:1; }
.sidebar-conversation-more:hover { color:#edf7ff; background:rgba(145,177,207,.1); }
.sidebar-conversation-menu { position:absolute; z-index:12; top:33px; right:0; width:96px; display:grid; gap:2px; border:1px solid rgba(145,177,207,.22); border-radius:8px; padding:5px; background:rgba(13,34,65,.98); box-shadow:0 12px 28px rgba(1,12,31,.32); }
.sidebar-conversation-menu[hidden] { display:none; }
.sidebar-conversation-menu button { border:0; border-radius:5px; padding:7px 8px; color:#b5c8da; background:transparent; text-align:left; font-size:9px; }
.sidebar-conversation-menu button:hover { color:#f3f9ff; background:rgba(88,168,209,.12); }
.sidebar-conversation-row .conversation-status-dot { width:7px; height:7px; justify-self:center; border:0; border-radius:50%; background:#496985; opacity:.68; box-shadow:none; }
.sidebar-conversation-row .conversation-status-dot::after { display:none; }
.sidebar-conversation-item.status-running .conversation-status-dot { background:#58bfd9; opacity:1; box-shadow:0 0 0 3px rgba(88,191,217,.11),0 0 10px rgba(88,191,217,.38); animation:conversationRunPulse 1.35s ease-in-out infinite; }
.sidebar-conversation-item.status-completed .conversation-status-dot { background:#8e8bcc; opacity:.95; }
.sidebar-conversation-item.status-failed .conversation-status-dot,.sidebar-conversation-item.status-cancelled .conversation-status-dot { background:#bd8499; opacity:.9; }
.sidebar-conversation-item.status-running small { color:#79c7d9; }
.sidebar-conversation-item.status-completed small { color:#9299c8; }
.conversation-pin { position:relative; width:8px; height:9px; display:inline-block!important; margin-right:5px; vertical-align:-1px; transform:rotate(-14deg); transform-origin:center; }
.conversation-pin::before { content:""; position:absolute; left:1px; top:1px; box-sizing:border-box; width:6px; height:4px; border:1px solid #7894a8; border-radius:2px 2px 1px 1px; background:#f8fbfd; }
.conversation-pin::after { content:""; position:absolute; left:3.5px; top:4px; width:1px; height:5px; border-radius:1px; background:#7894a8; }
@keyframes conversationRunPulse { 0%,100%{transform:scale(.82);opacity:.72} 50%{transform:scale(1.08);opacity:1} }
.conversation-rename-dialog { width:min(430px,calc(100vw - 32px)); border:1px solid #d6e2ed; border-radius:15px; padding:0; background:#f8fbfd; color:#102846; box-shadow:0 28px 70px rgba(12,31,56,.26); }
.conversation-rename-dialog::backdrop { background:rgba(8,24,45,.38); backdrop-filter:blur(5px); }
.conversation-rename-dialog form { display:grid; gap:12px; padding:22px; }
.conversation-rename-dialog label { display:grid; gap:7px; color:#5f728a; font-size:11px; font-weight:650; }
.conversation-rename-dialog input { height:42px; border:1px solid #cadbea; border-radius:9px; padding:0 12px; color:#112b4d; background:#fff; outline:0; font-size:13px; }
.conversation-rename-dialog input:focus { border-color:#72bcd0; box-shadow:0 0 0 3px rgba(91,183,207,.12); }
.conversation-rename-dialog footer { display:flex; justify-content:flex-end; }
.conversation-rename-dialog footer button { border:0; border-radius:8px; padding:9px 16px; color:#fff; background:#10203f; font-size:11px; font-weight:700; }
.chat-header-fallback { display:none; }

.nav-icon { position:relative; width:24px; height:24px; display:block; color:#8ea8c2; transform:scale(.88); transition:.18s ease; }
.primary-nav button:hover .nav-icon,.primary-nav button.active .nav-icon { color:#83d7d0; }
.nav-icon::before,.nav-icon::after,.nav-icon > i { content:""; position:absolute; display:block; box-sizing:border-box; }
.nav-icon.chat::before { inset:3px 2px 5px; border:1.6px solid currentColor; border-radius:6px; }
.nav-icon.chat::after { width:7px; height:7px; left:5px; bottom:2px; border-left:1.6px solid currentColor; border-bottom:1.6px solid currentColor; border-radius:0 0 0 2px; transform:skewY(-34deg); }
.nav-icon.chat > i { width:2px; height:2px; left:7px; top:10px; border-radius:50%; background:currentColor; box-shadow:4px 0 currentColor,8px 0 currentColor; }
.nav-icon.profile::before { width:8px; height:8px; left:8px; top:2px; border:1.6px solid currentColor; border-radius:50%; }
.nav-icon.profile::after { width:17px; height:10px; left:3.5px; bottom:2px; border:1.6px solid currentColor; border-bottom:0; border-radius:10px 10px 4px 4px; }
.nav-icon.profile > i { width:3px; height:3px; right:2px; bottom:4px; border-radius:50%; background:currentColor; box-shadow:0 0 0 3px rgba(83,192,214,.12); }
.nav-icon.fulfillment::before { width:16px; height:8px; left:3px; top:3px; border-top:1.6px solid currentColor; border-right:1.6px solid currentColor; border-radius:0 4px 0 0; transform:skewX(26deg); }
.nav-icon.fulfillment::after { width:16px; height:8px; right:3px; bottom:3px; border-bottom:1.6px solid currentColor; border-left:1.6px solid currentColor; border-radius:0 0 0 4px; transform:skewX(26deg); }
.nav-icon.fulfillment > i { width:3px; height:3px; left:2px; top:2px; border-radius:50%; background:currentColor; box-shadow:17px 17px currentColor; }
.nav-icon.schedule::before { inset:3px 2px 2px; border:1.6px solid currentColor; border-radius:5px; }
.nav-icon.schedule::after { width:20px; left:2px; top:8px; border-top:1.6px solid currentColor; }
.nav-icon.schedule > i { width:2px; height:2px; left:7px; top:12px; border-radius:50%; background:currentColor; box-shadow:5px 0 currentColor,10px 0 currentColor,0 5px currentColor,5px 5px currentColor,10px 5px currentColor; }

.runtime-card { position:relative; z-index:1; display:grid; grid-template-columns:8px 1fr; align-items:center; gap:9px; margin-top:auto; border:1px solid rgba(83,192,214,.13); border-radius:10px; padding:12px 10px; background:linear-gradient(120deg,rgba(83,192,214,.055),rgba(117,113,186,.035)); }
.runtime-card strong,.runtime-card small { display:block; }
.runtime-card strong { color:#edf6ff; font-size:11px; font-weight:650; }
.runtime-card small { margin-top:4px; color:#8fa8c2; font-size:8px; line-height:1.45; }
.online-dot { width:7px; height:7px; display:inline-block; border-radius:50%; background:#53c0d6; box-shadow:0 0 0 4px rgba(83,192,214,.09); }

.workspace { min-width:0; min-height:0; overflow:hidden; }
.topbar { position:relative; z-index:200; flex:0 0 64px; min-height:64px; display:flex; align-items:center; justify-content:space-between; gap:22px; overflow:visible; border-bottom:1px solid #dde5ed; padding:0 28px; background:rgba(255,255,255,.96); backdrop-filter:blur(16px); }
.breadcrumb { display:flex; align-items:center; gap:10px; margin:0; color:#8993a3; font-size:14px; white-space:nowrap; }
.breadcrumb strong { color:#24334b; font-weight:650; }
.breadcrumb b { color:#c3cad4; font-weight:400; }
.scope-controls { position:relative; z-index:1; min-width:0; display:flex; align-items:center; gap:12px; overflow:visible; }
.scope-controls label { position:relative; display:flex; align-items:center; gap:7px; overflow:visible; color:#8a94a3; font-size:11px; white-space:nowrap; }
.scope-controls select { height:38px; max-width:180px; border:1px solid #dce3ec; border-radius:8px; padding:0 30px 0 11px; color:#49566b; background:#fff; font-size:12px; }
.live-badge { display:inline-flex; align-items:center; gap:7px; border-radius:99px; padding:8px 11px; color:#258366; background:#e8f8f2; font-size:10px; white-space:nowrap; }
.live-badge i { width:6px; height:6px; border-radius:50%; background:#20b988; }
.member-menu { height:34px; display:flex; align-items:center; gap:7px; border:0; padding:0; color:#546176; background:transparent; }
.member-menu span { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; color:#fff; background:var(--navy); font-size:12px; }
.member-menu b { font-size:12px; }

.workbench { position:relative; z-index:1; height:calc(100dvh - 64px); min-height:0; display:grid; grid-template-columns:minmax(520px,1fr) 10px var(--context-width,420px); gap:0; overflow:hidden; padding:0; background:linear-gradient(180deg,#f8faff,#f3f7fb); }
.chat-panel { width:100% !important; max-width:none; min-width:0; min-height:0; display:grid; grid-template-rows:auto auto minmax(0,1fr) auto auto; overflow:hidden; border:0; border-radius:0; background:rgba(255,255,255,.42); box-shadow:none; container:chat / inline-size; }
.chat-panel > .agent-header { grid-row:1; }
.chat-panel > .scheduled-conversation-bar { grid-row:2; }
.chat-panel > .conversation { grid-row:3; }
.chat-panel > .agent-status-strip { grid-row:4; }
.chat-panel > .composer { grid-row:5; }
.agent-header { min-height:60px; display:flex; align-items:center; gap:17px; border-bottom:1px solid #e3e9f0; padding:0 22px; background:rgba(255,255,255,.82); }
.agent-identity { display:flex; align-items:center; gap:10px; min-width:210px; }
.agent-avatar { flex:0 0 auto; width:40px; height:40px; display:grid; place-items:center; overflow:hidden; border:1px solid rgba(83,192,214,.28); border-radius:50%; background:#fff; box-shadow:0 7px 18px rgba(24,55,91,.1); }
.agent-avatar img { width:30px; height:30px; display:block; object-fit:contain; }
.agent-identity strong,.agent-identity small { display:block; }
.agent-identity strong { color:#182a49; font-size:14px; }
.agent-identity small { margin-top:4px; color:#8490a3; font-size:10px; }
.view-switch { display:flex; border:1px solid #dde5ed; border-radius:7px; padding:2px; background:#f4f7fa; }
.view-switch button { min-height:31px; border:0; border-radius:5px; padding:0 10px; color:#8893a4; background:transparent; font-size:10px; }
.view-switch button.active { color:#22334e; background:#fff; box-shadow:0 2px 6px rgba(22,43,72,.08); }
.agent-meta { min-width:0; display:flex; align-items:center; justify-content:flex-end; gap:5px; margin-left:auto; }
.agent-meta > span { max-width:132px; margin-right:3px; overflow:hidden; border-radius:0; padding:0; color:#8792a3; background:transparent; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.agent-meta button { height:32px; border:1px solid #dfe5ed; border-radius:7px; padding:0 9px; color:#617087; background:#fff; font-size:10px; white-space:nowrap; }
.agent-meta button b { color:var(--violet); }
.agent-meta .new-chat { color:#fff; border-color:var(--navy); background:var(--navy); }

.conversation { position:relative; width:100%; height:100%; min-height:0; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; scrollbar-width:thin; scrollbar-color:#b7c5d2 transparent; isolation:isolate; }
.conversation::-webkit-scrollbar { width:10px; }
.conversation-loading { position:absolute; z-index:40; left:0; width:100%; display:grid; place-items:center; overflow:hidden; background:rgba(247,250,253,.94); backdrop-filter:blur(7px); opacity:1; transition:opacity .18s ease; pointer-events:all; }
.conversation-loading[hidden] { display:none; }
.conversation-loading.is-leaving { opacity:0; pointer-events:none; }
.conversation-loading > span { position:relative; width:72px; height:72px; display:grid; place-items:center; overflow:hidden; border:1px solid rgba(104,180,206,.24); border-radius:50%; background:#fff; box-shadow:0 16px 40px rgba(32,67,102,.12); opacity:0; transform:translateY(5px) scale(.94); transition:opacity .2s ease,transform .26s cubic-bezier(.22,1,.36,1),box-shadow .3s ease; }
.conversation-loading.is-visible > span { opacity:1; transform:translateY(0) scale(1); }
.conversation-loading > span::after { content:""; position:absolute; z-index:1; top:-16%; bottom:-16%; left:-142%; width:176%; border-radius:44%; background:linear-gradient(102deg,transparent 28%,rgba(83,192,214,.04) 37%,rgba(83,192,214,.2) 46%,rgba(255,255,255,.82) 51%,rgba(117,113,186,.14) 57%,transparent 70%); filter:blur(2px); transform:translateX(0) skewX(-8deg); animation:conversationLoadingSweep 1.9s cubic-bezier(.42,0,.28,1) infinite; }
.conversation-loading img { position:relative; z-index:2; width:46px; height:46px; display:block; object-fit:contain; animation:conversationLoadingLogoTone 1.9s ease-in-out infinite; }
@keyframes conversationLoadingSweep { 0% { transform:translateX(0) skewX(-8deg); } 72%,100% { transform:translateX(142%) skewX(-8deg); } }
@keyframes conversationLoadingLogoTone { 0%,100% { filter:brightness(.98) saturate(.98); } 48% { filter:brightness(1.035) saturate(1.06) drop-shadow(0 2px 4px rgba(83,192,214,.14)); } }
.conversation::-webkit-scrollbar-track { background:transparent; }
.conversation::-webkit-scrollbar-thumb { border:3px solid transparent; border-radius:99px; background:#b7c5d2; background-clip:padding-box; }
.conversation::-webkit-scrollbar-thumb:hover { background:#8fa1b2; background-clip:padding-box; }
.aurora-field { position:absolute; inset:0; z-index:-1; overflow:hidden; background:radial-gradient(ellipse at 44% 54%,rgba(63,182,146,.11),transparent 30%),radial-gradient(ellipse at 62% 48%,rgba(83,192,214,.16),transparent 34%),radial-gradient(ellipse at 71% 42%,rgba(82,78,158,.08),transparent 29%); }
.aurora-field::before { content:""; position:absolute; width:112%; height:130px; left:-7%; top:46%; background:linear-gradient(96deg,transparent 4%,rgba(63,182,146,.08) 27%,rgba(83,192,214,.14) 53%,rgba(82,78,158,.08) 75%,transparent 95%); filter:blur(22px); transform:rotate(-8deg); }
.aurora-field::after { content:""; position:absolute; width:118%; height:260px; left:-9%; bottom:-218px; border-top:1px solid rgba(83,192,214,.28); border-radius:50% 50% 0 0; background:radial-gradient(ellipse at 50% 0,rgba(83,192,214,.13),rgba(255,255,255,.7) 30%,transparent 63%); }
.aurora-field i { position:absolute; border:1px solid rgba(255,255,255,.9); border-radius:50%; transform:rotate(-13deg); }
.aurora-field i:nth-child(1) { width:710px; height:220px; left:20%; top:72px; }
.aurora-field i:nth-child(2) { width:850px; height:145px; left:4%; top:220px; opacity:.75; }
.aurora-field i:nth-child(3) { width:560px; height:110px; right:-10%; top:175px; opacity:.6; }

.empty-state { min-height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:38px 48px 28px; text-align:center; }
.agent-avatar.hero { width:67px; height:67px; margin-bottom:14px; background:rgba(255,255,255,.82); box-shadow:0 12px 36px rgba(38,79,112,.1); }
.agent-avatar.hero img { width:45px; height:45px; }
.eyebrow { margin:0 0 10px; color:#74869f; font-size:10px; font-weight:750; letter-spacing:.17em; }
.empty-state h1,.module-view h1 { margin:0; color:#102449; font-size:clamp(30px,3vw,43px); font-weight:720; letter-spacing:.01em; }
.empty-state > p:not(.eyebrow) { max-width:620px; margin:14px 0 0; color:#62728a; font-size:14px; line-height:1.7; }
.starter-grid { width:min(660px,100%); display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:31px; }
.starter-grid button { min-width:0; min-height:76px; display:grid; grid-template-columns:42px minmax(0,1fr) 10px; align-items:center; gap:11px; border:1px solid rgba(208,218,229,.92); border-radius:11px; padding:12px 14px; color:var(--ink); background:rgba(255,255,255,.9); box-shadow:0 8px 24px rgba(37,65,100,.06); text-align:left; transition:.18s ease; }
.starter-grid button:hover { transform:translateY(-2px); border-color:rgba(83,192,214,.65); }
.starter-grid button > i,.quick-list button > i { width:34px; height:34px; display:grid; place-items:center; border-radius:9px; font-style:normal; font-weight:700; }
.starter-grid i.green,.quick-list i.green { color:#269d78; background:#e7f8f1; }
.starter-grid i.cyan,.quick-list i.cyan { color:#338fbf; background:#e8f5f9; }
.starter-grid i.violet,.quick-list i.violet { color:#6259a8; background:#efedfb; }
.starter-grid button > span { min-width:0; color:#34465f; }
.starter-grid strong,.starter-grid small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.starter-grid strong { color:#34465f; font-size:12px; }
.starter-grid small { margin-top:5px; color:#8490a1; font-size:10px; }
.starter-grid button > b { color:#9aa4b2; font-size:15px; }
.starter-grid button:hover strong { color:#263b58; }
.starter-grid button:hover > b { color:#4f8fa8; }
.starter-grid button:focus-visible { outline:3px solid rgba(83,192,214,.28); outline-offset:2px; }

.demo-trigger { display:inline-flex; align-items:center; gap:9px; margin-top:19px; border:1px solid rgba(66,151,169,.35); border-radius:99px; padding:10px 16px; color:#244b68; background:rgba(255,255,255,.82); box-shadow:0 8px 22px rgba(43,104,127,.08); font-size:11px; }
.demo-trigger span { width:20px; height:20px; display:grid; place-items:center; border-radius:50%; color:#fff; background:linear-gradient(135deg,var(--green),var(--cyan),var(--violet)); font-size:7px; }

.conversation-thread { display:grid; gap:14px; padding:28px 6% 24px; }
.message { display:flex; gap:12px; margin-bottom:4px; }
.message.user { justify-content:flex-end; padding-left:12%; }
.message.assistant { padding-right:4%; }
.message-stack { max-width:min(90%,860px); min-width:0; }
.smooth-growth { width:100%; overflow:hidden; contain:layout style; }
.smooth-growth-inner { min-width:0; }
.conversation-history-more { align-self:center; min-height:31px; display:inline-flex; align-items:center; gap:8px; margin:4px auto 16px; border:1px solid #d8e3ee; border-radius:9px; padding:0 12px; color:#50647d; background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(241,247,252,.96)); box-shadow:0 6px 18px rgba(35,62,94,.055); font-size:10px; transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.conversation-history-more small { color:#8c99a9; font-size:9px; }
.conversation-history-more:hover,.conversation-history-more:focus-visible { border-color:rgba(83,154,197,.5); box-shadow:0 8px 20px rgba(50,91,127,.09); transform:translateY(-1px); outline:0; }
.message.user .message-stack { display:grid; justify-items:end; }
.message .bubble { border-radius:16px; font-size:14px; line-height:1.75; }
.message.user .bubble { border-radius:16px 7px 16px 16px; padding:11px 15px; color:#fff; background:linear-gradient(145deg,#132b50,#153d5d 58%,#3a437d); box-shadow:0 8px 22px rgba(18,44,78,.16); }
.message.assistant .bubble { border:1px solid rgba(74,143,158,.22); border-radius:7px 17px 17px 17px; padding:17px 19px; background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(247,251,252,.98)); box-shadow:0 10px 28px rgba(34,61,96,.065); }
.message .bubble > p { margin:0 0 11px; }
.message .bubble > p:last-child { margin-bottom:0; }
.message time { display:block; margin-top:6px; color:#98a3b1; font-size:9px; }
.message.user time { text-align:right; }
.work-context-banner { display:flex; align-items:center; gap:8px; margin:0 0 7px 4px; color:#66768a; font-size:10px; }
.work-context-banner span { flex:0 0 auto; border:1px solid rgba(63,182,146,.26); border-radius:99px; padding:3px 8px; color:#2d8064; background:#e9f7f2; font-size:9px; font-weight:700; }
.work-context-banner strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
.markdown-demo h2,.markdown-demo h3 { color:#172d50; line-height:1.35; }
.markdown-demo h2 { margin:17px 0 9px; font-size:20px; }
.markdown-demo h3 { margin:18px 0 8px; font-size:16px; }
.markdown-demo ol,.markdown-demo ul { margin:8px 0; padding-left:22px; color:#526178; }
.markdown-demo li { margin:6px 0; }
.markdown-demo blockquote { margin:12px 0; border-left:3px solid var(--cyan); border-radius:0 9px 9px 0; padding:10px 13px; color:#4c6474; background:linear-gradient(90deg,rgba(63,182,146,.09),rgba(83,192,214,.08),transparent); }
.markdown-demo code { color:#315768; }
.metric-chart { margin:12px 0 15px; overflow:hidden; border:1px solid #dfe7ee; border-radius:12px; background:#fbfcfe; }
.metric-chart > header { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #e6ebf1; padding:10px 12px; background:rgba(255,255,255,.85); }
.metric-chart header strong { color:#263a58; font-size:11px; }
.metric-chart header small { color:#8b96a5; font-size:9px; }
.chart-row { display:grid; grid-template-columns:74px minmax(90px,1fr) 80px; align-items:center; gap:10px; padding:8px 12px; color:#627087; font-size:10px; }
.chart-row > i { height:8px; overflow:hidden; border-radius:99px; background:#e9eef3; }
.chart-row > i b { display:block; height:100%; border-radius:99px; }
.chart-row.stream-item > i b { transform-origin:left center; animation:chart-grow .58s cubic-bezier(.22,.8,.35,1) backwards; }
.chart-row b.green { background:linear-gradient(90deg,#3fb692,#70ceb0); }
.chart-row b.cyan { background:linear-gradient(90deg,#3da5ba,#69c9dc); }
.chart-row b.violet { background:linear-gradient(90deg,#524e9e,#817dc2); }
.chart-row em { color:#7d8998; font-size:9px; font-style:normal; text-align:right; }
.markdown-table { margin:12px 0; overflow:auto; border:1px solid #dfe7ee; border-radius:11px; }
.markdown-table table { width:100%; border-collapse:collapse; min-width:520px; }
.markdown-table th,.markdown-table td { border-bottom:1px solid #e7ecf1; padding:9px 11px; color:#55647a; font-size:10px; text-align:left; }
.markdown-table th { color:#33465f; background:#f1f5f8; font-weight:700; }
.markdown-table tr:last-child td { border-bottom:0; }
.stream-shell { animation:shell-in .34s cubic-bezier(.22,.8,.35,1) backwards; }
.logic-diagram { margin:13px 0; overflow:hidden; border:1px solid #dfe7ee; border-radius:12px; background:radial-gradient(circle at 96% 0,rgba(83,192,214,.11),transparent 30%),linear-gradient(145deg,#fbfdfe,#f3f7fa); box-shadow:0 8px 20px rgba(34,61,96,.045); }
.logic-diagram figcaption { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #e4eaf0; padding:9px 12px; background:rgba(255,255,255,.84); }
.logic-diagram figcaption span { color:#2e435f; font-size:11px; font-weight:720; }
.logic-diagram figcaption small { color:#8b97a7; font-size:9px; }
.structure-rows { display:grid; gap:9px; padding:13px; }
.structure-row { display:grid; grid-template-columns:minmax(100px,1.2fr) minmax(120px,2.6fr) 38px; align-items:center; gap:10px; color:#53647a; font-size:10px; }
.structure-row > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.structure-row > i { height:10px; overflow:hidden; border-radius:99px; background:#e7edf2; }
.structure-row > i b { display:block; height:100%; transform-origin:left center; border-radius:inherit; background:linear-gradient(90deg,#3da5ba,#69c9dc); animation:chart-grow .62s cubic-bezier(.22,.8,.35,1) backwards; }
.structure-row.primary > i b { background:linear-gradient(90deg,#3fb692,#65c7aa 58%,#53c0d6); }
.structure-row > strong { color:#43546b; font-size:10px; text-align:right; }
.structure-diagram .structure-row { grid-template-columns:minmax(0,1.2fr) minmax(0,2.6fr) minmax(38px,max-content); }
.structure-diagram .structure-label { overflow-wrap:anywhere; }
.structure-diagram .structure-bar i { min-width:0; }
.logic-track { display:flex; align-items:stretch; gap:7px; overflow-x:auto; padding:13px; }
.logic-node { flex:1 0 128px; min-width:128px; min-height:52px; display:grid; place-items:center; border:1px solid #dce5ec; border-radius:10px; padding:10px; color:#42566c; background:#fff; font-size:10px; font-weight:650; line-height:1.45; text-align:center; box-shadow:0 5px 13px rgba(34,61,96,.04); }
.logic-node.positive { border-color:#cde6dd; color:#26755e; background:#f3fbf8; }
.logic-arrow { flex:0 0 auto; display:grid; place-items:center; color:#6da7b2; font-size:15px; font-style:normal; }
.logic-tree { overflow-x:auto; padding:16px; }
.tree-node { position:relative; min-height:44px; display:grid; place-items:center; border:1px solid #dce5ec; border-radius:10px; padding:9px 11px; color:#44576c; background:#fff; text-align:center; box-shadow:0 5px 13px rgba(34,61,96,.04); }
.tree-node strong { font-size:9px; line-height:1.45; }
.tree-root { width:min(340px,70%); margin:0 auto; border-color:rgba(83,192,214,.5); color:#225d68; background:linear-gradient(145deg,#f6fcfa,#edf7f8); }
.tree-node.positive { border-color:#cfe5dc; color:#2b765f; background:#f5fbf8; }
.tree-node.risk { border-color:#ead8d9; color:#99575e; background:#fff8f8; }
.logic-tree > .tree-children { min-width:520px; }
.tree-children { position:relative; display:grid; grid-template-columns:repeat(2,minmax(150px,1fr)); gap:12px; margin-top:24px; padding-top:12px; border-top:1px solid #cad8df; }
.tree-children::before { content:""; position:absolute; top:-12px; left:50%; height:12px; border-left:1px solid #cad8df; }
.tree-branch { position:relative; min-width:0; }
.tree-branch::before { content:""; position:absolute; top:-13px; left:50%; height:13px; border-left:1px solid #cad8df; }
.tree-children.compact { gap:7px; margin-top:18px; padding-top:10px; }
.tree-children.compact .tree-node { min-height:40px; padding:7px; }
.md-code { margin:12px 0 2px; overflow:hidden; border:1px solid #dce6ea; border-radius:10px; background:#eef5f6; }
.md-code > span { display:block; border-bottom:1px solid #dce6ea; padding:6px 11px; color:#577180; background:#e5eff1; font-size:9px; font-weight:700; letter-spacing:.07em; }
.md-code pre { margin:0; overflow:auto; padding:12px 13px; font:11px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace; }
.artifact-card { margin-top:9px; overflow:hidden; border:1px solid #dce5ed; border-radius:11px; background:#fff; box-shadow:0 8px 24px rgba(31,56,87,.05); }
.artifact-card > header { display:flex; align-items:center; justify-content:space-between; gap:10px; border-bottom:1px solid #e5eaf0; padding:9px 12px; }
.artifact-card header span { color:#63889a; font-size:8px; font-weight:750; letter-spacing:.14em; }
.artifact-card header strong { color:#34465f; font-size:10px; }
.artifact-card > div { display:grid; grid-template-columns:repeat(3,1fr); }
.artifact-card p { margin:0; border-right:1px solid #edf0f4; padding:11px; text-align:center; }
.artifact-card p:last-child { border-right:0; }
.artifact-card b,.artifact-card small { display:block; }
.artifact-card b { color:#16304f; font-size:17px; }
.artifact-card small { margin-top:4px; color:#8a95a4; font-size:8px; }
.suggestion-row { display:flex; flex-wrap:wrap; gap:7px; margin-top:9px; }
.suggestion-row button { min-height:32px; border:1px solid #dbe4eb; border-radius:8px; padding:0 11px; color:#53677a; background:#fff; font-size:9px; }
.suggestion-row button.primary { border-color:rgba(54,151,143,.42); color:#24566a; background:linear-gradient(118deg,rgba(49,141,118,.13),rgba(56,153,168,.15) 58%,rgba(81,77,150,.1)),#f8fcfc; box-shadow:0 6px 15px rgba(45,119,119,.09); font-weight:700; }
.user-message { justify-self:end; display:flex; align-items:center; gap:10px; max-width:76%; margin:0; border-radius:13px 13px 3px 13px; padding:11px 13px; color:#fff; background:var(--navy); font-size:10px; line-height:1.6; }
.user-message span { flex:0 0 auto; width:25px; height:25px; display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.14); font-size:8px; }
.agent-message { max-width:700px; display:grid; grid-template-columns:34px minmax(0,1fr); gap:11px; border:1px solid #dfe6ef; border-radius:3px 13px 13px 13px; padding:13px; background:#fff; box-shadow:0 10px 26px rgba(34,61,96,.06); }
.agent-avatar.reply { width:34px; height:34px; align-self:start; }
.agent-avatar.reply img { width:25px; height:25px; }
.agent-message strong { font-size:11px; }
.agent-message > div > p { margin:7px 0; color:#5f6f86; font-size:9px; line-height:1.75; }
.preparing-reply { align-items:flex-start; }
.preparing-reply .message-stack { width:min(310px,86%); }
.response-preparing { min-height:66px; display:flex; align-items:center; gap:13px; border:1px solid #dce6ed; border-radius:4px 14px 14px 14px; padding:12px 14px; background:linear-gradient(135deg,#fff,#f5fafb); box-shadow:0 10px 26px rgba(34,61,96,.06); }
.conversation.has-active-assistant-stream .preparing-reply { display:none !important; }
.response-preparing > span:last-child strong,.response-preparing > span:last-child small { display:block; }
.response-preparing > span:last-child strong { color:#344b62; font-size:10px; }
.response-preparing > span:last-child small { margin-top:4px; color:#8b97a6; font-size:8px; }
.preparing-lines { position:relative; flex:0 0 auto; width:48px; height:34px; overflow:hidden; border-radius:8px; background:linear-gradient(145deg,#eaf7f3,#edf5f8); }
.preparing-lines i { position:absolute; left:8px; height:2px; border-radius:99px; background:linear-gradient(90deg,var(--green),var(--cyan)); transform-origin:left center; animation:compose-line 1.15s ease-in-out infinite; }
.preparing-lines i:nth-child(1) { width:25px; top:9px; }
.preparing-lines i:nth-child(2) { width:31px; top:16px; animation-delay:.16s; }
.preparing-lines i:nth-child(3) { width:18px; top:23px; animation-delay:.32s; }
.preparing-lines b { position:absolute; width:2px; height:9px; left:35px; top:21px; border-radius:2px; background:var(--violet); animation:preparing-caret .68s steps(1) infinite; }
@keyframes compose-line { 0%,18% { opacity:.25; transform:scaleX(.24); } 52%,78% { opacity:1; transform:scaleX(1); } 100% { opacity:.35; transform:scaleX(.45); } }
@keyframes preparing-caret { 50% { opacity:0; } }
.scope-chips { display:flex; flex-wrap:wrap; gap:5px; margin-top:9px; }
.scope-chips span { border-radius:99px; padding:5px 7px; color:#318267; background:#e8f7f1; font-size:7px; }
.reveal { animation:message-in .28s cubic-bezier(.22,.8,.35,1) backwards; }
.stream-item { transform-origin:top center; animation:stream-in .42s cubic-bezier(.2,.72,.24,1) backwards; }
@keyframes message-in { from { opacity:0; transform:translateY(8px); } }
@keyframes stream-in { from { opacity:0; filter:blur(1.5px); transform:translateY(9px) scale(.995); } }
@keyframes shell-in { from { opacity:0; transform:translateY(8px) scale(.992); } }
@keyframes chart-grow { from { transform:scaleX(0); } }

.tool-run { max-width:660px; margin-left:45px; overflow:hidden; border:1px solid #dce5ed; border-radius:11px; background:rgba(249,252,253,.96); box-shadow:0 9px 24px rgba(33,61,91,.05); }
.tool-run > header { min-height:56px; display:grid; grid-template-columns:30px minmax(0,1fr) auto; align-items:center; gap:9px; border-bottom:1px solid #e5eaf0; padding:9px 12px; }
.agent-avatar.tool { width:30px; height:30px; box-shadow:none; }
.agent-avatar.tool img { width:21px; height:21px; }
.tool-run header strong,.tool-run header small { display:block; }
.tool-run header strong { font-size:9px; }
.tool-run header small { margin-top:4px; color:#8b96a4; font-size:7px; }
.tool-run header em { border-radius:99px; padding:5px 7px; color:#347f98; background:#e5f4f8; font-size:7px; font-style:normal; }
.tool-steps { display:grid; gap:7px; padding:11px 13px; }
.tool-steps p { display:grid; grid-template-columns:18px minmax(0,1fr) auto; align-items:center; gap:7px; margin:0; color:#526177; font-size:8px; }
.tool-steps p > i { width:17px; height:17px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#9aa8b8; font-size:7px; font-style:normal; }
.tool-steps p.done > i { background:#35ad86; }
.tool-steps p small { color:#8b96a5; font-size:7px; }
.spin { animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.run-progress { height:3px; overflow:hidden; background:#e8edf2; }
.run-progress i { display:block; width:58%; height:100%; background:linear-gradient(90deg,var(--green),var(--cyan),var(--violet)); animation:progress-pulse 1.2s ease-in-out infinite alternate; }
.run-progress.complete i { width:100%; animation:none; }
@keyframes progress-pulse { to { width:88%; } }

.signal-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-top:10px; }
.signal-grid p { min-width:0; display:grid; grid-template-columns:26px minmax(0,1fr); gap:7px; margin:0; border:1px solid #e5eaf0; border-radius:8px; padding:8px; background:#f9fbfd; }
.signal-grid p > i { width:25px; height:25px; display:grid; place-items:center; border-radius:7px; font-size:7px; font-style:normal; }
.signal-grid i.green { color:#248766; background:#e5f7f0; }
.signal-grid i.cyan { color:#347f98; background:#e5f4f8; }
.signal-grid i.violet { color:#5d579d; background:#efedfa; }
.signal-grid b,.signal-grid small { display:block; }
.signal-grid b { color:#35455c; font-size:8px; }
.signal-grid small { margin-top:4px; color:#8a95a4; font-size:7px; line-height:1.45; }

.final-answer { border-color:rgba(83,192,214,.42); background:linear-gradient(145deg,#fff,#f7fbfc); }
.final-answer p { min-height:48px; }
.typing-caret { display:inline-block; width:2px; height:12px; margin-left:3px; vertical-align:-2px; border-radius:1px; background:#65a9bf; opacity:.75; }
.typing-caret::after { content:none !important; display:none !important; }
.response-pending .typing-caret { display:none; }
.message.is-streaming .bubble { border-color:rgba(83,192,214,.34); box-shadow:0 12px 31px rgba(34,61,96,.075); }
.response-pending { min-width:132px; white-space:nowrap; }
@keyframes caret-blink { 50% { opacity:0; } }
.answer-actions { display:flex; gap:7px; margin-top:10px; }
.answer-actions button { height:30px; border:1px solid #dbe3ec; border-radius:7px; padding:0 10px; color:#5f6d81; background:#fff; font-size:8px; }
.answer-actions button.primary { border-color:rgba(54,151,143,.42); color:#24566a; background:linear-gradient(118deg,rgba(49,141,118,.13),rgba(56,153,168,.15) 58%,rgba(81,77,150,.1)),#f8fcfc; box-shadow:0 5px 13px rgba(45,119,119,.08); font-weight:700; }
.thinking-row { width:max-content; max-width:100%; display:flex; align-items:center; gap:8px; margin-left:45px; border-radius:99px; padding:6px 11px 6px 6px; color:#718096; background:rgba(255,255,255,.88); box-shadow:0 7px 20px rgba(33,61,91,.05); }
.agent-avatar.thinking-avatar { width:28px; height:28px; box-shadow:none; }
.agent-avatar.thinking-avatar img { width:19px; height:19px; }
.thinking-dots { display:flex; gap:3px; }
.thinking-dots i { width:4px; height:4px; border-radius:50%; background:#9aa9b8; }
.agent-status-strip.working .thinking-dots i { background:var(--cyan); animation:dot-wave .9s ease-in-out infinite; }
.agent-status-strip.working .thinking-dots i:nth-child(2) { animation-delay:.15s; }
.agent-status-strip.working .thinking-dots i:nth-child(3) { animation-delay:.3s; }
@keyframes dot-wave { 50% { transform:translateY(-2px); background:var(--violet); } }
.thinking-row strong { font-size:8px; font-weight:550; }
.thinking-row.original-thinking { width:auto; margin:0; border-radius:0; padding:7px 2px; background:transparent; box-shadow:none; }
.original-thinking > span:last-child strong,.original-thinking > span:last-child small { display:block; }
.original-thinking > span:last-child strong { color:#485a6b; font-size:11px; }
.original-thinking > span:last-child small { margin-top:3px; color:#8b96a5; font-size:9px; }
.thread-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-left:45px; border-top:1px dashed #dce4ec; padding-top:10px; }
.thread-controls span { color:#9aa4b2; font-size:7px; }
.thread-controls button { border:0; color:#4a7385; background:transparent; font-size:8px; }

.agent-status-strip { min-height:48px; display:flex; align-items:center; gap:9px; border-top:1px solid #e1e8ef; border-bottom:1px solid #e4eaf0; padding:7px 22px; color:#718096; background:rgba(250,252,254,.97); }
.agent-status-strip > span:last-child strong,.agent-status-strip > span:last-child small { display:block; }
.agent-status-strip > span:last-child strong { color:#526478; font-size:10px; }
.agent-status-strip > span:last-child small { margin-top:3px; color:#919cab; font-size:8px; }
.agent-status-strip.working { background:linear-gradient(110deg,rgba(83,192,214,.09),rgba(255,255,255,.97) 42%,rgba(117,113,186,.055)); }
.agent-status-strip.working > span:last-child strong { color:#465c75; }
.composer { padding:9px 20px 7px; background:rgba(248,250,253,.95); }
.composer-box { border:1px solid #d8e1eb; border-radius:11px; padding:8px 11px 7px; background:#fff; box-shadow:0 10px 26px rgba(31,55,88,.07); }
.composer-context { min-width:0; display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 6px 4px; border-bottom:1px solid #e7edf2; padding:2px 4px 7px; }
.composer-context[hidden] { display:none; }
.composer-context > span { min-width:0; display:flex; align-items:center; gap:6px; color:#667a8e; }
.composer-context > span i { color:#6c75b7; font-size:10px; font-style:normal; }
.composer-context > span b { flex:none; color:#415d75; font-size:9px; font-weight:760; }
.composer-context > span small { overflow:hidden; color:#91a0ad; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.composer-context > button { flex:none; width:22px; height:22px; display:grid; place-items:center; border:0; border-radius:50%; padding:0; color:#8391a0; background:transparent; cursor:pointer; }
.composer-context > button:hover { color:#385e76; background:#eef5f7; }
.composer textarea { box-sizing:border-box; width:100%; min-height:36px; max-height:120px; resize:none; border:0; outline:0; padding:7px 10px 3px; color:#22334f; background:transparent; font-size:13px; line-height:1.6; }
.composer textarea::placeholder { color:#8b96a7; }
.composer-foot { display:flex; align-items:center; justify-content:flex-end; gap:0; padding:0; }
.composer-foot button { height:32px; border:1px solid rgba(54,151,143,.44); border-radius:8px; padding:0 13px; color:#24566a; background:linear-gradient(118deg,rgba(49,141,118,.14),rgba(56,153,168,.16) 58%,rgba(81,77,150,.1)),#f8fcfc; box-shadow:0 6px 15px rgba(45,119,119,.09),inset 0 1px 0 rgba(255,255,255,.76); font-size:11px; font-weight:700; }
.composer-foot button:disabled { cursor:not-allowed; filter:grayscale(.3); opacity:.45; }
html body #app.app-shell .resize-handle { position:relative; z-index:6; flex:0 0 10px; box-sizing:border-box; width:10px; height:100%; display:grid; place-items:center; border:0; border-left:1px solid #dfe6ee; border-right:1px solid transparent; padding:0; background:rgba(246,248,251,.88); cursor:col-resize; touch-action:none; transition:border-color .16s ease,background .16s ease; }
html body #app.app-shell .resize-handle::before { content:""; position:absolute; inset:0 -4px; background:transparent; }
html body #app.app-shell .resize-handle:hover,html body #app.app-shell .resize-handle:focus-visible,html body #app.app-shell .resize-handle.is-resizing { border-color:rgba(83,192,214,.65); background:rgba(83,192,214,.1); outline:0; }
html body #app.app-shell .resize-handle span { position:relative; z-index:1; display:block; flex:none; width:3px; height:42px; border-radius:99px; background:#aebac7; transition:background .16s ease,box-shadow .16s ease; }
html body #app.app-shell .resize-handle:hover span,html body #app.app-shell .resize-handle:focus-visible span,html body #app.app-shell .resize-handle.is-resizing span { background:linear-gradient(var(--cyan),var(--violet)); box-shadow:0 0 10px rgba(83,192,214,.18); }
@media (min-width:921px) {
  html body #app.app-shell #chatPanel { grid-column:1; }
  html body #app.app-shell #workbench > #resizeHandle { position:absolute; top:-64px; right:var(--context-width,420px); height:100dvh; transform:none; }
  html body #app.app-shell #workbench > .context-panel { grid-column:3; }
}
body.panel-resizing { cursor:col-resize; user-select:none; }

.context-panel { min-width:0; overflow:auto; padding:18px 16px 24px; background:#f6f8fb; container-type:inline-size; }
.context-panel section { border:1px solid #dfe6ee; border-radius:10px; background:rgba(255,255,255,.94); box-shadow:0 8px 24px rgba(35,59,89,.045); }
.context-hero-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(160px,.8fr); align-items:stretch; gap:10px; }
.context-hero-grid > section { min-width:0; height:100%; }
.welcome-card { position:relative; min-height:124px; display:block; overflow:hidden; padding:17px; }
.welcome-card::after { content:""; position:absolute; width:130px; height:50px; right:-34px; top:-16px; border:1px solid rgba(83,192,214,.22); border-radius:50%; transform:rotate(-18deg); }
.welcome-card h2 { margin:0; color:#14284a; font-size:22px; }
.welcome-card h2 span { color:var(--violet); }
.welcome-card > p:last-child { margin:10px 0 0; color:#6e7b90; font-size:11px; line-height:1.7; }
.info-card { margin-top:10px; padding:13px; }
.info-card > header { min-height:24px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.info-card > header strong { font-size:12px; }
.info-card > header button { border:0; color:#61728a; background:transparent; font-size:10px; }
.quick-tabs { display:grid; grid-template-columns:repeat(4,1fr); gap:3px; margin:9px 0 12px; border-radius:7px; padding:3px; background:#f2f5f8; }
.quick-tabs button { min-height:30px; border:0; border-radius:5px; color:#8691a2; background:transparent; font-size:9px; }
.quick-tabs button.active { color:#273854; background:#fff; box-shadow:0 2px 7px rgba(30,52,82,.07); }
.quick-list { display:grid; gap:5px; }
.quick-list button { min-height:52px; display:grid; grid-template-columns:34px minmax(0,1fr) 8px; align-items:center; gap:9px; border:1px solid #e4e9ef; border-radius:8px; padding:8px 9px; color:#283850; background:#fff; text-align:left; }
.quick-list button > i { width:28px; height:28px; border-radius:7px; font-size:10px; }
.quick-list strong,.quick-list small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.quick-list strong { font-size:10px; }
.quick-list small { margin-top:4px; color:#8c96a5; font-size:9px; }
.quick-list button > b { color:#9ca6b4; }
.quick-action-groups { display:grid; gap:14px; }
.quick-action-group { min-width:0; border:0 !important; border-radius:0 !important; background:transparent !important; box-shadow:none !important; }
.quick-action-group > header { display:flex; align-items:center; gap:7px; margin-bottom:7px; color:#5c6c7f; }
.quick-action-group > header i { width:22px; height:22px; display:grid; place-items:center; border-radius:7px; color:#287b68; background:linear-gradient(145deg,#e6f7f0,#e8f4f8); font-size:8px; font-style:normal; font-weight:760; }
.quick-action-group > header strong { font-size:9px; letter-spacing:.03em; }
.quick-action-group > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.quick-action-group button { min-width:0; min-height:34px; display:flex; align-items:center; justify-content:flex-start; gap:5px; border:1px solid #e0e7ed; border-radius:8px; padding:7px 8px 7px 10px; color:#40576b; background:#fff; box-shadow:0 3px 9px rgba(37,74,94,.035); font-size:9px; text-align:left; transition:.16s ease; }
.quick-action-group button span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.quick-action-group button b { flex:0 0 auto; margin-left:auto; color:#94a4b2; font-size:8px; }
.quick-action-group button .action-risk { flex:0 0 auto; border-radius:99px; padding:2px 4px; color:#718295; background:#f0f4f7; font-size:7px; font-style:normal; font-weight:650; line-height:1.2; }
.quick-action-group button .risk-preview { color:#625a96; background:#f0eef9; }
.quick-action-group button .risk-input { color:#397489; background:#edf7fa; }
.quick-action-group button .risk-paid { color:#8a6b3a; background:#f8f3e9; }
.quick-action-group button:hover { transform:translateY(-1px); border-color:rgba(83,192,214,.65); color:#255b68; box-shadow:0 6px 14px rgba(37,74,94,.06); }
.reasoning-card ol { display:grid; gap:8px; margin:9px 0 0; padding:0; list-style:none; }
.reasoning-card li { display:grid; grid-template-columns:22px minmax(0,1fr); align-items:center; gap:8px; }
.reasoning-card li > b { width:22px; height:22px; display:grid; place-items:center; border-radius:50%; color:#357d75; background:#e8f6f3; font-size:8px; }
.reasoning-card li strong,.reasoning-card li small { display:block; }
.reasoning-card li strong { color:#44576c; font-size:9px; }
.reasoning-card li small { margin-top:3px; color:#8b97a6; font-size:8px; }
.boundary-card p { display:flex; align-items:center; gap:8px; margin:10px 0 0; color:#5e6c81; font-size:10px; }
.boundary-card p i { width:16px; height:16px; display:grid; place-items:center; border-radius:50%; color:#229b72; background:#e6f7f0; font-size:7px; font-style:normal; }
.memory-card > div { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; margin-top:9px; }
.memory-card p { margin:0; border-radius:6px; padding:8px 5px; background:#f6f8fb; text-align:center; }
.memory-card p span,.memory-card p strong { display:block; }
.memory-card p span { color:#8b95a4; font-size:8px; }
.memory-card p strong { margin-top:5px; color:#3b4a61; font-size:9px; }
.shop-card { margin-top:0; padding:14px; color:#fff; background:linear-gradient(135deg,#10284d,#15476b 58%,#36568b) !important; }
.shop-card span,.shop-card strong,.shop-card small { display:block; }
.shop-card span { color:#8fb6cf; font-size:9px; }
.shop-card strong { margin-top:7px; font-size:12px; }
.shop-card small { margin-top:5px; color:#a8c3d7; font-size:9px; }

.menu-backdrop { position:fixed; inset:0; z-index:30; display:flex; justify-content:flex-end; padding:14px; background:rgba(7,18,40,.4); backdrop-filter:blur(8px); animation:fade-in .18s ease both; }
.menu-panel { width:min(480px,calc(100vw - 28px)); height:100%; display:grid; grid-template-rows:auto auto auto minmax(0,1fr) auto; overflow:hidden; border:1px solid rgba(255,255,255,.8); border-radius:18px; background:#f8fafc; box-shadow:-28px 0 70px rgba(7,22,47,.22); animation:slide-in .22s ease both; }
.menu-panel.account-panel { grid-template-rows:auto minmax(0,1fr) auto; }
.menu-panel-head { min-height:84px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; color:#fff; background:radial-gradient(circle at 90% 0,rgba(83,192,214,.28),transparent 32%),linear-gradient(135deg,#0d294f,#101c38 66%,#2f326f); }
.menu-panel-head p { margin:0 0 6px; color:#91bdd0; font-size:8px; font-weight:750; letter-spacing:.18em; }
.menu-panel-head h2 { margin:0; font-size:20px; letter-spacing:.01em; }
.menu-panel-head > button { width:34px; height:34px; border:1px solid rgba(255,255,255,.16); border-radius:50%; color:#fff; background:rgba(255,255,255,.08); font-size:20px; }
.menu-intro { margin:0; border-bottom:1px solid #e2e8ef; padding:15px 20px; color:#66758a; background:#fff; font-size:10px; line-height:1.7; }
.menu-toolbar { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; }
.menu-toolbar > div { display:flex; gap:3px; border-radius:8px; padding:3px; background:#eef2f6; }
.menu-toolbar button { height:29px; border:0; border-radius:6px; padding:0 9px; color:#7b8799; background:transparent; font-size:8px; }
.menu-toolbar > div button.active { color:#1d304e; background:#fff; box-shadow:0 2px 8px rgba(24,48,78,.08); }
.menu-toolbar .menu-action { border:1px solid rgba(54,151,143,.42); color:#24566a; background:linear-gradient(118deg,rgba(49,141,118,.13),rgba(56,153,168,.15) 58%,rgba(81,77,150,.1)),#f8fcfc; box-shadow:0 5px 13px rgba(45,119,119,.08); font-weight:700; }
.suggestion-row button.primary:hover,.answer-actions button.primary:hover,.composer-foot button:hover:not(:disabled),.menu-toolbar .menu-action:hover { transform:translateY(-1px); border-color:rgba(54,151,143,.62); background:linear-gradient(118deg,rgba(49,141,118,.18),rgba(56,153,168,.2) 58%,rgba(81,77,150,.13)),#f7fbfc; box-shadow:0 8px 18px rgba(45,119,119,.12); }
.menu-list { min-height:0; display:grid; align-content:start; gap:8px; overflow:auto; padding:4px 16px 18px; }
.menu-list-item { min-height:76px; display:grid; grid-template-columns:40px minmax(0,1fr) auto 9px; align-items:center; gap:10px; border:1px solid #dfe6ee; border-radius:11px; padding:11px; color:#263851; background:#fff; text-align:left; box-shadow:0 7px 20px rgba(31,56,87,.045); transition:.16s ease; }
.menu-list-item:hover { transform:translateY(-1px); border-color:rgba(83,192,214,.62); box-shadow:0 10px 24px rgba(31,56,87,.08); }
.menu-list-item > i { width:38px; height:38px; display:grid; place-items:center; border-radius:10px; font-style:normal; font-weight:750; }
.menu-list-item > i.green { color:#218d6d; background:#e5f7f0; }
.menu-list-item > i.cyan { color:#338ba7; background:#e5f4f8; }
.menu-list-item > i.violet { color:#5e58a4; background:#eeecfa; }
.menu-list-item strong,.menu-list-item small { display:block; }
.menu-list-item strong { font-size:10px; }
.menu-list-item small { margin-top:6px; color:#8691a1; font-size:8px; line-height:1.45; }
.menu-list-item em { border-radius:99px; padding:5px 7px; font-size:7px; font-style:normal; white-space:nowrap; }
.menu-list-item em.green { color:#258667; background:#e7f7f1; }
.menu-list-item em.cyan { color:#347f98; background:#e8f4f7; }
.menu-list-item em.violet { color:#5d579d; background:#efedfa; }
.menu-list-item > b { color:#9ca6b3; font-size:15px; }
.menu-panel-foot { min-height:62px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid #e1e7ee; padding:12px 17px; background:#fff; }
.menu-panel-foot > span { display:flex; align-items:center; gap:8px; color:#8692a3; font-size:8px; }
.menu-panel-foot > button { height:32px; border:0; border-radius:7px; padding:0 16px; color:#fff; background:var(--navy); font-size:9px; }
.account-panel-body { min-height:0; display:grid; align-content:start; gap:17px; overflow:auto; padding:18px 17px 22px; }
.account-profile-card { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:12px; border:1px solid #dce6ee; border-radius:14px; padding:15px; background:linear-gradient(145deg,#fff,#f4f9fb); box-shadow:0 9px 24px rgba(31,56,87,.055); }
.account-avatar { width:46px; height:46px; display:grid; place-items:center; border-radius:13px; color:#fff; background:linear-gradient(145deg,#1b385e,#3a8d99 62%,#524e9e); font-size:14px; font-weight:740; box-shadow:0 9px 20px rgba(29,62,96,.16); }
.account-profile-card strong,.account-profile-card small { display:block; }
.account-profile-card strong { color:#203651; font-size:13px; }
.account-profile-card small { margin-top:5px; color:#8290a1; font-size:8px; }
.account-profile-card > em { border-radius:99px; padding:5px 8px; color:#258667; background:#e7f7f1; font-size:7px; font-style:normal; white-space:nowrap; }
.account-action-group { min-width:0; }
.account-action-group h3 { margin:0 0 8px 3px; color:#8793a3; font-size:8px; font-weight:760; letter-spacing:.12em; }
.account-action-group > button { width:100%; min-height:64px; display:grid; grid-template-columns:36px minmax(0,1fr) auto 8px; align-items:center; gap:10px; border:1px solid #e1e7ee; border-bottom:0; padding:10px 11px; color:#2c3f58; background:#fff; text-align:left; }
.account-action-group > button:first-of-type { border-radius:11px 11px 0 0; }
.account-action-group > button:last-of-type { border-bottom:1px solid #e1e7ee; border-radius:0 0 11px 11px; }
.account-action-group > button:hover { position:relative; z-index:1; border-color:rgba(83,192,214,.62); background:#fbfdfe; }
.account-action-group > button > i { width:34px; height:34px; display:grid; place-items:center; border-radius:9px; color:#318267; background:#e7f7f1; font-size:8px; font-style:normal; font-weight:760; }
.account-action-group > button > i.password-icon { color:#5f599e; background:#efedfa; }
.account-action-group > button > i.member-icon { color:#347f98; background:#e8f4f7; }
.account-action-group > button > i.edge-icon { color:#356889; background:#e9f1f8; }
.account-action-group strong,.account-action-group small { display:block; }
.account-action-group strong { font-size:10px; }
.account-action-group small { margin-top:5px; color:#8b96a5; font-size:8px; }
.account-action-group em { border-radius:99px; padding:5px 7px; color:#5d579d; background:#efedfa; font-size:7px; font-style:normal; white-space:nowrap; }
.account-action-group em.green { color:#258667; background:#e7f7f1; }
.account-action-group > button > b { color:#a0a9b5; font-size:14px; }
.account-security-card { display:grid; gap:7px; border:1px solid #dfe7ed; border-radius:11px; padding:13px 14px; background:#f7fafc; }
.account-security-card > span { display:flex; align-items:center; gap:8px; }
.account-security-card strong { color:#43566c; font-size:9px; }
.account-security-card small { color:#8996a5; font-size:8px; }
.menu-panel-foot.account-panel-foot { justify-content:flex-end; }
.account-panel-foot .logout-action { margin-right:auto; border:1px solid #ead9d9; color:#a25b62; background:#fff7f7; }
@keyframes fade-in { from { opacity:0; } }
@keyframes slide-in { from { opacity:0; transform:translateX(24px); } }

.module-view { min-height:calc(100dvh - 64px); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:30px; text-align:center; background:radial-gradient(circle at 50% 48%,rgba(83,192,214,.13),transparent 30%),linear-gradient(180deg,#f9fbfd,#f2f6fa); }
.module-view > .module-icon-shell { width:70px; height:70px; display:grid; place-items:center; margin-bottom:18px; border-radius:50%; color:var(--violet); background:linear-gradient(145deg,#e5f8f1,#e7f5f9 55%,#edebfb); }
.module-icon-shell .nav-icon { color:#3b8f97; transform:scale(1.45); }
.module-view > p:not(.eyebrow) { max-width:480px; color:var(--muted); font-size:11px; line-height:1.8; }
.module-view button { margin-top:12px; border:0; border-radius:8px; padding:10px 16px; color:#fff; background:var(--navy); font-size:10px; }

@media (max-width:1180px) {
  .workbench { grid-template-columns:minmax(360px,1fr) 10px var(--context-width,420px); }
  .agent-identity { min-width:158px; }
  .agent-meta button:nth-of-type(1),.agent-meta button:nth-of-type(2),.agent-meta button:nth-of-type(3),.agent-meta button:nth-of-type(4) { display:none; }
  .device-control { display:none !important; }
}

@media (max-width:920px) {
  .app-shell { grid-template-columns:76px minmax(0,1fr); }
  .sidebar { padding-inline:9px; }
  .brand { justify-content:center; padding:0; }
  .brand img { width:45px; height:45px; }
  .brand span,.primary-nav button b,.primary-nav button > i,.runtime-card span { display:none; }
  .sidebar-conversations { display:none; }
  .chat-header-fallback { display:inline-flex; }
  .primary-nav button { grid-template-columns:1fr; padding:0; text-align:center; }
  .runtime-card { grid-template-columns:1fr; justify-items:center; }
  .workspace { overflow:visible; }
  .workbench { height:auto; min-height:calc(100dvh - 72px); grid-template-columns:1fr; overflow:visible; }
  .chat-panel { height:min(700px,calc(100dvh - 64px)); min-height:0; overflow:hidden; border-right:0; }
  .conversation { height:auto; max-height:72dvh; }
  .resize-handle { display:none; }
  .context-panel { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; overflow:visible; }
  .context-hero-grid { grid-column:1 / -1; }
  .context-panel .info-card,.context-panel .shop-card { margin-top:0; }
  .scope-controls label > span,.live-badge,.member-menu b { display:none; }
}

@container (max-width:350px) {
  .context-hero-grid { grid-template-columns:1fr; }
  .context-hero-grid .welcome-card { min-height:118px; }
  .context-hero-grid .shop-card { min-height:96px; }
}

@media (max-width:640px) {
  .app-shell { display:block; }
  .sidebar { position:relative; width:100%; height:auto; display:grid; grid-template-columns:auto 1fr; align-items:center; padding:9px 12px; }
  .brand { justify-content:flex-start; min-height:42px; }
  .brand img { width:36px; height:36px; }
  .primary-nav { display:flex; justify-content:flex-end; gap:3px; margin:0; }
  .primary-nav button { width:38px; min-height:38px; }
  .runtime-card { display:none; }
  .topbar { min-height:62px; padding:0 12px; }
  .breadcrumb span,.breadcrumb b,.scope-controls label:first-of-type,.live-badge { display:none; }
  .scope-controls { gap:5px; }
  .scope-controls select { width:100px; }
  .member-menu { display:none; }
  .workbench { min-height:calc(100dvh - 104px); }
  .agent-header { min-height:60px; padding:0 12px; }
  .agent-identity { min-width:0; }
  .agent-identity small,.view-switch,.agent-meta > span,.agent-meta button:not(.new-chat) { display:none; }
  .empty-state { padding:34px 16px 24px; }
  .empty-state h1 { font-size:29px; }
  .starter-grid { grid-template-columns:1fr; }
  .conversation-thread { padding-inline:12px; }
  .message.assistant { padding-right:0; }
  .message-stack { max-width:calc(100% - 42px); }
  .structure-row { grid-template-columns:90px minmax(90px,1fr) 34px; gap:7px; }
  .logic-track { flex-direction:column; overflow:visible; }
  .logic-node { flex:auto; min-width:0; min-height:44px; }
  .logic-arrow { min-height:16px; transform:rotate(90deg); }
  .logic-tree { min-width:0; overflow:visible; padding:13px; }
  .logic-tree > .tree-children { min-width:0; }
  .tree-root { width:auto; }
  .tree-children { grid-template-columns:1fr; margin-top:12px; padding-top:0; border-top:0; }
  .tree-children::before { display:none; }
  .tree-branch { padding-left:14px; }
  .tree-branch::before { top:-8px; left:2px; width:10px; height:30px; border-left:1px solid #cad8df; border-bottom:1px solid #cad8df; }
  .user-message { max-width:92%; }
  .signal-grid { grid-template-columns:1fr; }
  .tool-run,.thinking-row,.thread-controls { margin-left:0; }
  .composer { padding-inline:12px; }
  .context-panel { grid-template-columns:1fr; padding:12px; }
  .context-panel section { min-width:0; }
  .menu-backdrop { padding:0; }
  .menu-panel { width:100%; height:100%; border:0; border-radius:0; }
  .menu-toolbar { align-items:flex-start; flex-direction:column; }
  .menu-toolbar .menu-action { align-self:stretch; }
}

/* V2.1 functional DOM compatibility layer. The application keeps its
   production IDs and event contracts while presenting the reviewed V28 UI. */
html,body,#app { width:100%; height:100%; }
body { overflow:hidden; font-size:15px; }
[hidden] { display:none !important; }
button:disabled { cursor:not-allowed !important; opacity:.46; }

.aurora-ribbon { position:absolute; width:92%; height:34%; left:0; top:32%; border-radius:50%; opacity:.72; filter:blur(18px); mix-blend-mode:screen; transform:rotate(-8deg); }
.aurora-ribbon.ribbon-a { background:linear-gradient(100deg,transparent 4%,rgba(54,218,163,.48) 30%,rgba(67,196,225,.4) 61%,rgba(101,78,204,.24) 82%,transparent 97%); animation:aurora-ribbon 14s ease-in-out infinite alternate; }
.aurora-ribbon.ribbon-b { top:45%; left:10%; opacity:.34; background:linear-gradient(96deg,transparent,rgba(63,182,146,.42),rgba(83,192,214,.38),transparent); animation:aurora-ribbon 19s ease-in-out infinite alternate-reverse; }
@keyframes aurora-ribbon { to { transform:translate3d(5%,18px,0) rotate(-3deg) scaleY(1.16); } }

.auth-card > p:not(.form-error) { margin:0 0 25px; color:#7c899b; font-size:11px; line-height:1.7; }
.auth-card label { display:grid; gap:8px; margin-top:16px; color:#536176; font-size:10px; font-weight:650; }
.auth-card input { width:100%; min-height:47px; border:1px solid #d8e1eb; border-radius:10px; outline:0; padding:0 13px; color:#263a56; background:#f9fbfd; font-size:13px; transition:.18s ease; }
.auth-card input:focus { border-color:rgba(83,192,214,.8); background:#fff; box-shadow:0 0 0 4px rgba(83,192,214,.09); }
.auth-card > button { width:100%; min-height:48px; margin-top:24px; border:1px solid rgba(54,151,143,.42); border-radius:10px; padding:0 17px; color:#24566a; background:linear-gradient(118deg,rgba(49,141,118,.13),rgba(56,153,168,.15) 58%,rgba(81,77,150,.1)),#f8fcfc; box-shadow:0 9px 22px rgba(45,119,119,.1); font-size:11px; font-weight:720; }
.auth-card > button b { float:right; }
.auth-card > .auth-secondary-button { margin-top:9px; border-color:#dfe6ee; color:#6f7c8e; background:#fff; box-shadow:none; }
.auth-security-note { display:block; margin-top:12px; color:#8b96a6; font-size:9px; line-height:1.6; }
.form-error { margin:12px 0 0 !important; border-radius:9px; padding:9px 11px; color:#a25b62; background:#fff1f2; font-size:10px; }

.brand > span,.runtime-card > div { min-width:0; }
.brand > span strong,.brand > span small,.runtime-card > div strong,.runtime-card > div small { display:block; }
.brand > span strong { font-size:20px; letter-spacing:.06em; }
.brand > span small { margin-top:4px; color:#93aecb; font-size:10px; font-weight:700; letter-spacing:.2em; }
.runtime-card > div strong { color:#edf6ff; font-size:11px; font-weight:650; }
.runtime-card > div small { margin-top:4px; color:#8fa8c2; font-size:8px; line-height:1.45; }
.primary-nav button:disabled { opacity:.48; }

.scope-controls .hy-select { min-width:150px; max-width:240px; }
.scope-controls .hy-select.open { z-index:210; }
.scope-controls .device-picker .hy-select { min-width:185px; max-width:280px; }
.scope-controls .hy-select-trigger { min-height:38px; border:1px solid #dce3ec; border-radius:8px; padding:0 9px 0 11px; color:#49566b; background:#fff; box-shadow:none; font-size:12px; }
.scope-controls .hy-select-trigger:hover { border-color:#b9c8d6; }
.scope-controls .hy-select-trigger > span:last-child { color:#7e8c9d; }
.scope-controls .hy-select-menu { z-index:220; border-color:#dce5ed; border-radius:10px; color:#435269; background:#fff; box-shadow:0 16px 40px rgba(17,40,71,.14); }
.scope-controls .hy-select-option.selected { color:#256d68; background:#eaf7f4; }
.member-menu-button span { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; color:#fff; background:var(--navy); font-size:12px; }

.conversation > .message { position:relative; z-index:1; margin:0 6% 18px; }
.conversation { --assistant-inset:16px; }
.conversation > .message.assistant { margin-left:var(--assistant-inset); }
@media(min-width:921px) {
  .conversation > .message.assistant { margin-right:var(--assistant-inset); padding-right:0; }
  .conversation > .message.assistant > .message-stack { max-width:min(calc(100% - 52px),900px); }
}
.conversation > .message:first-of-type { margin-top:28px; }
.conversation > .message:last-of-type { margin-bottom:28px; }
.agent-avatar.reply { width:40px; height:40px; }
.agent-avatar.reply img { width:30px; height:30px; }
.markdown-demo h2,.markdown-demo h3,.markdown-demo h4 { color:#172d50; line-height:1.35; }
.markdown-demo h2 { margin:17px 0 9px; font-size:20px; }
.markdown-demo h3 { margin:18px 0 8px; font-size:16px; }
.markdown-demo h4 { margin:16px 0 7px; font-size:14px; }
.markdown-demo ul,.markdown-demo ol { margin:8px 0; padding-left:22px; color:#526178; }
.markdown-demo li { margin:6px 0; }
.markdown-demo .md-table { margin:12px 0; overflow:hidden; border:1px solid #dfe7ee; border-radius:11px; background:#fff; }
.markdown-demo .md-table table { width:100%; min-width:520px; border-collapse:collapse; }
.markdown-demo .md-table th,.markdown-demo .md-table td { border-bottom:1px solid #e7ecf1; padding:9px 11px; color:#55647a; font-size:10px; text-align:left; }
.markdown-demo .md-table th { color:#33465f; background:#f1f5f8; font-weight:700; }
.markdown-demo .md-table tr:last-child td { border-bottom:0; }
.markdown-demo .md-code { margin:12px 0; overflow:hidden; border:1px solid #dfe7ee; border-radius:10px; background:#0e203c; }
.markdown-demo .md-code-label { padding:7px 11px; color:#8fb4c7; background:#13294a; font-size:8px; letter-spacing:.1em; }
.markdown-demo .md-code pre { margin:0; overflow:auto; padding:13px; color:#d7e8ec; font-size:10px; line-height:1.7; }
.suggestions { margin-top:14px; border:1px solid #dce7ef; border-radius:11px; padding:10px 11px; background:linear-gradient(110deg,rgba(83,192,214,.09),rgba(255,255,255,.98) 48%,rgba(117,113,186,.05)); box-shadow:0 7px 20px rgba(31,67,102,.055); }
.suggestions > span { display:block; margin-bottom:8px; color:#38566f; font-size:10px; font-weight:720; letter-spacing:.02em; }
.suggestions > div { display:flex; flex-wrap:wrap; gap:7px; }
.suggestions button { min-height:34px; display:flex; align-items:center; gap:8px; border:1px solid #dce5ec; border-radius:8px; padding:0 11px; color:#496175; background:#fff; font-size:9px; }
.suggestions button:hover { border-color:rgba(83,192,214,.65); color:#255b68; }
.suggestions button .suggestion-kind { border-radius:99px; padding:3px 5px; color:#5f7185; background:#eef3f7; font-size:7px; font-style:normal; font-weight:700; }
.suggestions button .kind-approval { color:#825c67; background:#f8eef1; }
.suggestions button .kind-device,.suggestions button .kind-input { color:#397489; background:#edf7fa; }
.suggestions button .kind-workflow { color:#625a96; background:#f0eef9; }
.suggestions button em { border-radius:99px; padding:3px 5px; color:#5d579d; background:#efedfa; font-size:7px; font-style:normal; }
.suggestions button b { color:#8da0af; }

.thinking.agent-status-strip {
  position:relative;
  width:calc(100% - 32px);
  min-height:66px;
  display:grid;
  grid-template-columns:40px 18px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  margin:0 16px 8px;
  overflow:visible;
  border:1px solid #dce6ef;
  border-radius:12px;
  padding:7px 10px;
  color:#61748a;
  background:linear-gradient(110deg,rgba(83,192,214,.09),rgba(255,255,255,.97) 42%,rgba(117,113,186,.055));
  box-shadow:0 8px 24px rgba(31,67,102,.06);
  transition:width .42s cubic-bezier(.22,.78,.2,1),height .34s ease,min-height .34s ease,max-height .34s ease,padding .34s ease,border-radius .38s ease,background .3s ease,box-shadow .3s ease,grid-template-columns .36s ease,gap .3s ease;
}
.thinking.agent-status-strip::before {
  content:"";
  position:absolute;
  inset:10px auto 10px -1px;
  width:2px;
  border-radius:3px;
  background:linear-gradient(#53c0d6,#7773ba);
}
.thinking.agent-status-strip .thinking-avatar { width:40px; height:40px; transition:transform .34s ease,opacity .24s ease,filter .24s ease,box-shadow .3s ease; }
.thinking.agent-status-strip .thinking-avatar img { width:30px; height:30px; }
.thinking.agent-status-strip > .thinking-copy { min-width:0; display:grid; gap:2px; }
.thinking-title-row { min-width:0; display:flex; align-items:center; gap:8px; }
.thinking.agent-status-strip > .thinking-copy strong,
.thinking.agent-status-strip > .thinking-copy small { display:block; }
.thinking.agent-status-strip > .thinking-copy strong { min-width:0; overflow:hidden; color:#344b65; font-size:12px; font-weight:680; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; transition:opacity .12s ease,transform .16s cubic-bezier(.22,.75,.25,1); }
.thinking.agent-status-strip > .thinking-copy small { overflow:hidden; margin:0; color:#77879a; font-size:9px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; transition:opacity .12s ease,transform .16s cubic-bezier(.22,.75,.25,1); }
@supports ((background-clip:text) or (-webkit-background-clip:text)) {
  .thinking.agent-status-strip.working #thinkingText.aurora-text-sweep {
    color:#344b65;
    background-image:linear-gradient(96deg,#344b65 0%,#344b65 36%,#4f8fa8 45%,#53c0d6 49%,#7773ba 54%,#344b65 64%,#344b65 100%);
    background-position:130% 0;
    background-size:240% 100%;
    background-clip:text;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    animation:aurora-text-sweep 3.35s linear .18s infinite both;
  }
}
@keyframes aurora-text-sweep {
  0% { background-position:130% 0; animation-timing-function:cubic-bezier(.55,.02,.86,.42); }
  18% { background-position:101% 0; animation-timing-function:linear; }
  78% { background-position:-1% 0; animation-timing-function:cubic-bezier(.14,.58,.45,1); }
  100% { background-position:-30% 0; }
}
.thinking-phase { flex:0 0 auto; display:inline-flex; align-items:center; gap:5px; border-radius:99px; padding:3px 7px; color:#476d85; background:#edf5f8; font-size:8px; font-weight:700; letter-spacing:.04em; }
.thinking-phase i { width:5px; height:5px; border-radius:50%; background:#53c0d6; box-shadow:0 0 0 3px rgba(83,192,214,.1); }
.thinking-meta-row { width:max-content; max-width:100%; min-width:0; min-height:19px; display:flex; flex-wrap:wrap; align-items:center; gap:0; margin-top:2px; border:1px solid rgba(207,220,231,.82); border-radius:6px; padding:1px 3px; background:rgba(255,255,255,.56); }
.thinking-facts { display:contents; margin:0; }
.thinking-facts b,.thinking-safety,.thinking-design summary,.thinking-trajectory summary { min-height:17px; display:inline-flex; align-items:center; overflow:hidden; border:0; border-radius:0; padding:0 7px; color:#5c7087; background:transparent; font-size:8.5px; font-weight:600; line-height:1.25; white-space:nowrap; transition:width .24s cubic-bezier(.22,.75,.25,1),opacity .16s ease,color .18s ease; }
.thinking-facts b + b,.thinking-safety,.thinking-design summary,.thinking-trajectory summary { border-left:1px solid #dfe7ee; }
.thinking-safety { width:auto; margin:0; color:#536d80; }
.thinking[data-safety="awaiting_confirmation"] .thinking-safety { color:#866126; background:transparent; }
.thinking[data-safety="submitted_external"] .thinking-safety { color:#355e83; background:transparent; }
.thinking[data-safety="outcome_unknown"] .thinking-safety { color:#9a443e; background:transparent; }
.thinking-design,.thinking-trajectory { position:relative; margin:0; color:#687b8f; font-size:9px; }
.thinking-design summary,.thinking-trajectory summary { gap:4px; cursor:pointer; list-style:none; user-select:none; }
.thinking-design summary::-webkit-details-marker,.thinking-trajectory summary::-webkit-details-marker { display:none; }
.thinking-design summary::before,.thinking-trajectory summary::before { content:"›"; color:#4f8fa8; font-size:11px; transition:transform .16s ease; }
.thinking-design[open],.thinking-trajectory[open] { flex-basis:100%; border-top:1px solid #e3eaf0; margin-top:2px; padding-top:2px; }
.thinking-design[open] summary,.thinking-trajectory[open] summary { border-left:0; }
.thinking-design[open] summary::before,.thinking-trajectory[open] summary::before { transform:rotate(90deg); }
.thinking.agent-status-strip:has(.thinking-design[open],.thinking-trajectory[open]) { align-items:start; }
.thinking.agent-status-strip:has(.thinking-design[open],.thinking-trajectory[open]) .thinking-avatar { margin-top:2px; }
.thinking.agent-status-strip:has(.thinking-design[open],.thinking-trajectory[open]) .thinking-copy,
.thinking.agent-status-strip:has(.thinking-design[open],.thinking-trajectory[open]) .thinking-meta-row,
.thinking.agent-status-strip:has(.thinking-design[open],.thinking-trajectory[open]) .thinking-design,
.thinking.agent-status-strip:has(.thinking-design[open],.thinking-trajectory[open]) .thinking-trajectory { width:100%; }
.thinking.agent-status-strip:has(.thinking-design[open],.thinking-trajectory[open]) .thinking-stop { align-self:start; margin-top:4px; }
.thinking-design-body { display:grid; gap:5px; margin:4px 0 1px; border-left:1px solid #dce6ef; padding:4px 5px 4px 15px; }
.thinking-design-body strong { overflow:visible !important; color:#445d76 !important; font-size:9px !important; white-space:normal !important; }
.thinking-design-body > span { color:#74869a; font-size:8.5px; line-height:1.45; }
.thinking-design-body ol { display:grid; gap:4px; max-height:88px; margin:1px 0 0; overflow:auto; padding-left:16px; scrollbar-width:thin; }
.thinking-design-body li { color:#66798e; }
.thinking-design-body li.warning { color:#906730; }
.thinking-design-body li.failed { color:#a44742; }
.thinking-trajectory ol { display:grid; gap:4px; max-height:94px; margin:4px 0 1px; overflow:auto; overscroll-behavior:contain; border-left:1px solid #dce6ef; padding:3px 4px 3px 15px; scrollbar-color:rgba(102,131,155,.22) transparent; scrollbar-width:thin; }
.thinking-trajectory ol:hover { scrollbar-color:rgba(84,119,146,.52) transparent; }
.thinking-trajectory ol::-webkit-scrollbar { width:6px; }
.thinking-trajectory ol::-webkit-scrollbar-track { background:transparent; }
.thinking-trajectory ol::-webkit-scrollbar-thumb { border:2px solid transparent; border-radius:99px; background:rgba(102,131,155,.22); background-clip:padding-box; }
.thinking-trajectory ol:hover::-webkit-scrollbar-thumb,.thinking-trajectory ol::-webkit-scrollbar-thumb:hover { background:rgba(84,119,146,.52); background-clip:padding-box; }
.thinking-trajectory li { padding-left:2px; color:#66798e; }
.thinking-trajectory li.warning { color:#906730; }
.thinking-trajectory li.failed { color:#a44742; }
.thinking-stop { align-self:center; min-height:28px; border:1px solid #dfd5d9; border-radius:8px; padding:0 10px; color:#765b65; background:#fff; box-shadow:0 3px 9px rgba(54,35,45,.035); font-size:9px; }
.thinking-stop:hover:not(:disabled) { border-color:#caaeb6; color:#784b58; background:#fff6f7; }
.thinking-stop:focus-visible { outline:3px solid rgba(117,113,186,.18); outline-offset:2px; }
.thinking .dots { flex:0 0 auto; align-self:center; justify-self:center; display:flex; align-items:center; gap:3px; margin:0; }
.thinking .dots i { width:4px; height:4px; border-radius:50%; background:var(--cyan); animation:dot-wave .9s ease-in-out infinite; }
.thinking .dots i:nth-child(2) { animation-delay:.15s; }
.thinking .dots i:nth-child(3) { animation-delay:.3s; }
.thinking-copy .thinking-text-leave { opacity:.38; transform:translateY(-1px); }
.thinking-copy .thinking-text-enter { opacity:.38; transform:translateY(1px); }
.thinking.agent-status-strip > .thinking-dots,.thinking.agent-status-strip > .thinking-copy,.thinking.agent-status-strip > .thinking-stop { min-width:0; transition:opacity .16s ease,transform .28s cubic-bezier(.22,.78,.2,1),visibility 0s linear; }
.thinking.agent-status-strip.is-retracting,.thinking.agent-status-strip.is-collapsed { width:60px; height:0; min-height:0; max-height:0; grid-template-columns:40px 0 0 0; grid-template-rows:40px; align-content:center; gap:0; overflow:visible; border-color:transparent; border-radius:0; padding:0 10px; background:transparent; box-shadow:none; }
.thinking.agent-status-strip.is-retracting::before,.thinking.agent-status-strip.is-collapsed::before { opacity:0; }
.thinking.agent-status-strip.is-retracting > .thinking-dots,.thinking.agent-status-strip.is-retracting > .thinking-copy,.thinking.agent-status-strip.is-retracting > .thinking-stop,.thinking.agent-status-strip.is-collapsed > .thinking-dots,.thinking.agent-status-strip.is-collapsed > .thinking-copy,.thinking.agent-status-strip.is-collapsed > .thinking-stop { visibility:hidden; opacity:0; transform:translateX(-8px); transition-delay:0s,0s,.16s; pointer-events:none; }
.thinking.agent-status-strip.is-retracting .thinking-avatar,.thinking.agent-status-strip.is-collapsed .thinking-avatar { width:40px; height:40px; transform:translateY(-33px); }
.thinking.agent-status-strip.is-retracting .thinking-avatar img,.thinking.agent-status-strip.is-collapsed .thinking-avatar img { width:30px; height:30px; }
.thinking.agent-status-strip.is-retracting .thinking-avatar,.thinking.agent-status-strip.is-collapsed .thinking-avatar { overflow:visible; border-color:rgba(83,192,214,.28); background:#fff; box-shadow:0 7px 18px rgba(24,55,91,.1); }
.thinking.agent-status-strip.is-collapsed .thinking-avatar img { transform-origin:center; animation:aurora-logo-breathe 3.8s ease-in-out infinite; }
.thinking.agent-status-strip.is-idle-hiding .thinking-avatar { opacity:0; transform:translateY(-33px) scale(.94); filter:blur(.7px); pointer-events:none; }
@keyframes aurora-logo-breathe {
  0%,100% { transform:scale(1); filter:drop-shadow(0 3px 6px rgba(39,86,119,.1)); }
  48% { transform:scale(1.018); filter:drop-shadow(-2px 2px 7px rgba(83,192,214,.28)) drop-shadow(2px -1px 6px rgba(117,113,186,.15)); }
  68% { transform:scale(1.008); filter:drop-shadow(0 2px 7px rgba(83,192,214,.18)); }
}

@media (max-width:720px) {
  .thinking.agent-status-strip { width:calc(100% - 20px); grid-template-columns:40px 16px minmax(0,1fr); margin:0 10px 8px; padding:9px 10px; }
  .thinking.agent-status-strip .thinking-stop { grid-column:3; justify-self:start; margin-top:2px; }
  .thinking.agent-status-strip.is-retracting,.thinking.agent-status-strip.is-collapsed { width:60px; grid-template-columns:40px 0 0 0; padding:0 10px; }
}

@media (prefers-reduced-motion:reduce) {
  .thinking.agent-status-strip,.thinking.agent-status-strip .thinking-avatar,.thinking.agent-status-strip > .thinking-dots,.thinking.agent-status-strip > .thinking-copy,.thinking.agent-status-strip > .thinking-stop { transition:none; }
  .thinking.agent-status-strip.is-collapsed .thinking-avatar img { animation:none; filter:none; }
  .thinking-copy .thinking-text-leave,.thinking-copy .thinking-text-enter { opacity:1; transform:none; }
  .thinking.agent-status-strip > .thinking-copy strong,.thinking.agent-status-strip > .thinking-copy small,.thinking-facts b,.thinking-safety,.thinking-design summary,.thinking-trajectory summary { transition:none; }
  .thinking.agent-status-strip.working #thinkingText.aurora-text-sweep {
    color:#344b65;
    background:none;
    -webkit-text-fill-color:#344b65;
    animation:none;
  }
}

.mcp-token-settings > p { margin:8px 0 12px; color:#748398; font-size:10px; }
.mcp-token-settings select { min-height:36px; border:1px solid #dbe4ed; border-radius:7px; padding:0 10px; color:#263a56; background:#fbfcfe; }
.mcp-token-list { display:grid; gap:7px; margin-bottom:12px; }
.mcp-token-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; border:1px solid #e1e8ee; border-radius:9px; padding:10px 11px; background:#fff; }
.mcp-token-row strong,.mcp-token-row small { display:block; }
.mcp-token-row strong { color:#354a61; font-size:10px; }
.mcp-token-row small { margin-top:4px; color:#8793a3; font-size:9px; }
.mcp-token-row button { min-height:29px; border:1px solid #ead9d9; border-radius:7px; padding:0 10px; color:#9a5a61; background:#fff7f7; font-size:9px; }
.mcp-token-once { margin-top:12px; border:1px solid #d7e5ed; border-radius:9px; padding:11px; background:#f4f9fb; }
.mcp-token-once > strong { display:block; margin-bottom:8px; color:#34677f; font-size:10px; }
.mcp-token-once > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.mcp-token-once input { min-width:0; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:9px; }

/* V28 compatibility: stop the legacy V2 sage/forest palette leaking through. */
.composer-box:focus-within { border-color:rgba(83,192,214,.82); background:#fff; box-shadow:0 10px 28px rgba(35,93,124,.1),0 0 0 3px rgba(83,192,214,.08); }
.scope-controls .hy-select-menu button { color:#435269; }
.scope-controls .hy-select-menu button:hover,.scope-controls .hy-select-menu button:focus-visible { color:#244b68; background:#f1f7fa; }
.scope-controls .hy-select-menu button[aria-selected="true"] { color:#256d68; background:#eaf7f4; }
.scope-controls .hy-select-menu button[aria-selected="true"] > i { color:#318d83; }

.markdown-demo .table-pager { color:#7d8998; background:#f7f9fc; }
.markdown-demo .table-pager select,.markdown-demo .table-pager button { border-color:#dce5ed; color:#4a7385; background:#fff; }
.markdown-demo .table-pager button:hover:not(:disabled) { border-color:rgba(83,192,214,.6); color:#255b68; background:#f3f9fb; }

.logic-lane { border-color:#dfe7ee; background:rgba(255,255,255,.82); }
.logic-lane header { border-bottom-color:#e7ecf1; color:#53647a; }
.logic-lane header i { background:#53c0d6; box-shadow:0 0 0 4px rgba(83,192,214,.11); }
.logic-lane .logic-node { border-color:#dce5ec; color:#42566c; box-shadow:0 5px 13px rgba(34,61,96,.04); }
.logic-lane .logic-arrow { color:#6da7b2; }
.logic-lane.tone-positive header { color:#26755e; background:#f1faf7; }
.logic-lane.tone-positive header i { background:#3fb692; box-shadow:0 0 0 4px rgba(63,182,146,.12); }
.logic-lane.tone-positive .logic-node { border-color:#cfe5dc; background:#f5fbf8; }
.logic-lane.tone-positive .logic-arrow { color:#57a795; }
.logic-lane.tone-risk header { color:#99575e; background:#fff8f8; }
.logic-lane.tone-risk header i { background:#c9727b; box-shadow:0 0 0 4px rgba(201,114,123,.12); }
.logic-lane.tone-risk .logic-node { border-color:#ead8d9; background:#fff8f8; }
.logic-lane.tone-risk .logic-arrow { color:#bf8188; }
.structure-label,.structure-row strong,.metric-bar-label,.metric-bar-row strong { color:#53647a; }
.structure-bar,.metric-bar-track { background:#e7edf2; box-shadow:inset 0 1px 2px rgba(34,61,96,.055); }
.structure-bar i { background:linear-gradient(90deg,#3da5ba,#69c9dc); }
.structure-row.is-primary .structure-bar i { background:linear-gradient(90deg,#3fb692,#65c7aa 58%,#53c0d6); }
.structure-row.is-primary strong { color:#256d68; }
.metric-bar-track i { background:linear-gradient(90deg,#53a9bd,#72c8d8); }
.metric-bar-row.is-primary .metric-bar-track i { background:linear-gradient(90deg,#524e9e,#7773ba 55%,#53c0d6); }
.metric-bar-row.is-empty .metric-bar-track::after { background:#cfd9e3; }
.tree-root { border-color:rgba(83,192,214,.5); color:#225d68; background:linear-gradient(145deg,#f6fcfa,#edf7f8); box-shadow:0 7px 17px rgba(34,84,108,.07); }
.tree-children { border-top-color:#cad8df; }
.tree-children::before,.tree-branch::before { border-left-color:#cad8df; }
.tree-node.tone-positive { border-color:#cfe5dc; color:#2b765f; background:#f5fbf8; }
.tree-node.tone-risk { border-color:#ead8d9; color:#99575e; background:#fff8f8; }

.cli-maintenance { border-color:#dfe6ee; background:radial-gradient(circle at 100% 0,rgba(83,192,214,.11),transparent 36%),linear-gradient(145deg,#fbfdfe,#f3f7fa); }
.cli-maintenance > header span { color:#8793a3; }
.cli-maintenance > header strong { color:#34465f; }
.cli-maintenance > header i { color:#347f98; background:#e5f4f8; }
.cli-version-row p { border-color:#e1e7ee; background:rgba(255,255,255,.86); }
.cli-version-row p span,.cli-version-row > b,.cli-admin-note { color:#8b96a5; }
.cli-version-row p strong { color:#3b4a61; }
.cli-update-message,.cli-auto-row strong,.cli-auto-row small { color:#66758a; }
.cli-auto-row { border-top-color:#e1e7ee; }
.switch span { background:#cfd9e3; }
.switch span::after { box-shadow:0 2px 5px rgba(30,55,86,.18); }
.switch input:checked + span { background:linear-gradient(90deg,#53c0d6,#7773ba); }
.switch input:focus-visible + span { box-shadow:0 0 0 3px rgba(83,192,214,.22); }
.fastmoss-mcp-row p {
  border-color:#dfe7ef;
  background:linear-gradient(145deg,#fbfdff,#f2f7fb);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.82);
}
.fastmoss-mcp-row span { color:#8793a3; }
.fastmoss-mcp-row strong { color:#3b4a61; }
.fastmoss-maintenance .cli-auto-row {
  border-top-color:#dfe7ef;
  background:linear-gradient(90deg,rgba(83,192,214,.035),rgba(119,115,186,.035));
}
.video-source-maintenance .fastmoss-mcp-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
.video-source-maintenance .cli-auto-row {
  border-top-color:#dfe7ef;
  background:linear-gradient(90deg,rgba(83,192,214,.035),rgba(119,115,186,.035));
}
.video-source-maintenance .cli-update-actions { grid-template-columns:minmax(0,1fr); }
.video-source-maintenance #videoSourcePhase[data-phase="trusted"] { color:#286f67; background:#e4f4f1; }
.video-source-maintenance #videoSourcePhase[data-phase="delayed"] { color:#8a682b; background:#f7efd9; }
.video-source-maintenance #videoSourcePhase[data-phase="anomalous"],
.video-source-maintenance #videoSourcePhase[data-phase="unavailable"] { color:#97584e; background:#fff0ec; }
.video-source-maintenance #videoSourcePhase[data-phase="verifying"] { color:#426a79; background:#e9f1f3; }
.cli-update-actions button,.cli-update-dialog footer button { border-color:#dce5ed; color:#53677a; background:#fff; }
.cli-update-actions button.primary,.cli-update-dialog footer button.primary { border-color:var(--navy); color:#fff; background:var(--navy); }

.member-dialog,.history-dialog,.memory-dialog,.cli-update-dialog,.quick-input-dialog,.workspace-config-dialog,.agent-update-dialog { border-color:#dfe6ee; color:#253851; background:#f8fafc; box-shadow:0 30px 90px rgba(7,22,47,.25); }
.dialog-intro,.member-form-actions small,.history-row small,.history-row > em,.memory-row small,.quick-input-dialog form > footer small,.workspace-preferences label { color:#8490a1; }
.member-row,.member-create,.identity-row,.history-row,.memory-create,.memory-row { border-color:#dfe6ee; background:#fff; }
.member-row > i { background:linear-gradient(145deg,#1b385e,#3a8d99 62%,#524e9e); }
.member-row > em,.identity-row > i,.history-row > em b,.memory-row > i { color:#347f98; background:#e8f4f7; }
.member-row-actions button,.identity-actions button,.member-dialog > footer button.neutral,.member-dialog-scroll > footer button.neutral { border-color:#dce5ed; color:#53677a; background:#fff; }
.identity-row.default { border-color:rgba(83,192,214,.68); box-shadow:inset 3px 0 0 var(--cyan); }
.history-row { color:#35465f; }
.history-row:hover { border-color:rgba(83,192,214,.6); box-shadow:0 8px 20px rgba(31,67,102,.07); }
.history-row.active { border-color:rgba(83,192,214,.75); background:#f1f8fa; box-shadow:inset 3px 0 0 var(--cyan); }
.history-empty { border-color:#d8e2ec; color:#8994a3; background:#fff; }
.memory-status-grid p { border-color:#e4eaf0; background:#f6f8fb; }
.memory-status-grid span { color:#8b95a4; }
.memory-status-grid strong,.memory-row strong { color:#3b4a61; }
.member-create input,.memory-create input,.quick-input-dialog input,.quick-input-dialog select,.workspace-editor-row input[type="text"],.workspace-editor-row textarea,.workspace-editor-row input[type="number"] { border-color:#dbe4ed; color:#263a56; background:#fbfcfe; }
.member-create input:focus,.memory-create input:focus,.quick-input-dialog input:focus,.quick-input-dialog select:focus,.workspace-editor-row input:focus,.workspace-editor-row textarea:focus { border-color:rgba(83,192,214,.8); background:#fff; box-shadow:0 0 0 3px rgba(83,192,214,.09); }
.quick-input-dialog label > span { color:#536176; }
.quick-input-chips button { border-color:#dce5ed; color:#53677a; background:#f7f9fc; }
.quick-input-chips button:hover { border-color:rgba(83,192,214,.62); color:#255b68; background:#f1f8fa; }
.quick-input-campaign-tools small { color:#8490a1; }
.quick-input-campaign-tools button { border-color:#dce5ed; color:#53677a; background:#fff; }
.quick-input-campaign-tools button:hover:not(:disabled) { border-color:rgba(83,192,214,.62); color:#255b68; background:#f3f9fb; }
.workspace-preferences { border-color:#e1e8ef; background:#f7f9fc; }
.workspace-preferences select { border-color:#d8e2ec; color:#29435d; background:#fff; }
.workspace-editor-group > header i { background:linear-gradient(145deg,#3a8d99,#524e9e); }
.workspace-editor-row { border-top-color:#e7ecf1; }
dialog button:focus-visible { outline-color:rgba(83,192,214,.38); }

.quick-actions-card > .section-title,.runtime-explainer-card > .section-title,.memory-status-card > .section-title { min-height:24px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.section-title > span { color:#263851; font-size:12px; font-weight:700; }
.section-title > button { border:0; color:#61728a; background:transparent; font-size:10px; }
.quick-action-tabs { display:grid; grid-template-columns:repeat(3,1fr); gap:3px; margin:9px 0 12px; border-radius:7px; padding:3px; background:#f2f5f8; }
.quick-action-tabs button { min-height:30px; border:0; border-radius:5px; padding:0 4px; color:#8691a2; background:transparent; font-size:9px; }
.quick-action-tabs button.active { color:#273854; background:#fff; box-shadow:0 2px 7px rgba(30,52,82,.07); }
.quick-action-tabs button:disabled,.quick-action-group button:disabled { opacity:.72; color:#7c8999; }
.workflow-guide { margin:0 0 16px; border:1px solid #e0e8f0; border-radius:9px; color:#536b84; background:#f9fbfe; }
.workflow-guide > summary { display:grid; grid-template-columns:16px minmax(0,1fr) 7px; align-items:center; gap:10px; min-height:54px; padding:11px 12px; list-style:none; cursor:pointer; border-radius:8px; transition:background-color .16s ease; }
.workflow-guide > summary::-webkit-details-marker { display:none; }
.workflow-guide > summary:hover { background:#f2f6fc; }
.workflow-guide > summary:focus-visible { outline:2px solid #91bcd5; outline-offset:3px; }
.workflow-guide-icon { color:#7290aa; }
.workflow-guide > summary strong { display:block; color:#405875; font-size:11px; font-weight:600; line-height:1.5; }
.workflow-guide > summary small { display:block; margin-top:3px; color:#7d8da1; font-size:10px; line-height:1.6; overflow-wrap:anywhere; }
.workflow-guide-chevron { width:6px; height:6px; border-right:1px solid #8497ab; border-bottom:1px solid #8497ab; transform:translateY(-2px) rotate(45deg); transition:transform .16s ease; }
.workflow-guide[open] .workflow-guide-chevron { transform:translateY(2px) rotate(225deg); }
.workflow-guide-body { border-top:1px solid #e5ecf3; padding:12px 14px; overflow-wrap:anywhere; }
.workflow-guide-body ol { display:grid; gap:12px; margin:0; padding-left:19px; }
.workflow-guide-body li::marker { color:#8195ad; font-size:10px; }
.workflow-guide-body strong { color:#405875; font-size:11px; font-weight:600; line-height:1.6; }
.workflow-guide-body li p { margin:3px 0 0; color:#6b7e96; font-size:11px; line-height:1.8; }
.workflow-guide-note { margin:12px 0 0; padding-top:10px; border-top:1px solid #e5ecf3; color:#7d8da1; font-size:10px; line-height:1.7; }
@media (prefers-reduced-motion:reduce) { .workflow-guide > summary,.workflow-guide-chevron { transition:none; } }
.workflow-published-group > div { grid-template-columns:1fr; }
.workflow-published-group button { min-height:48px; }
.workflow-published-group button > span { display:block; min-width:0; white-space:normal; }
.workflow-published-group button strong,.workflow-published-group button small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.workflow-published-group button small { margin-top:3px; color:#8592a2; font-size:7px; font-weight:500; }
.workflow-empty { grid-column:1/-1; margin:0; border:1px dashed #dbe4eb; border-radius:8px; padding:12px; color:#7d8b9d; background:#fbfcfd; font-size:8px; line-height:1.65; }
.runtime-explainer-card .runtime-flow { display:grid; gap:8px; margin:9px 0 0; padding:0; list-style:none; }
.runtime-flow li { display:grid; grid-template-columns:22px minmax(0,1fr); align-items:center; gap:8px; }
.runtime-flow li > b { width:22px; height:22px; display:grid; place-items:center; border-radius:50%; color:#357d75; background:#e8f6f3; font-size:8px; }
.runtime-flow strong,.runtime-flow small { display:block; }
.runtime-flow strong { color:#44576c; font-size:9px; }
.runtime-flow small { margin-top:3px; color:#8b97a6; font-size:8px; }
.boundary-list p { display:flex; align-items:center; gap:8px; margin:10px 0 0; color:#5e6c81; font-size:10px; }
.boundary-list .check { width:16px; height:16px; display:grid; place-items:center; border-radius:50%; color:#229b72; background:#e6f7f0; font-size:7px; font-style:normal; }
.memory-status-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; margin-top:9px; }
.memory-status-grid p { margin:0; border-radius:6px; padding:8px 5px; background:#f6f8fb; text-align:center; }
.memory-status-grid span,.memory-status-grid strong { display:block; }
.memory-status-grid span { color:#8b95a4; font-size:8px; }
.memory-status-grid strong { margin-top:5px; color:#3b4a61; font-size:9px; }

dialog { color:#253851; }
dialog::backdrop { background:rgba(7,18,40,.42); backdrop-filter:blur(7px); }
.dialog-head { color:#fff; background:radial-gradient(circle at 90% 0,rgba(83,192,214,.28),transparent 32%),linear-gradient(135deg,#0d294f,#101c38 66%,#2f326f); }
.dialog-head span { color:#91bdd0; }
.dialog-head button { color:#fff; border-color:rgba(255,255,255,.16); background:rgba(255,255,255,.08); }
.member-dialog-scroll { scrollbar-color:rgba(126,149,168,.62) transparent; }
.member-dialog-scroll::-webkit-scrollbar { width:9px; }
.member-dialog-scroll::-webkit-scrollbar-track { background:transparent; }
.member-dialog-scroll::-webkit-scrollbar-thumb { border:2px solid transparent; border-radius:99px; background:rgba(126,149,168,.62); background-clip:padding-box; }
.member-dialog-scroll::-webkit-scrollbar-thumb:hover { background:rgba(82,111,136,.78); background-clip:padding-box; }
.member-create button,.memory-create button,.member-dialog-footer > button,.cli-update-dialog .primary,.quick-input-dialog .primary,.workspace-config-dialog .primary,.agent-update-dialog .primary { background:var(--navy); }

@media (max-width:1180px) {
  .scope-controls .hy-select { min-width:132px; max-width:180px; }
  .scope-controls .device-picker { display:none; }
}
@container chat (max-width:1000px) {
  .agent-meta .low-priority-meta { display:none; }
  .agent-meta > span { max-width:104px; }
}
@container chat (max-width:760px) {
  .view-switch { display:none; }
  .agent-identity { min-width:174px; }
}
@media (min-width:1800px) {
  .quick-action-group button { min-height:38px; font-size:10px; }
  .quick-action-tabs button { min-height:33px; font-size:10px; }
  .runtime-flow strong,.memory-status-grid strong { font-size:10px; }
  .runtime-flow small,.memory-status-grid span { font-size:9px; }
}
@media (max-width:920px) {
  .conversation > .message { margin-inline:16px; }
}
@media (max-width:640px) {
  .scope-controls .hy-select { min-width:96px; max-width:112px; }
  .quick-action-tabs { grid-template-columns:repeat(2,1fr); }
}

/* Final V28 isolation layer. These selectors intentionally outrank the
   retained V2.1 foundation so its forest/sage palette cannot leak through. */
html:not(.ui-v31) body #app.app-shell { background:#eef3f8; }
html:not(.ui-v31) .sidebar::before { content:none; }
html:not(.ui-v31) .sidebar nav.primary-nav button { color:#b9cbe0; background:transparent; box-shadow:none; }
html:not(.ui-v31) .sidebar nav.primary-nav button:hover { color:#e2edf7; background:rgba(255,255,255,.045); }
html:not(.ui-v31) .sidebar nav.primary-nav button.active { color:#fff; border-color:rgba(83,192,214,.14); background:linear-gradient(90deg,rgba(83,192,214,.105),rgba(117,113,186,.045)); box-shadow:0 8px 20px rgba(0,8,24,.13); }
html:not(.ui-v31) .sidebar nav.primary-nav button > i { background:transparent; box-shadow:none; }
html:not(.ui-v31) .sidebar nav.primary-nav button.active > i { background:var(--cyan); box-shadow:0 0 0 4px rgba(83,192,214,.09); }
html:not(.ui-v31) .sidebar nav.primary-nav button:disabled { color:#7890aa; opacity:.48; }
html:not(.ui-v31) .sidebar nav.primary-nav button:disabled > i { background:rgba(83,192,214,.34); box-shadow:0 0 0 4px rgba(83,192,214,.055); }

html:not(.ui-v31) .agent-meta button b { display:inline; min-width:0; height:auto; margin-left:3px; border-radius:0; padding:0; color:var(--violet); background:transparent; font-size:inherit; }
html:not(.ui-v31) .eyebrow { color:#74869f !important; }
html:not(.ui-v31) .section-title { color:#263851; }
html:not(.ui-v31) .agent-channel-row > label,
html:not(.ui-v31) .agent-channel-row .switch-row { color:#66758a; }
html:not(.ui-v31) .form-error.success { color:#26755e; background:#eef8f5; }

html:not(.ui-v31) .hy-select { color:#435269; }
html:not(.ui-v31) .native-select-control { border-color:#dce3ec !important; color:#49566b; background:#fff; }
html:not(.ui-v31) .hy-select-trigger { border-color:#dce3ec; color:#49566b; background:linear-gradient(180deg,#fff,#f8fafc); box-shadow:0 1px 2px rgba(31,56,87,.04); }
html:not(.ui-v31) .hy-select-trigger > i { background:#eef3f7; }
html:not(.ui-v31) .hy-select-trigger > i::before { border-right-color:#667b8f; border-bottom-color:#667b8f; }
html:not(.ui-v31) .hy-select.open .hy-select-trigger { border-color:rgba(83,192,214,.8); background:#fff; box-shadow:0 0 0 3px rgba(83,192,214,.09); }
html:not(.ui-v31) .hy-select.open .hy-select-trigger > i { background:#e8f4f7; }
html:not(.ui-v31) .hy-select-trigger:disabled { color:#8b96a5; background:#f3f6f9; }
html:not(.ui-v31) .hy-select-menu { border-color:#dce5ed; color:#435269; background:rgba(255,255,255,.98); box-shadow:0 16px 40px rgba(17,40,71,.14),0 3px 10px rgba(17,40,71,.05); }
html:not(.ui-v31) .hy-select-menu button { color:#435269; }
html:not(.ui-v31) .hy-select-menu button:hover,
html:not(.ui-v31) .hy-select-menu button:focus-visible { color:#244b68; background:#f1f7fa; }
html:not(.ui-v31) .hy-select-menu button[aria-selected="true"] { color:#256d68; background:#eaf7f4; }
html:not(.ui-v31) .hy-select-menu button[aria-selected="true"] > i { color:#318d83; }

/* The memory form's primary-button rule also matches the enhanced select's
   option buttons in the V2.1 foundation. Isolate this menu so it keeps the
   light Aurora treatment instead of inheriting solid navy rows. */
html:not(.ui-v31) .memory-create .hy-select { position:relative; z-index:12; }
html:not(.ui-v31) .memory-create .hy-select-menu {
  right:auto;
  left:0;
  width:100%;
  min-width:100%;
  max-width:none;
  max-height:168px;
  z-index:260;
  padding:5px;
  border-color:#dce6ef;
  border-radius:10px;
  background:rgba(255,255,255,.99);
  box-shadow:0 14px 32px rgba(17,40,71,.14),0 3px 9px rgba(17,40,71,.05);
  backdrop-filter:blur(14px);
}
html:not(.ui-v31) .memory-create .hy-select-menu button,
html:not(.ui-v31) .memory-create .hy-select-menu button:hover,
html:not(.ui-v31) .memory-create .hy-select-menu button:focus-visible,
html:not(.ui-v31) .memory-create .hy-select-menu button:active {
  min-height:32px;
  border:0;
  border-radius:7px;
  padding:6px 8px 6px 9px;
  color:#52657a;
  background:transparent;
  box-shadow:none;
  transform:none;
  font-size:9px;
  font-weight:500;
}
html:not(.ui-v31) .memory-create .hy-select-menu button:hover,
html:not(.ui-v31) .memory-create .hy-select-menu button:focus-visible {
  color:#315c73;
  background:#f1f7fa;
  outline:0;
}
html:not(.ui-v31) .memory-create .hy-select-menu button[aria-selected="true"] {
  color:#2f6078;
  background:#eaf4f8;
  font-weight:680;
}
html:not(.ui-v31) .memory-create .hy-select-menu button[aria-selected="true"] > i { color:#4f8fa8; }
html:not(.ui-v31) .memory-create .hy-select-menu button:disabled {
  color:#9ca7b4;
  background:transparent;
  opacity:.62;
}

html:not(.ui-v31) .login-card > .login-intro { margin:0 0 27px; }
html:not(.ui-v31) .login-card .login-field { display:grid; gap:8px; margin-top:16px; }
html:not(.ui-v31) .login-card .password-field input { min-height:0; border:0; border-radius:0; padding:0 13px; background:transparent; box-shadow:none; }
html:not(.ui-v31) .login-card .login-options label { display:flex; gap:6px; margin:0; font-weight:400; }
html:not(.ui-v31) .login-card .login-options input { width:13px; min-height:0; height:13px; padding:0; border-radius:0; box-shadow:none; }
html:not(.ui-v31) .login-card > .login-submit { height:48px; min-height:48px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
html:not(.ui-v31) .login-card > .login-submit b { float:none; }
html:not(.ui-v31) .login-spinner { display:inline-block; }

html:not(.ui-v31) .quick-actions-card .quick-action-group button:not(:disabled):hover,
html:not(.ui-v31) .quick-actions-card .quick-action-group button:not(:disabled):focus-visible { border-color:rgba(83,192,214,.65); color:#255b68; background:#fff; box-shadow:0 6px 14px rgba(37,74,94,.06); }
html:not(.ui-v31) .quick-actions-card .quick-action-group button:not(:disabled):active { border-color:rgba(83,192,214,.72); color:#255b68; background:#fff; box-shadow:0 3px 9px rgba(37,74,94,.045); }
html:not(.ui-v31) .quick-actions-card .quick-action-group button:not(:disabled):hover b,
html:not(.ui-v31) .quick-actions-card .quick-action-group button:not(:disabled):focus-visible b { color:#5b91a3; }
html:not(.ui-v31) .quick-actions-card .quick-action-group button:disabled,
html:not(.ui-v31) .quick-actions-card .quick-action-group button:disabled:hover,
html:not(.ui-v31) .quick-actions-card .quick-action-group button:disabled:focus,
html:not(.ui-v31) .quick-actions-card .quick-action-group button:disabled:active {
  border-color:#e0e7ed;
  color:#7c8999;
  background:#f6f8fb;
  box-shadow:none;
  transform:none;
  opacity:.72;
}
html:not(.ui-v31) .quick-actions-card button:focus-visible,
html:not(.ui-v31) .quick-action-tabs button:focus-visible { outline:3px solid rgba(83,192,214,.3); outline-offset:2px; }

/* Keep every V2.1 modal on the V28 prototype shell. The foundation stylesheet
   still contains the retired forest-green modal theme, so this final layer is
   deliberately complete rather than relying on per-dialog partial overrides. */
html:not(.ui-v31) :is(
  .ads-dialog,
  .member-dialog,
  .history-dialog,
  .memory-dialog,
  .cli-update-dialog,
  .quick-input-dialog,
  .workspace-config-dialog,
  .agent-update-dialog
) {
  border-color:#dfe6ee;
  color:#253851;
  background:#f8fafc;
  box-shadow:0 30px 90px rgba(7,22,47,.25);
  scrollbar-width:thin;
  scrollbar-color:rgba(126,149,168,.62) transparent;
  scrollbar-gutter:stable;
}
html:not(.ui-v31) :is(
  .ads-dialog,
  .member-dialog,
  .history-dialog,
  .memory-dialog,
  .cli-update-dialog,
  .quick-input-dialog,
  .workspace-config-dialog,
  .agent-update-dialog
)::backdrop { background:rgba(7,18,40,.42); backdrop-filter:blur(7px); }
html:not(.ui-v31) #memberDialog { scrollbar-gutter:auto; }
html:not(.ui-v31) :is(
  dialog,
  .member-dialog-scroll,
  .workspace-action-editor,
  .table-scroll,
  .ads-store-list
)::-webkit-scrollbar { width:9px; height:9px; }
html:not(.ui-v31) :is(
  dialog,
  .member-dialog-scroll,
  .workspace-action-editor,
  .table-scroll,
  .ads-store-list
)::-webkit-scrollbar-track,
html:not(.ui-v31) :is(
  dialog,
  .member-dialog-scroll,
  .workspace-action-editor,
  .table-scroll,
  .ads-store-list
)::-webkit-scrollbar-corner { background:transparent; }
html:not(.ui-v31) :is(
  dialog,
  .member-dialog-scroll,
  .workspace-action-editor,
  .table-scroll,
  .ads-store-list
)::-webkit-scrollbar-thumb {
  border:2px solid transparent;
  border-radius:99px;
  background:rgba(126,149,168,.62);
  background-clip:padding-box;
}
html:not(.ui-v31) :is(
  dialog,
  .member-dialog-scroll,
  .workspace-action-editor,
  .table-scroll,
  .ads-store-list
)::-webkit-scrollbar-thumb:hover { background:rgba(82,111,136,.78); background-clip:padding-box; }

/* Dialogs whose whole surface scrolls need the sticky title bar to cover the
   scrollbar gutter. The account dialog already owns a dedicated inner scroller. */
html:not(.ui-v31) dialog:not(#memberDialog) > .dialog-head {
  margin-right:-9px;
  padding-right:33px;
}
html:not(.ui-v31) .ads-dialog > .dialog-head {
  margin-top:0;
  margin-left:0;
  border-radius:0;
}
html:not(.ui-v31) .ads-dialog > :is(.dialog-intro,section,form) {
  margin-right:24px;
  margin-left:24px;
}
html:not(.ui-v31) .ads-dialog > .dialog-intro { color:#8490a1; }
html:not(.ui-v31) .ads-dialog > :is(section,form) {
  border-color:#dfe6ee;
  background:#fff;
  box-shadow:0 8px 24px rgba(31,67,102,.035);
}

html:not(.ui-v31) :is(
  .member-create label,
  .memory-create label,
  .quick-input-dialog label,
  .workspace-preferences label,
  .ads-dialog label
) { color:#536176; }
html:not(.ui-v31) :is(
  .member-create input,
  .memory-create input,
  .memory-create select,
  .quick-input-dialog input,
  .quick-input-dialog select,
  .workspace-preferences select,
  .workspace-editor-row input[type="text"],
  .workspace-editor-row input[type="number"],
  .workspace-editor-row textarea,
  .ads-dialog input,
  .ads-dialog select
) {
  border-color:#dbe4ed;
  color:#263a56;
  background:#fbfcfe;
}
html:not(.ui-v31) :is(
  .member-create input,
  .memory-create input,
  .memory-create select,
  .quick-input-dialog input,
  .quick-input-dialog select,
  .workspace-preferences select,
  .workspace-editor-row input[type="text"],
  .workspace-editor-row input[type="number"],
  .workspace-editor-row textarea,
  .ads-dialog input,
  .ads-dialog select
):focus {
  border-color:rgba(83,192,214,.8);
  outline:0;
  background:#fff;
  box-shadow:0 0 0 3px rgba(83,192,214,.09);
}

html:not(.ui-v31) .fastmoss-settings-head span { color:#63889a; }
html:not(.ui-v31) .fastmoss-settings-head i.ready { color:#347f98; background:#e8f4f7; }
html:not(.ui-v31) .member-row.inactive { background:#f5f7fa; }
html:not(.ui-v31) .memory-row > i { color:#347f98; background:#e8f4f7; }
html:not(.ui-v31) .cli-update-confirm > p { color:#66758a; }
html:not(.ui-v31) .cli-update-confirm > div span { border-color:#dfe6ee; color:#354b65; background:#f6f8fb; }
html:not(.ui-v31) .cli-update-confirm > div b,
html:not(.ui-v31) .cli-update-confirm > small { color:#8793a3; }

html:not(.ui-v31) :is(
  .member-row-actions button:not(.danger),
  .identity-actions button:not(.danger),
  .member-dialog-footer button.neutral,
  .cli-update-actions button:not(.primary),
  .cli-update-dialog footer button:not(.primary),
  .quick-input-chips button,
  .workspace-config-dialog footer button:not(.primary),
  .agent-update-dialog footer button:not(.primary),
  .ads-dialog button.secondary
) {
  border:1px solid #dce5ed;
  color:#53677a;
  background:#fff;
}
html:not(.ui-v31) :is(
  .member-row-actions button:not(.danger),
  .identity-actions button:not(.danger),
  .member-dialog-footer button.neutral,
  .cli-update-actions button:not(.primary),
  .cli-update-dialog footer button:not(.primary),
  .quick-input-chips button,
  .workspace-config-dialog footer button:not(.primary),
  .agent-update-dialog footer button:not(.primary),
  .ads-dialog button.secondary
):hover {
  border-color:rgba(83,192,214,.62);
  color:#255b68;
  background:#f3f9fb;
  box-shadow:0 6px 14px rgba(37,74,94,.05);
}
html:not(.ui-v31) :is(
  .member-create button[type="submit"],
  .memory-create button[type="submit"],
  .cli-update-actions button.primary,
  .cli-update-dialog footer button.primary,
  .quick-input-dialog button.primary,
  .workspace-config-dialog button.primary,
  .agent-update-dialog button.primary,
  .ads-dialog button[type="submit"],
  .ads-dialog .ads-auth-actions button:not(.secondary)
) {
  border-color:var(--navy);
  color:#fff;
  background:var(--navy);
}
html:not(.ui-v31) :is(
  .member-create button[type="submit"],
  .memory-create button[type="submit"],
  .cli-update-actions button.primary,
  .cli-update-dialog footer button.primary,
  .quick-input-dialog button.primary,
  .workspace-config-dialog button.primary,
  .agent-update-dialog button.primary,
  .ads-dialog button[type="submit"],
  .ads-dialog .ads-auth-actions button:not(.secondary)
):hover {
  border-color:#18385d;
  background:#18385d;
  box-shadow:0 8px 18px rgba(13,41,79,.14);
}

/* Final answer-content isolation. Markdown and generated diagrams are produced
   at runtime, so explicitly neutralize every remaining sage/forest treatment
   inherited from the V2.1 foundation. Risk red remains semantic. */
html:not(.ui-v31) .message.assistant .markdown-demo :not(pre) > code {
  border:1px solid #dce6ef;
  color:#3e5671;
  background:#edf3f7;
}
html:not(.ui-v31) .message.assistant .markdown-demo blockquote {
  border-left-color:#53c0d6;
  color:#4c6474;
  background:linear-gradient(90deg,rgba(83,192,214,.12),rgba(82,78,158,.035),transparent);
}
html:not(.ui-v31) .message.assistant .suggestions button:hover,
html:not(.ui-v31) .message.assistant .suggestions button:focus-visible {
  border-color:rgba(83,192,214,.65);
  color:#255b68;
  background:#f3f8fb;
}
/* Keep actions visible when the per-turn diagnostics are expanded. The action
   row is rendered before this panel; this compact V28 treatment also removes
   the sage palette inherited from the V2.1 foundation. */
html:not(.ui-v31) .message.assistant .run-summary {
  margin-top:10px;
  border-color:#dce6ef;
  color:#61748a;
  background:linear-gradient(145deg,rgba(251,253,255,.97),rgba(241,247,251,.97));
  box-shadow:0 6px 18px rgba(31,67,102,.04);
}
html:not(.ui-v31) .message.assistant .run-summary summary {
  min-height:30px;
  padding:7px 10px;
}
html:not(.ui-v31) .message.assistant .run-summary summary::before { color:#4f8fa8; }
html:not(.ui-v31) .message.assistant .run-summary summary span { color:#344b65; }
html:not(.ui-v31) .message.assistant .run-summary summary small { color:#8492a3; }
html:not(.ui-v31) .message.assistant .run-summary > div {
  max-height:132px;
  overflow:auto;
  border-top:1px solid #e4ebf1;
  padding-top:4px;
  scrollbar-color:rgba(104,133,157,.48) transparent;
  scrollbar-width:thin;
}
html:not(.ui-v31) .message.assistant .run-summary > div::-webkit-scrollbar { width:6px; }
html:not(.ui-v31) .message.assistant .run-summary > div::-webkit-scrollbar-track { background:transparent; }
html:not(.ui-v31) .message.assistant .run-summary > div::-webkit-scrollbar-thumb {
  border:1px solid transparent;
  border-radius:99px;
  background:rgba(104,133,157,.48);
  background-clip:padding-box;
}
html:not(.ui-v31) .message.assistant .run-summary p { border-bottom-color:#e8edf2; }
html:not(.ui-v31) .message.assistant .run-summary p span { color:#8492a3; }
html:not(.ui-v31) .message.assistant .run-summary p b { color:#415a76; }
html:not(.ui-v31) .message.assistant .chart-row b.green,
html:not(.ui-v31) .message.assistant .structure-row.is-primary .structure-bar i {
  background:linear-gradient(90deg,#4b78ad,#53c0d6);
}
html:not(.ui-v31) .message.assistant .structure-row.is-primary strong {
  color:#405f86;
}
html:not(.ui-v31) .message.assistant .logic-lane.tone-positive header {
  color:#347f98;
  background:#f0f7fa;
}
html:not(.ui-v31) .message.assistant .logic-lane.tone-positive header i {
  background:#53a9bd;
  box-shadow:0 0 0 4px rgba(83,169,189,.12);
}
html:not(.ui-v31) .message.assistant .logic-lane.tone-positive .logic-node,
html:not(.ui-v31) .message.assistant .tree-node.tone-positive {
  border-color:#cfe2e9;
  color:#3f6681;
  background:#f2f8fa;
}
html:not(.ui-v31) .message.assistant .logic-lane.tone-positive .logic-arrow {
  color:#6da7b2;
}

/* Conversation Workbench 2.1 — conversations and scheduled tasks share one
   calm left workspace; infrequent admin services live in account settings. */
.app-shell { --conversation-default-width:272px; grid-template-columns:var(--conversation-width,var(--conversation-default-width)) 10px minmax(0,1fr); }
@media (min-width:921px) {
  html body #app.app-shell { display:grid; }
}
.conversation-workspace {
  position:relative;
  width:auto;
  min-width:0;
  height:100dvh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-right:1px solid #dce5ee;
  padding:18px 14px 14px;
  color:#233750;
  background:linear-gradient(180deg,#fbfdff 0%,#f3f7fb 100%);
  box-shadow:10px 0 34px rgba(31,55,88,.035);
}
.conversation-resize-handle { position:relative; z-index:6; height:100dvh; align-self:start; }
.conversation-workspace::before,.conversation-workspace::after { content:none!important; }
.conversation-workspace-header { min-height:74px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:4px 4px 13px; }
.conversation-workspace-header div > span,.conversation-workspace-header div > strong,.conversation-workspace-header div > small { display:block; }
.conversation-workspace-header div > span { color:#7e91a7; font-size:8px; font-weight:760; letter-spacing:.17em; }
.conversation-workspace-header div > strong { margin-top:6px; color:#18304f; font-size:17px; font-weight:680; letter-spacing:-.02em; }
.conversation-workspace-header div > small { margin-top:5px; color:#8a98a9; font-size:9px; }
.conversation-workspace-header > button { border:0; border-radius:6px; padding:5px 4px; color:#687b92; background:transparent; font-size:10px; transition:color .15s ease,background .15s ease; }
.conversation-workspace-header > button:hover { color:#2f5f7d; background:#edf4f8; }
.sidebar-create-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.conversation-workspace .sidebar-create-actions > button { min-width:0; min-height:39px; display:grid; grid-template-columns:20px minmax(0,1fr); align-items:center; gap:7px; border:1px solid #d8e3ec; border-radius:8px; padding:0 8px; color:#355067; background:rgba(255,255,255,.82); box-shadow:0 4px 12px rgba(32,67,99,.035); text-align:left; transition:border-color .15s ease,color .15s ease,background .15s ease,box-shadow .15s ease,transform .15s ease; }
.conversation-workspace .sidebar-create-actions > button:hover { border-color:#c4d7e3; color:#24475d; background:#fff; box-shadow:0 7px 17px rgba(32,67,99,.065); transform:translateY(-1px); }
.conversation-workspace .sidebar-create-actions > button > i { width:20px; height:20px; display:grid; place-items:center; border-radius:6px; color:#47758d; background:#edf4f7; font-size:12px; font-style:normal; font-weight:560; }
.conversation-workspace .sidebar-create-actions > button > b { min-width:0; overflow:hidden; font-size:10px; font-weight:620; text-overflow:ellipsis; white-space:nowrap; }
.conversation-workspace .sidebar-new-task > i { color:#626f9d; background:#f0f0f8; }
.conversation-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px; margin:11px 0 9px; border:1px solid #e2e8ee; border-radius:8px; padding:3px; background:#f1f4f7; }
.conversation-workspace nav.conversation-tabs button { position:relative; min-width:0; width:100%; height:29px; display:flex; align-items:center; justify-content:center; gap:0; border:0; border-radius:6px; padding:0 24px; overflow:hidden; color:#7d8997; background:transparent; box-shadow:none; font-size:9px; text-align:center; white-space:nowrap; text-overflow:ellipsis; transition:color .12s ease,background .12s ease,box-shadow .12s ease; }
.conversation-workspace nav.conversation-tabs button::before,.conversation-workspace nav.conversation-tabs button::after { content:none!important; display:none!important; }
.conversation-tabs button b { display:inline; min-width:0; height:auto; margin-left:0; border-radius:0; color:#929daa; background:transparent; font-size:8px; font-weight:560; }
.conversation-tabs .workspace-tab-total { position:absolute; right:7px; top:50%; margin:0; color:#929daa; font-size:7px; line-height:1; transform:translateY(-50%); }
.workspace-tab-activity { position:absolute; left:6px; top:50%; min-width:0; display:inline-flex; align-items:center; gap:3px; color:#72899b; font-size:7px; line-height:1; transform:translateY(-50%); }
.workspace-tab-activity[hidden] { display:none!important; }
.workspace-tab-activity-item { min-width:0; display:inline-flex; align-items:center; gap:1px; color:#72899b; }
.workspace-tab-activity-item[hidden] { display:none!important; }
.workspace-tab-activity b { margin:0; color:currentColor!important; background:transparent!important; font-size:7px!important; font-weight:650; line-height:1; }
.workspace-tab-activity-glyph { position:relative; width:8px; height:8px; flex:0 0 8px; border:0; color:inherit; font-style:normal; }
.workspace-tab-activity-glyph > i { display:none; }
.workspace-tab-activity-item[data-state="running"] { color:#4d8fab; }
.workspace-tab-activity-item[data-state="running"] .workspace-tab-activity-glyph > i { position:absolute; height:1px; display:block; border-radius:1px; background:currentColor; }
.workspace-tab-activity-item[data-state="running"] .workspace-tab-activity-glyph > i::after { content:""; position:absolute; right:-1px; top:-1px; width:2px; height:2px; border-top:1px solid currentColor; border-right:1px solid currentColor; transform:rotate(45deg); }
.workspace-tab-activity-item[data-state="running"] .workspace-tab-activity-glyph > i:first-child { top:2px; left:0; width:6px; }
.workspace-tab-activity-item[data-state="running"] .workspace-tab-activity-glyph > i:last-child { top:6px; left:2px; width:4px; opacity:.68; }
.workspace-tab-activity-item[data-state="completed"] { color:#7181a6; }
.workspace-tab-activity-item[data-state="completed"] .workspace-tab-activity-glyph::after { content:""; position:absolute; left:2px; top:0; width:4px; height:7px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(43deg); transform-origin:center; }
.workspace-tab-activity-item[data-state="issue"] { color:#a56d7d; }
.workspace-tab-activity-item[data-state="issue"] .workspace-tab-activity-glyph::before { content:""; position:absolute; top:0; left:4px; width:1px; height:5px; border-radius:1px; background:currentColor; }
.workspace-tab-activity-item[data-state="issue"] .workspace-tab-activity-glyph::after { content:""; position:absolute; left:4px; bottom:0; width:1px; height:1px; border-radius:50%; background:currentColor; }
.conversation-workspace nav.conversation-tabs button.active { color:#2d4056; background:#fff; box-shadow:inset 0 0 0 1px #e2e7ec,0 1px 4px rgba(30,52,82,.04); }
.conversation-workspace nav.conversation-tabs button.active > .workspace-tab-total { color:#738294; background:transparent; }
.conversation-workspace .sidebar-conversation-list { flex:1; gap:2px; margin-top:0; padding:1px 2px 12px 0; scrollbar-color:rgba(113,139,162,.32) transparent; }
.conversation-workspace .sidebar-conversation-list::-webkit-scrollbar-thumb { background:rgba(113,139,162,.32); }
.conversation-group { min-width:0; display:grid; gap:3px; margin-top:9px; }
.conversation-group:first-child { margin-top:2px; }
.conversation-group > header { display:flex; align-items:center; justify-content:space-between; min-height:23px; padding:0 7px; color:#8493a5; font-size:8px; font-weight:720; letter-spacing:.08em; }
.conversation-group > header span { display:flex; align-items:center; gap:6px; }
.conversation-group > header span::before { content:""; width:4px; height:4px; border-radius:50%; background:#a7b5c4; }
.conversation-group.live > header span::before { background:#8297a9; box-shadow:none; }
.conversation-group > header b { color:#a1adba; font-size:8px; font-weight:560; letter-spacing:0; }
.conversation-workspace .sidebar-conversation-item { min-height:44px; grid-template-columns:minmax(0,1fr) 25px; border:1px solid transparent; border-radius:8px; }
.conversation-workspace .sidebar-conversation-row { min-height:42px; grid-template-columns:14px minmax(0,1fr); gap:8px; border:0; border-radius:8px; padding:5px 4px 5px 8px; color:#43566d; background:transparent; transition:background .12s ease,color .12s ease; }
.conversation-workspace .sidebar-conversation-row:hover { color:#2d4257; background:#eef2f5; }
.conversation-workspace .sidebar-conversation-row.active { color:#223a51; border-left:0; border-radius:5px; background:#fff; box-shadow:0 2px 7px rgba(30,52,82,.07); }
.conversation-workspace .sidebar-conversation-row::before,.conversation-workspace .sidebar-conversation-row::after { content:none!important; display:none!important; }
.conversation-workspace .sidebar-conversation-row > span,.conversation-workspace .sidebar-conversation-row strong,.conversation-workspace .sidebar-conversation-row small { min-width:0; display:block; }
.conversation-workspace .sidebar-conversation-row strong { color:inherit; font-size:11px; font-weight:570; }
.conversation-workspace .sidebar-conversation-row small { margin-top:3px; overflow:hidden; color:#8a98a9; font-size:9px; white-space:nowrap; text-overflow:ellipsis; }
.conversation-workspace .sidebar-conversation-more { width:24px; height:30px; grid-template:1fr / 1fr; place-items:center; padding:0; color:#8a99aa; font-size:0; line-height:0; }
.conversation-workspace .sidebar-conversation-more::before { content:""; grid-area:1 / 1; place-self:center; width:2px; height:2px; display:block; border-radius:50%; background:currentColor; box-shadow:-4px 0 0 currentColor,4px 0 0 currentColor; }
.conversation-workspace .sidebar-conversation-more:hover { color:#3d5268; background:#edf1f4; }
.conversation-workspace .conversation-pin { margin-right:5px; }
.conversation-workspace .conversation-status-mark { width:12px; height:12px; display:grid; place-items:center; justify-self:center; }
.conversation-status-mark > i { width:7px; height:7px; border-radius:50%; background:#a9b6c3; opacity:0; }
.status-awaiting_selection .conversation-status-mark > i,.status-awaiting_approval .conversation-status-mark > i { opacity:1; background:#d1a35f; box-shadow:0 0 0 3px rgba(209,163,95,.13); }
.status-completed .conversation-status-mark > i { opacity:1; background:#91a0ae; }
.status-failed .conversation-status-mark > i { opacity:1; background:#bd8499; }
.status-cancelled .conversation-status-mark > i { width:8px; height:2px; border-radius:2px; opacity:1; background:#9cabb9; }
.conversation-status-chase { position:relative; width:10px; height:10px; display:none; }
.status-running .conversation-status-chase { display:block; }
.status-running .conversation-status-mark > i { display:none; }
.conversation-status-chase i { position:absolute; width:2px; height:2px; border-radius:50%; background:#7895aa; animation:auroraStateChase 1s linear infinite; }
.conversation-status-chase i:nth-child(1){left:4px;top:0;animation-delay:-1000ms}.conversation-status-chase i:nth-child(2){left:6.8px;top:1.2px;animation-delay:-875ms}.conversation-status-chase i:nth-child(3){left:8px;top:4px;animation-delay:-750ms}.conversation-status-chase i:nth-child(4){left:6.8px;top:6.8px;animation-delay:-625ms}.conversation-status-chase i:nth-child(5){left:4px;top:8px;animation-delay:-500ms}.conversation-status-chase i:nth-child(6){left:1.2px;top:6.8px;animation-delay:-375ms}.conversation-status-chase i:nth-child(7){left:0;top:4px;animation-delay:-250ms}.conversation-status-chase i:nth-child(8){left:1.2px;top:1.2px;animation-delay:-125ms}
.conversation-workspace .status-running small { color:#718497; }
.conversation-workspace .status-awaiting_selection small,.conversation-workspace .status-awaiting_approval small { color:#a27a42; }
.conversation-workspace .status-completed small { color:#8996a4; }
.sidebar-conversation-menu { position:fixed; z-index:1100; inset:auto; top:var(--conversation-menu-top,100px); left:var(--conversation-menu-left,120px); right:auto; width:108px; margin:0; border-color:#d7e1ea; background:rgba(255,255,255,.98); box-shadow:0 14px 34px rgba(22,46,74,.17); opacity:1; transform:translateY(0) scale(1); transform-origin:top right; transition:opacity .13s ease,transform .16s cubic-bezier(.22,1,.36,1); }
.sidebar-conversation-menu:not(:popover-open) { display:none; }
.sidebar-conversation-menu:popover-open { display:grid; }
.sidebar-conversation-menu.is-opening:popover-open,.sidebar-conversation-menu.is-closing:popover-open { opacity:0; transform:translateY(-5px) scale(.97); pointer-events:none; }
.sidebar-conversation-menu button { color:#52657b; font-size:10px; }
.sidebar-conversation-menu button:hover { color:#254b63; background:#edf4f8; }
.conversation-workspace .sidebar-conversation-empty { margin:10px 3px; border-color:#dce6ee; color:#8b98a8; background:rgba(255,255,255,.48); font-size:9px; }
.conversation-workspace-foot { min-height:48px; display:grid; grid-template-columns:7px minmax(0,1fr); align-items:center; gap:9px; border-top:1px solid #e0e7ee; padding:11px 6px 1px; }
.conversation-workspace-foot strong,.conversation-workspace-foot small { display:block; }
.conversation-workspace-foot strong { color:#50647b; font-size:9px; font-weight:630; }
.conversation-workspace-foot small { margin-top:3px; color:#929eab; font-size:8px; }
.conversation-workspace-foot .online-dot { width:6px; height:6px; background:#53b8d2; box-shadow:0 0 0 3px rgba(83,184,210,.1); }
@keyframes auroraStateChase { 0%,12.4%{opacity:1}12.5%,24.9%{opacity:.6}25%,37.4%{opacity:.35}37.5%,100%{opacity:.15} }

.global-navigation { min-width:0; display:flex; align-items:center; gap:10px; }
.topbar-brand { display:flex; align-items:center; gap:8px; color:#173150; text-decoration:none; white-space:nowrap; }
.topbar-brand img { width:31px; height:31px; object-fit:contain; }
.topbar-brand strong { font-size:13px; font-weight:680; }
.module-switcher { position:relative; z-index:1000; }
.module-switcher summary { min-width:128px; height:38px; display:grid; grid-template-columns:24px minmax(0,1fr) 9px; align-items:center; gap:7px; border:1px solid #dbe4ec; border-radius:8px; padding:0 10px; color:#31465f; background:#fff; box-shadow:0 4px 12px rgba(30,53,80,.035); list-style:none; cursor:pointer; }
.module-switcher summary::-webkit-details-marker { display:none; }
.module-switcher summary:hover { border-color:#c9d9e5; background:#fbfdff; }
.module-current-icon { width:22px; height:22px; display:grid; place-items:center; border-radius:6px; color:#367b94; background:#e8f5f8; font-size:11px; }
.module-switcher summary strong { overflow:hidden; font-size:11px; font-weight:620; white-space:nowrap; text-overflow:ellipsis; }
.module-switcher summary > i { width:7px; height:7px; border-right:1px solid #8190a1; border-bottom:1px solid #8190a1; transform:translateY(-2px) rotate(45deg); transition:transform .15s cubic-bezier(.4,0,.2,1); }
.module-switcher[open] summary > i { transform:translateY(2px) rotate(225deg); }
.module-menu { position:absolute; z-index:1100; top:43px; left:0; width:274px; display:grid; gap:3px; border:1px solid #d8e2eb; border-radius:11px; padding:7px; background:rgba(255,255,255,.985); box-shadow:0 20px 48px rgba(20,43,69,.18); }
.module-menu > header { display:grid; gap:3px; padding:7px 8px 8px; border-bottom:1px solid #e8edf2; }
.module-menu > header span { color:#41556d; font-size:10px; font-weight:680; }
.module-menu > header small { color:#96a1ae; font-size:8px; }
.module-menu > button { min-height:48px; display:grid; grid-template-columns:31px minmax(0,1fr) auto; align-items:center; gap:9px; border:0; border-radius:8px; padding:6px 8px; color:#3e536b; background:transparent; text-align:left; }
.module-menu > button:hover:not(:disabled),.module-menu > button.active { color:#244258; background:linear-gradient(90deg,rgba(83,192,214,.1),rgba(117,113,186,.035)); }
.module-menu > button:disabled { cursor:not-allowed; opacity:.48; }
.module-menu > button > i { width:30px; height:30px; display:grid; place-items:center; border-radius:8px; color:#397c95; background:#eaf5f8; font-size:12px; font-style:normal; }
.module-menu > button > span strong,.module-menu > button > span small { display:block; }
.module-menu > button > span strong { font-size:10px; font-weight:620; }
.module-menu > button > span small { margin-top:4px; color:#8a97a7; font-size:8px; }
.module-menu > button > b { color:#8191a2; font-size:8px; font-weight:560; }
.global-navigation .breadcrumb { gap:7px; font-size:11px; }

@media (max-width:1180px) {
  .app-shell { --conversation-default-width:236px; grid-template-columns:var(--conversation-width,var(--conversation-default-width)) 10px minmax(0,1fr); }
  .topbar-brand strong,.global-navigation .breadcrumb { display:none; }
}
@media (max-width:920px) {
  .app-shell { grid-template-columns:minmax(0,1fr); }
  .conversation-workspace,.conversation-resize-handle { display:none; }
  .topbar-brand strong { display:block; }
}
@media (max-width:640px) {
  .conversation-workspace { display:none; }
  .topbar-brand strong { display:none; }
  .global-navigation { gap:6px; }
  .module-switcher summary { min-width:112px; }
  .module-menu { position:fixed; top:58px; left:10px; width:min(274px,calc(100vw - 20px)); }
}
@media (prefers-reduced-motion:reduce) {
  .conversation-status-chase i,.conversation-loading.is-visible > span,.conversation-loading > span::after,.conversation-loading img { animation:none!important; }
  .sidebar-conversation-menu,.conversation-loading,.conversation-loading > span { transition:none; }
  .module-switcher summary > i { transition:none; }
}

/* Aurora Layer preview — the memory dialog is the first isolated specimen.
   Other dialogs intentionally keep their existing shell until this direction
   is approved. */
html:not(.ui-v31) #memoryDialog.aurora-memory-dialog {
  width:min(760px,calc(100vw - 32px));
  max-height:min(760px,calc(100dvh - 32px));
  overflow:hidden;
  border:1px solid rgba(184,202,216,.82);
  border-radius:18px;
  padding:0;
  color:#263a54;
  background:#f4f7fa;
  box-shadow:0 30px 90px rgba(12,31,58,.22),0 4px 18px rgba(23,57,88,.08);
  scrollbar-gutter:auto;
}
html:not(.ui-v31) #memoryDialog.aurora-memory-dialog::backdrop {
  background:rgba(10,24,46,.34);
  backdrop-filter:blur(9px) saturate(.88);
}
html:not(.ui-v31) #memoryDialog.aurora-memory-dialog > .dialog-head {
  position:relative;
  isolation:isolate;
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  overflow:hidden;
  margin:0;
  border-bottom:1px solid #e1e8ef;
  border-radius:0;
  padding:0 22px 0 24px;
  color:#1a3453;
  background:linear-gradient(110deg,rgba(83,192,214,.09),rgba(255,255,255,.97) 42%,rgba(117,113,186,.055));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.88);
}
html:not(.ui-v31) #memoryDialog.aurora-memory-dialog > .dialog-head::after {
  content:"";
  position:absolute;
  z-index:-1;
  top:-39px;
  right:-30px;
  width:154px;
  height:74px;
  border:1px solid rgba(83,192,214,.28);
  border-radius:50%;
  transform:rotate(-9deg);
  box-shadow:0 0 26px rgba(117,113,186,.045);
}
html:not(.ui-v31) #memoryDialog.aurora-memory-dialog > .dialog-head span {
  color:#6687a0;
  font-size:8px;
  font-weight:760;
  letter-spacing:.17em;
}
html:not(.ui-v31) #memoryDialog.aurora-memory-dialog > .dialog-head h2 {
  margin-top:5px;
  color:#1a3453;
  font-size:19px;
  font-weight:690;
  letter-spacing:-.02em;
}
html:not(.ui-v31) #memoryDialog.aurora-memory-dialog > .dialog-head button {
  position:relative;
  z-index:2;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:1px solid #dbe5ed;
  border-radius:9px;
  padding:0;
  color:#61748a;
  background:rgba(255,255,255,.82);
  box-shadow:0 3px 10px rgba(28,55,82,.04);
  font-size:18px;
  font-weight:350;
}
html:not(.ui-v31) #memoryDialog.aurora-memory-dialog > .dialog-head button:hover {
  border-color:#c9dce7;
  color:#315c73;
  background:#fff;
  box-shadow:0 7px 16px rgba(35,77,99,.07);
}
html:not(.ui-v31) #memoryDialog .memory-dialog-body {
  max-height:calc(min(760px,100dvh - 32px) - 78px);
  overflow-x:hidden;
  overflow-y:auto;
  padding:19px 22px 22px;
  scrollbar-width:thin;
  scrollbar-color:rgba(112,140,163,.42) transparent;
}
html:not(.ui-v31) #memoryDialog .memory-dialog-body::-webkit-scrollbar { width:6px; }
html:not(.ui-v31) #memoryDialog .memory-dialog-body::-webkit-scrollbar-track { background:transparent; }
html:not(.ui-v31) #memoryDialog .memory-dialog-body::-webkit-scrollbar-thumb {
  border:1px solid transparent;
  border-radius:99px;
  background:rgba(112,140,163,.42);
  background-clip:padding-box;
}
html:not(.ui-v31) #memoryDialog .memory-dialog-body > .dialog-intro {
  margin:0 2px;
  color:#738399;
  font-size:10px;
  line-height:1.65;
}
html:not(.ui-v31) #memoryDialog .memory-create {
  grid-template-columns:154px minmax(0,1fr) 106px;
  gap:9px;
  margin:15px 0 14px;
  border:1px solid #dfe7ee;
  border-radius:13px;
  padding:15px;
  background:#fff;
  box-shadow:0 8px 24px rgba(29,64,94,.035);
}
html:not(.ui-v31) #memoryDialog .memory-create-heading {
  grid-column:1 / -1;
  display:grid;
  gap:3px;
  margin-bottom:5px;
}
html:not(.ui-v31) #memoryDialog .memory-create-heading span {
  color:#6a8ca2;
  font-size:7px;
  font-weight:760;
  letter-spacing:.15em;
}
html:not(.ui-v31) #memoryDialog .memory-create-heading strong {
  color:#2b435e;
  font-size:12px;
  font-weight:650;
}
html:not(.ui-v31) #memoryDialog .memory-create-heading small { color:#8a97a7; font-size:8px; }
html:not(.ui-v31) #memoryDialog .memory-create :is(.hy-select,.native-select-control,input,button[type="submit"]) { min-height:38px; }
html:not(.ui-v31) #memoryDialog .memory-create input { border-radius:8px; padding:0 11px; }
html:not(.ui-v31) #memoryDialog .memory-create button[type="submit"] {
  border-radius:8px;
  padding:0 13px;
  font-size:9px;
  font-weight:620;
  box-shadow:0 7px 16px rgba(13,41,79,.1);
}
html:not(.ui-v31) #memoryDialog > .memory-dialog-body > .form-error { margin:0 0 13px!important; }
html:not(.ui-v31) #memoryDialog .memory-library-card {
  overflow:hidden;
  border:1px solid #dfe7ee;
  border-radius:13px;
  background:#fff;
  box-shadow:0 8px 24px rgba(29,64,94,.03);
}
html:not(.ui-v31) #memoryDialog .memory-library-card > header {
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid #e7edf2;
  padding:0 15px;
  background:linear-gradient(90deg,#fbfdff,rgba(242,248,251,.72));
}
html:not(.ui-v31) #memoryDialog .memory-library-card > header span,
html:not(.ui-v31) #memoryDialog .memory-library-card > header h3 { display:block; }
html:not(.ui-v31) #memoryDialog .memory-library-card > header span {
  color:#7692a6;
  font-size:7px;
  font-weight:760;
  letter-spacing:.14em;
}
html:not(.ui-v31) #memoryDialog .memory-library-card > header h3 {
  margin:4px 0 0;
  color:#314962;
  font-size:11px;
  font-weight:650;
}
html:not(.ui-v31) #memoryDialog .memory-library-card > header small { color:#8c99a8; font-size:8px; }
html:not(.ui-v31) #memoryDialog .memory-list { gap:7px; padding:10px; }
html:not(.ui-v31) #memoryDialog .memory-row {
  min-height:58px;
  border:1px solid #e3eaf0;
  border-radius:9px;
  padding:10px 11px;
  background:#fbfcfe;
  transition:border-color .14s ease,background .14s ease,box-shadow .14s ease;
}
html:not(.ui-v31) #memoryDialog .memory-row:hover {
  border-color:#cfe0e9;
  background:#fff;
  box-shadow:0 7px 17px rgba(32,67,99,.045);
}
html:not(.ui-v31) #memoryDialog .memory-row > i {
  border:1px solid #d5e6ed;
  border-radius:7px;
  padding:5px 7px;
  color:#3f7187;
  background:#eef6f8;
}
html:not(.ui-v31) #memoryDialog .memory-row strong { color:#354a61; font-size:10px; font-weight:590; }
html:not(.ui-v31) #memoryDialog .memory-row small { color:#8a97a6; }
html:not(.ui-v31) #memoryDialog .memory-row button { border-color:#e7d9d7; color:#9a625c; background:#fffafa; }
html:not(.ui-v31) #memoryDialog .history-empty { margin:0; border:0; background:#fbfcfe; }
@media (max-width:640px) {
  html:not(.ui-v31) #memoryDialog.aurora-memory-dialog { width:calc(100vw - 18px); max-height:calc(100dvh - 18px); border-radius:14px; }
  html:not(.ui-v31) #memoryDialog.aurora-memory-dialog > .dialog-head { min-height:70px; padding:0 15px 0 17px; }
  html:not(.ui-v31) #memoryDialog .memory-dialog-body { max-height:calc(100dvh - 88px); padding:14px; }
  html:not(.ui-v31) #memoryDialog .memory-create { grid-template-columns:minmax(0,1fr); padding:13px; }
  html:not(.ui-v31) #memoryDialog .memory-create-heading { grid-column:1; }
  html:not(.ui-v31) #memoryDialog .memory-library-card > header { padding:0 12px; }
  html:not(.ui-v31) #memoryDialog .memory-row { grid-template-columns:auto minmax(0,1fr); }
  html:not(.ui-v31) #memoryDialog .memory-row button { grid-column:2; justify-self:start; }
}

/* Aurora Layer system — apply the approved three-layer-memory shell to every
   popup while leaving each dialog's functional content layout untouched. */
html:not(.ui-v31) body dialog.aurora-layer-dialog {
  border:1px solid rgba(184,202,216,.82);
  border-radius:18px;
  padding:0;
  color:#263a54;
  background:#f4f7fa;
  box-shadow:0 30px 90px rgba(12,31,58,.22),0 4px 18px rgba(23,57,88,.08);
  scrollbar-width:thin;
  scrollbar-color:rgba(112,140,163,.42) transparent;
  scrollbar-gutter:auto;
  overflow-x:hidden;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog::backdrop {
  background:rgba(10,24,46,.34);
  backdrop-filter:blur(9px) saturate(.88);
}
html:not(.ui-v31) body dialog.aurora-layer-dialog:not(#memoryDialog) > .dialog-head {
  position:sticky;
  z-index:20;
  top:0;
  isolation:isolate;
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  overflow:hidden;
  margin:0;
  border-bottom:1px solid #e1e8ef;
  border-radius:0;
  padding:0 22px 0 24px;
  color:#1a3453;
  background:linear-gradient(110deg,rgba(83,192,214,.09),rgba(255,255,255,.97) 42%,rgba(117,113,186,.055));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter:none;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog:not(#memoryDialog) > .dialog-head::after {
  content:"";
  position:absolute;
  z-index:-1;
  top:-39px;
  right:-30px;
  width:154px;
  height:74px;
  border:1px solid rgba(83,192,214,.28);
  border-radius:50%;
  transform:rotate(-9deg);
  box-shadow:0 0 26px rgba(117,113,186,.045);
}
html:not(.ui-v31) body dialog.aurora-layer-dialog > .dialog-head span {
  color:#6687a0;
  font-size:8px;
  font-weight:760;
  letter-spacing:.17em;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog > .dialog-head h2 {
  margin-top:5px;
  color:#1a3453;
  font-size:19px;
  font-weight:690;
  letter-spacing:-.02em;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog > .dialog-head button {
  position:relative;
  z-index:2;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:1px solid #dbe5ed;
  border-radius:9px;
  padding:0;
  color:#61748a;
  background:rgba(255,255,255,.82);
  box-shadow:0 3px 10px rgba(28,55,82,.04);
  font-size:18px;
  font-weight:350;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog > .dialog-head button:hover {
  border-color:#c9dce7;
  color:#315c73;
  background:#fff;
  box-shadow:0 7px 16px rgba(35,77,99,.07);
}
html:not(.ui-v31) body dialog.aurora-layer-dialog > .dialog-intro {
  color:#738399;
  line-height:1.65;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog::-webkit-scrollbar,
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(
  .pretty-scroll,
  .member-dialog-scroll,
  .workspace-action-editor,
  .table-scroll,
  .ads-store-list
)::-webkit-scrollbar { width:6px; height:6px; }
html:not(.ui-v31) body dialog.aurora-layer-dialog::-webkit-scrollbar-track,
html:not(.ui-v31) body dialog.aurora-layer-dialog::-webkit-scrollbar-corner,
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(
  .pretty-scroll,
  .member-dialog-scroll,
  .workspace-action-editor,
  .table-scroll,
  .ads-store-list
)::-webkit-scrollbar-track,
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(
  .pretty-scroll,
  .member-dialog-scroll,
  .workspace-action-editor,
  .table-scroll,
  .ads-store-list
)::-webkit-scrollbar-corner { background:transparent; }
html:not(.ui-v31) body dialog.aurora-layer-dialog::-webkit-scrollbar-thumb,
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(
  .pretty-scroll,
  .member-dialog-scroll,
  .workspace-action-editor,
  .table-scroll,
  .ads-store-list
)::-webkit-scrollbar-thumb {
  border:1px solid transparent;
  border-radius:99px;
  background:rgba(112,140,163,.42);
  background-clip:padding-box;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog::-webkit-scrollbar-thumb:hover,
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(
  .pretty-scroll,
  .member-dialog-scroll,
  .workspace-action-editor,
  .table-scroll,
  .ads-store-list
)::-webkit-scrollbar-thumb:hover {
  background:rgba(82,111,136,.62);
  background-clip:padding-box;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(
  .pretty-scroll,
  .member-dialog-scroll,
  .workspace-action-editor,
  .table-scroll,
  .ads-store-list
) {
  scrollbar-width:thin;
  scrollbar-color:rgba(112,140,163,.42) transparent;
  scrollbar-gutter:auto;
}
html:not(.ui-v31) body #adsDialog .ads-status-dot.connected_read_only {
  background:#53c0d6;
  box-shadow:0 0 0 5px rgba(83,192,214,.13);
}
html:not(.ui-v31) body #adsDialog .ads-connection-chip.connected_read_only {
  border-color:rgba(83,192,214,.36);
  background:rgba(83,192,214,.07);
}
html:not(.ui-v31) body #adsDialog .ads-operation-state.terminal_verified {
  color:#315f8c;
  background:rgba(83,136,190,.09);
}

/* Advertising business-goal control. This stores decision boundaries only;
   it is deliberately visually separate from executable ad actions. */
html:not(.ui-v31) body .ads-business-goal-bar { margin:-3px 0 12px; }
html:not(.ui-v31) body .ads-business-goal-bar > button {
  width:100%;
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid #dce7ef;
  border-radius:10px;
  padding:9px 11px;
  color:#334e68;
  background:linear-gradient(112deg,rgba(236,248,250,.92),rgba(247,246,253,.95));
  box-shadow:0 6px 17px rgba(34,73,105,.045);
  text-align:left;
}
html:not(.ui-v31) body .ads-business-goal-bar > button:hover,
html:not(.ui-v31) body .ads-business-goal-bar > button:focus-visible {
  border-color:rgba(83,192,214,.66);
  box-shadow:0 8px 20px rgba(34,73,105,.075);
}
html:not(.ui-v31) body .ads-business-goal-bar span { min-width:0; display:grid; gap:2px; }
html:not(.ui-v31) body .ads-business-goal-bar i {
  color:#608092;
  font-size:8px;
  font-style:normal;
  font-weight:700;
  letter-spacing:.09em;
}
html:not(.ui-v31) body .ads-business-goal-bar strong { color:#274158; font-size:11px; }
html:not(.ui-v31) body .ads-business-goal-bar small {
  overflow:hidden;
  color:#7d8d9d;
  font-size:8.5px;
  line-height:1.4;
  text-overflow:ellipsis;
  white-space:nowrap;
}
html:not(.ui-v31) body .ads-business-goal-bar b { flex:0 0 auto; color:#4e8195; font-size:9px; }

html:not(.ui-v31) body dialog.business-goal-dialog {
  width:min(720px,calc(100vw - 32px));
  max-height:min(860px,calc(100dvh - 32px));
  border:1px solid #dfe6ee;
  border-radius:18px;
  padding:0;
  color:#253851;
  background:#f8fafc;
  box-shadow:0 30px 90px rgba(7,22,47,.25);
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(126,149,168,.62) transparent;
}
html:not(.ui-v31) body dialog.business-goal-dialog::backdrop {
  background:rgba(7,18,40,.42);
  backdrop-filter:blur(7px);
}
html:not(.ui-v31) body dialog.business-goal-dialog > .dialog-head {
  margin:0 -9px 0 0;
  border-radius:18px 18px 0 0;
  padding-right:33px;
  background-clip:padding-box;
}
html:not(.ui-v31) body dialog.business-goal-dialog > .dialog-intro {
  margin:14px 24px 0;
  color:#7d8b9c;
  font-size:10px;
  line-height:1.6;
}
html:not(.ui-v31) body .business-goal-gate-notice {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:14px 24px 0;
  border:1px solid rgba(70,157,181,.3);
  border-radius:11px;
  padding:12px 13px;
  background:linear-gradient(112deg,rgba(233,248,250,.92),rgba(247,246,253,.92));
}
html:not(.ui-v31) body .business-goal-gate-notice[hidden] { display:none; }
html:not(.ui-v31) body .business-goal-gate-notice > div { min-width:0; display:grid; gap:4px; }
html:not(.ui-v31) body .business-goal-gate-notice strong { color:#29445d; font-size:11px; }
html:not(.ui-v31) body .business-goal-gate-notice small { color:#708798; font-size:9px; line-height:1.55; }
html:not(.ui-v31) body .business-goal-gate-notice > button {
  flex:0 0 auto;
  min-height:34px;
  border:1px solid #c9dbe5;
  border-radius:8px;
  padding:0 12px;
  color:#41677d;
  background:#fff;
  font-size:9px;
  font-weight:700;
}
html:not(.ui-v31) body .business-goal-gate-notice > button:hover { border-color:#67b6c8; color:#27566b; }
html:not(.ui-v31) body #businessGoalForm {
  display:grid;
  gap:14px;
  margin:14px 24px 22px;
  border:1px solid #dfe6ee;
  border-radius:13px;
  padding:17px;
  background:#fff;
  box-shadow:0 8px 24px rgba(29,64,94,.03);
}
html:not(.ui-v31) body .business-goal-current {
  display:grid;
  gap:4px;
  border:1px solid #dce8ee;
  border-radius:10px;
  padding:12px 13px;
  background:linear-gradient(112deg,rgba(236,248,250,.82),rgba(247,246,253,.8));
}
html:not(.ui-v31) body .business-goal-current span { color:#718596; font-size:8px; font-weight:700; letter-spacing:.08em; }
html:not(.ui-v31) body .business-goal-current strong { color:#29445d; font-size:12px; }
html:not(.ui-v31) body .business-goal-current small { color:#77899a; font-size:9px; line-height:1.5; }
html:not(.ui-v31) body .business-goal-primary-grid,
html:not(.ui-v31) body .business-goal-constraint-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
html:not(.ui-v31) body #businessGoalForm label { min-width:0; display:grid; gap:7px; color:#53677a; font-size:10px; }
html:not(.ui-v31) body #businessGoalForm label > small { color:#8795a4; font-size:8.5px; line-height:1.5; }
html:not(.ui-v31) body #businessGoalForm :is(input,select,.hy-select-trigger) {
  width:100%;
  min-height:38px;
  border:1px solid #dbe4ed;
  border-radius:8px;
  padding:0 10px;
  color:#263a56;
  background:#fbfcfe;
  font-size:11px;
}
html:not(.ui-v31) body #businessGoalForm :is(input,select,.hy-select-trigger):focus {
  border-color:rgba(83,192,214,.8);
  outline:0;
  background:#fff;
  box-shadow:0 0 0 3px rgba(83,192,214,.09);
}
html:not(.ui-v31) body #businessGoalForm .business-goal-status {
  margin:0;
  border-radius:8px;
  padding:9px 10px;
  color:#4f6b7c;
  background:#f1f7fa;
  font-size:9px;
  line-height:1.5;
}
html:not(.ui-v31) body #businessGoalForm .business-goal-status[data-state="error"] { color:#9a424a; background:#fff1f2; }
html:not(.ui-v31) body #businessGoalForm .business-goal-status[data-state="success"] { color:#315f7d; background:#edf7fa; }
html:not(.ui-v31) body #businessGoalForm > footer {
  min-height:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:2px;
  border-top:1px solid #e8edf2;
  padding-top:14px;
}
html:not(.ui-v31) body #businessGoalForm > footer small { max-width:470px; color:#8492a2; font-size:8.5px; line-height:1.5; }
html:not(.ui-v31) body #businessGoalForm > footer button {
  flex:0 0 auto;
  min-height:38px;
  border:1px solid var(--navy);
  border-radius:8px;
  padding:0 14px;
  color:#fff;
  background:var(--navy);
  font-size:10px;
}
html:not(.ui-v31) body #businessGoalForm > footer button:hover { border-color:#18385d; background:#18385d; }

@media (max-width:680px) {
  html:not(.ui-v31) body dialog.business-goal-dialog { width:calc(100vw - 18px); max-height:calc(100dvh - 18px); }
  html:not(.ui-v31) body dialog.business-goal-dialog > .dialog-intro,
  html:not(.ui-v31) body .business-goal-gate-notice,
  html:not(.ui-v31) body #businessGoalForm { margin-inline:14px; }
  html:not(.ui-v31) body .business-goal-gate-notice { align-items:stretch; flex-direction:column; }
  html:not(.ui-v31) body .business-goal-gate-notice > button { width:100%; }
  html:not(.ui-v31) body .business-goal-primary-grid,
  html:not(.ui-v31) body .business-goal-constraint-grid { grid-template-columns:1fr; }
  html:not(.ui-v31) body #businessGoalForm > footer { align-items:stretch; flex-direction:column; }
  html:not(.ui-v31) body #businessGoalForm > footer button { width:100%; }
}
@media (max-width:640px) {
  html:not(.ui-v31) body dialog.aurora-layer-dialog { border-radius:14px; }
  html:not(.ui-v31) body dialog.aurora-layer-dialog:not(#memoryDialog) > .dialog-head {
    min-height:70px;
    padding:0 15px 0 17px;
  }
}

/* Aurora Layer content system — one readable type scale, card rhythm and
   select treatment for every business dialog. */
html:not(.ui-v31) body dialog.aurora-layer-dialog {
  --aurora-dialog-card:#fff;
  --aurora-dialog-card-soft:#fbfcfe;
  --aurora-dialog-border:#dfe7ee;
  --aurora-dialog-border-strong:#cfdee8;
  --aurora-dialog-ink:#2a4059;
  --aurora-dialog-muted:#738398;
  --aurora-dialog-accent:#4f91aa;
  font-family:Inter,"SF Pro Display","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:11px;
  line-height:1.6;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog > .dialog-intro,
html:not(.ui-v31) body dialog.aurora-layer-dialog .member-dialog-scroll > .dialog-intro,
html:not(.ui-v31) body dialog.aurora-layer-dialog .memory-dialog-body > .dialog-intro {
  margin:16px 24px 11px;
  color:var(--aurora-dialog-muted);
  font-size:11px;
  font-weight:450;
  line-height:1.68;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(h3,.workspace-editor-group > header strong) {
  color:#2b435e;
  font-size:13px;
  font-weight:650;
  line-height:1.42;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(label,.scheduled-task-form > label,.scheduled-form-grid label) {
  color:#566a80;
  font-size:11px;
  font-weight:620;
  line-height:1.45;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(p,li,dd,dt) {
  font-size:11px;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(small,.member-form-actions small,.scheduled-task-form label > small) {
  color:#8795a5;
  font-size:10px;
  font-weight:450;
  line-height:1.55;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  textarea,
  select
) {
  min-height:38px;
  border:1px solid #d7e2eb;
  border-radius:9px;
  padding:9px 11px;
  color:#2c425c;
  background:#fbfcfe;
  outline:0;
  font:inherit;
  font-size:12px;
  font-weight:450;
  line-height:1.45;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  textarea,
  select
):focus {
  border-color:rgba(83,192,214,.82);
  background:#fff;
  box-shadow:0 0 0 3px rgba(83,192,214,.09);
}
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(input,textarea,select):disabled {
  color:#8c99a7;
  background:#f2f5f8;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog input[type="checkbox"],
html:not(.ui-v31) body dialog.aurora-layer-dialog input[type="radio"] { accent-color:#4f91aa; }
html:not(.ui-v31) body dialog.aurora-layer-dialog button:not([aria-label="关闭"]) {
  min-height:34px;
  border:1px solid #d7e2eb;
  border-radius:9px;
  padding:0 13px;
  color:#52677d;
  background:#fff;
  box-shadow:none;
  font-size:11px;
  font-weight:620;
  line-height:1.3;
  transition:border-color .15s ease,color .15s ease,background .15s ease,box-shadow .15s ease,transform .15s ease;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog button:not([aria-label="关闭"]):hover:not(:disabled) {
  border-color:#c4d7e3;
  color:#315a72;
  background:#f7fbfd;
  box-shadow:0 6px 14px rgba(34,70,99,.06);
}
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(button.primary,button[type="submit"]):not([aria-label="关闭"]) {
  border-color:#142844;
  color:#fff;
  background:linear-gradient(135deg,#173a5f,#111f3e 68%,#3f3c77);
  box-shadow:0 7px 16px rgba(14,36,66,.12);
}
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(button.primary,button[type="submit"]):not([aria-label="关闭"]):hover:not(:disabled) {
  border-color:#173a5f;
  color:#fff;
  background:linear-gradient(135deg,#1b456e,#15274a 68%,#494483);
}
html:not(.ui-v31) body dialog.aurora-layer-dialog button.danger:not([aria-label="关闭"]),
html:not(.ui-v31) body dialog.aurora-layer-dialog .member-row-actions button.danger {
  border-color:#ead9d7;
  color:#9b605b;
  background:#fffafa;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog .form-error {
  border:1px solid rgba(190,91,104,.18);
  border-radius:9px;
  color:#a04f5b;
  background:#fff4f5;
  font-size:10px;
}

/* Unified enhanced selects, including the campaign picker. */
html:not(.ui-v31) body dialog.aurora-layer-dialog .hy-select { width:100%; min-width:0; max-width:none; }
html:not(.ui-v31) body dialog.aurora-layer-dialog .hy-select.open { z-index:320; }
html:not(.ui-v31) body dialog.aurora-layer-dialog button.hy-select-trigger {
  min-height:38px;
  grid-template-columns:minmax(0,1fr) 20px;
  gap:8px;
  border-color:#d7e2eb;
  border-radius:9px;
  padding:0 8px 0 11px;
  color:#2c425c;
  background:linear-gradient(180deg,#fff,#f8fafc);
  font-size:12px;
  font-weight:470;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog button.hy-select-trigger > i { width:20px; height:20px; border-radius:6px; background:#edf3f7; }
html:not(.ui-v31) body dialog.aurora-layer-dialog .hy-select.open button.hy-select-trigger {
  border-color:rgba(83,192,214,.82);
  background:#fff;
  box-shadow:0 0 0 3px rgba(83,192,214,.09);
}
html:not(.ui-v31) body dialog.aurora-layer-dialog .hy-select-menu {
  z-index:360;
  right:auto;
  left:0;
  width:100%;
  min-width:100%;
  max-width:min(520px,calc(100vw - 48px));
  max-height:min(290px,46vh);
  border-color:#d7e3eb;
  border-radius:11px;
  padding:6px;
  background:rgba(255,255,255,.99);
  box-shadow:0 18px 42px rgba(17,40,71,.16),0 3px 10px rgba(17,40,71,.05);
}
html:not(.ui-v31) body dialog.aurora-layer-dialog .hy-select-menu button,
html:not(.ui-v31) body dialog.aurora-layer-dialog .memory-create .hy-select-menu button {
  min-height:36px;
  border:0;
  border-radius:8px;
  padding:7px 8px 7px 10px;
  color:#50657b;
  background:transparent;
  box-shadow:none;
  font-size:11px;
  font-weight:500;
  line-height:1.45;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog .hy-select-menu button:hover,
html:not(.ui-v31) body dialog.aurora-layer-dialog .hy-select-menu button:focus-visible {
  color:#315c73;
  background:#f0f7fa;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog .hy-select-menu button[aria-selected="true"] {
  color:#2f6078;
  background:linear-gradient(90deg,rgba(83,192,214,.13),rgba(117,113,186,.05));
  font-weight:650;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog .hy-select-menu button[aria-selected="true"] > i { color:#4f8fa8; }
html:not(.ui-v31) body #quickInputCampaignField .hy-select-menu button > span {
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
}
html:not(.ui-v31) body #quickInputDialog { overflow:visible; }
/* All four plan-review actions share one compact, read-only picker. */
html:not(.ui-v31) body #quickInputDialog:has(#quickInputCampaignField:not([hidden])) {
  width:min(560px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); overflow:auto;
  scrollbar-width:thin;
}
html:not(.ui-v31) body #quickInputDialog:has(#quickInputCampaignField:not([hidden])) > form {
  margin:0; padding:20px 24px; border:0; border-radius:0; background:transparent; box-shadow:none; gap:12px;
}
#quickInputCampaignSelect { width:100%; min-height:38px; padding:8px 30px 8px 10px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background-color:#fff; font:inherit; }
#quickInputDialog #quickInputCampaignLifecycle { margin:0; padding:12px 14px; background:#fff; border-color:var(--line); gap:10px 16px; }
#quickInputCampaignLifecycle > div { padding:0; border:0; }
#quickInputCampaignLifecycle span, #quickInputCampaignLifecycle small { color:var(--muted); letter-spacing:0; }
#quickInputCampaignLifecycle strong { color:var(--ink); font-size:14px; }
#quickInputCampaignLifecycle .quick-plan-products { grid-column:1/-1; border-top:1px solid var(--line); padding-top:10px; font-size:11px; color:var(--muted); }
.quick-plan-products summary { cursor:pointer; }
#quickInputCampaignLifecycle .quick-plan-products div { display:flex; flex-wrap:wrap; gap:6px; border:0; padding:10px 0 0; }
.quick-plan-products code { padding:3px 6px; border-radius:4px; background:var(--canvas); overflow-wrap:anywhere; }
.quick-plan-products { interpolate-size:allow-keywords; }
.quick-plan-products::details-content { overflow:hidden; block-size:0; transition:block-size .18s ease,content-visibility .18s allow-discrete; }
.quick-plan-products[open]::details-content { block-size:auto; }
#quickInputCampaignLifecycle small { padding-top:0; }
#quickInputDialog .quick-input-campaign-tools { margin:0; }
#quickInputDialog:has(#quickInputCampaignField:not([hidden])) footer { display:flex; align-items:center; justify-content:space-between; gap:16px; }
#quickInputDialog:has(#quickInputCampaignField:not([hidden])) footer small { flex:1; color:var(--muted); line-height:1.6; }
#quickInputDialog:has(#quickInputCampaignField:not([hidden])) button { flex-shrink:0; white-space:nowrap; }
@media (prefers-reduced-motion:reduce) { .quick-plan-products::details-content { transition:none; } }
html:not(.ui-v31) body dialog#quickInputDialog.aurora-layer-dialog > .dialog-head {
  border-radius:17px 17px 0 0;
  background-clip:padding-box;
  box-shadow:none;
}

/* Standard form and compact-confirm cards. */
html:not(.ui-v31) body :is(#quickInputDialog,#conversationRenameDialog) > form {
  display:grid;
  gap:14px;
  margin:16px 24px 22px;
  border:1px solid var(--aurora-dialog-border);
  border-radius:13px;
  padding:17px;
  background:var(--aurora-dialog-card);
  box-shadow:0 8px 24px rgba(29,64,94,.03);
}
html:not(.ui-v31) body #quickInputDialog form > footer,
html:not(.ui-v31) body #conversationRenameDialog form > footer {
  min-height:auto;
  margin-top:4px;
  border-top:1px solid #e8edf2;
  padding-top:14px;
}
html:not(.ui-v31) body :is(#cliUpdateDialog,#agentUpdateDialog) .cli-update-confirm {
  margin:16px 24px 0;
  border:1px solid var(--aurora-dialog-border);
  border-radius:13px;
  padding:16px;
  background:var(--aurora-dialog-card);
}
html:not(.ui-v31) body :is(#cliUpdateDialog,#agentUpdateDialog) .cli-update-confirm > p { color:#64758a; font-size:11px; }
html:not(.ui-v31) body :is(#cliUpdateDialog,#agentUpdateDialog) .cli-update-confirm > div span {
  min-height:38px;
  display:grid;
  place-items:center;
  border-color:#dfe7ee;
  color:#354d68;
  background:#f8fafc;
  font-size:11px;
}
html:not(.ui-v31) body :is(#cliUpdateDialog,#agentUpdateDialog) > footer { padding:15px 24px 22px; }

/* Account, identity and memory management share the same readable density. */
html:not(.ui-v31) body dialog.aurora-layer-dialog .member-create {
  margin:0 24px 16px;
  border-color:var(--aurora-dialog-border);
  border-radius:13px;
  padding:17px;
  background:var(--aurora-dialog-card);
  box-shadow:0 8px 24px rgba(29,64,94,.03);
}
html:not(.ui-v31) body dialog.aurora-layer-dialog .member-create h3 { margin-bottom:13px; }
html:not(.ui-v31) body dialog.aurora-layer-dialog .member-create label { gap:7px; margin-top:12px; }
html:not(.ui-v31) body dialog.aurora-layer-dialog .member-form-actions { margin-top:16px; }
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(.member-row-actions,.identity-actions) button { min-height:30px; padding:0 10px; font-size:10px; }
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(.member-row,.identity-row) {
  border-color:#e1e8ee;
  background:#fff;
}
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(.member-row,.identity-row) strong { color:#354a61; font-size:11px; font-weight:600; }
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(.member-row,.identity-row) small { font-size:10px; }
html:not(.ui-v31) body #identityDialog .identity-row.default {
  border-color:#c8dfe8;
  box-shadow:inset 3px 0 0 #53a7c0;
}
html:not(.ui-v31) body #memberDialog .fastmoss-settings-head i.ready,
html:not(.ui-v31) body #memberDialog .member-row > em {
  color:#39728a;
  background:#edf6f8;
}
html:not(.ui-v31) body #memberDialog :is(.fastmoss-settings-head span,.member-row small) { color:#7890a4; }
html:not(.ui-v31) body #memberDialog .fastmoss-run-limit {
  display:grid;
  grid-template-columns:minmax(180px,1fr) auto 116px auto;
  align-items:end;
  gap:12px;
  margin-top:18px;
  border-top:1px solid #e3eaf0;
  padding-top:16px;
}
html:not(.ui-v31) body #memberDialog .fastmoss-run-limit > div { align-self:center; min-width:0; }
html:not(.ui-v31) body #memberDialog .fastmoss-run-limit > div strong,
html:not(.ui-v31) body #memberDialog .fastmoss-run-limit > div small { display:block; }
html:not(.ui-v31) body #memberDialog .fastmoss-run-limit > div strong { color:#354a61; font-size:11px; font-weight:650; }
html:not(.ui-v31) body #memberDialog .fastmoss-run-limit > div small { margin-top:5px; color:#7d8fa1; font-size:9px; line-height:1.5; }
html:not(.ui-v31) body #memberDialog .fastmoss-run-limit label { margin:0; color:#5d7084; font-size:10px; }
html:not(.ui-v31) body #memberDialog .fastmoss-run-limit-toggle { min-height:36px; display:flex; align-items:center; gap:7px; white-space:nowrap; }
html:not(.ui-v31) body #memberDialog .fastmoss-run-limit-toggle input { width:15px; height:15px; accent-color:#4da8be; }
html:not(.ui-v31) body #memberDialog .fastmoss-run-limit-count { display:grid; gap:5px; }
html:not(.ui-v31) body #memberDialog .fastmoss-run-limit-count input { width:116px; min-height:36px; }
html:not(.ui-v31) body #memberDialog #fastmossRunLimitSaveButton { min-height:36px; border:1px solid #cfe1e8; border-radius:8px; padding:0 12px; color:#315f73; background:#f6fbfc; font-size:10px; white-space:nowrap; }
html:not(.ui-v31) body #memberDialog #fastmossRunLimitSaveButton:hover { border-color:#9bcbd8; background:#eff9fb; }
html:not(.ui-v31) body #memberDialog #fastmossRunLimitSaveButton:disabled { opacity:.55; cursor:not-allowed; }
html:not(.ui-v31) body #memberDialog .member-row > i {
  color:#fff;
  background:linear-gradient(145deg,#53b8cf,#7473b3);
}
html:not(.ui-v31) body #identityDialog .identity-row > i { color:#3f7187; background:#eef6f8; }
@media (max-width:760px) {
  html:not(.ui-v31) body #memberDialog .fastmoss-run-limit { grid-template-columns:1fr 1fr; align-items:end; }
  html:not(.ui-v31) body #memberDialog .fastmoss-run-limit > div { grid-column:1 / -1; }
  html:not(.ui-v31) body #memberDialog #fastmossRunLimitSaveButton { width:100%; }
}
html:not(.ui-v31) body #memoryDialog .memory-dialog-body > .dialog-intro { margin:0 2px; font-size:11px; }
html:not(.ui-v31) body #memoryDialog .memory-create-heading strong { font-size:13px; }
html:not(.ui-v31) body #memoryDialog .memory-create-heading small,
html:not(.ui-v31) body #memoryDialog .memory-library-card > header small { font-size:10px; }
html:not(.ui-v31) body #memoryDialog .memory-create :is(input,.hy-select-trigger) { min-height:38px; font-size:12px; }
html:not(.ui-v31) body #memoryDialog .memory-create button[type="submit"] { min-height:38px; font-size:11px; }
html:not(.ui-v31) body #memoryDialog .memory-library-card > header h3 { font-size:13px; }
html:not(.ui-v31) body #memoryDialog .memory-row strong { font-size:11px; }
html:not(.ui-v31) body #memoryDialog .memory-row small { font-size:10px; }
html:not(.ui-v31) body #memoryDialog .memory-row > i { color:#3f7187; background:#eef6f8; font-size:9px; }
html:not(.ui-v31) body #memoryDialog .memory-row button { min-height:30px; font-size:10px; }

/* Lists and workspace configuration. */
html:not(.ui-v31) body dialog.aurora-layer-dialog :is(.history-list,.scheduled-run-list) { padding:8px 22px 22px; }
html:not(.ui-v31) body #historyDialog .history-row {
  border-color:#e1e8ee;
  color:#354a61;
  background:#fff;
}
html:not(.ui-v31) body #historyDialog .history-row:hover { border-color:#c9dce7; box-shadow:0 8px 20px rgba(34,70,99,.06); }
html:not(.ui-v31) body #historyDialog .history-row.active { border-color:#c5dfe8; background:#f1f8fa; box-shadow:inset 3px 0 0 #53a7c0; }
html:not(.ui-v31) body #historyDialog .history-row small { font-size:10px; }
html:not(.ui-v31) body #historyDialog .history-row > em { font-size:9px; }
html:not(.ui-v31) body #historyDialog .history-row > em b { color:#3e7288; background:#edf6f8; font-size:9px; }
html:not(.ui-v31) body #workspaceConfigDialog > .dialog-intro { margin-bottom:14px; }
html:not(.ui-v31) body #workspaceConfigDialog form { padding:0 24px 22px; }
html:not(.ui-v31) body #workspaceConfigDialog .workspace-preferences {
  gap:11px;
  border-color:var(--aurora-dialog-border);
  border-radius:13px;
  padding:15px;
  background:#fff;
}
html:not(.ui-v31) body #workspaceConfigDialog .workspace-preferences label { color:#566a80; font-size:11px; }
html:not(.ui-v31) body #workspaceConfigDialog .workspace-editor-group {
  border:1px solid var(--aurora-dialog-border);
  border-radius:13px;
  padding:13px;
  background:#fff;
}
html:not(.ui-v31) body #workspaceConfigDialog .workspace-editor-group > header i {
  color:#fff;
  background:linear-gradient(145deg,#53b8cf,#7473b3);
}
html:not(.ui-v31) body #workspaceConfigDialog .workspace-editor-row { grid-template-columns:32px minmax(120px,.8fr) minmax(240px,2fr) 64px; gap:9px; padding:9px 5px; }
html:not(.ui-v31) body #workspaceConfigDialog .workspace-editor-row :is(input[type="text"],textarea,input[type="number"]) { font-size:11px; }

/* Advertising center keeps its wider layout but no longer carries an
   oversized, separate type system. */
html:not(.ui-v31) body #adsDialog > :is(section,form) {
  margin:14px 24px 0;
  border-color:var(--aurora-dialog-border);
  border-radius:13px;
  padding:16px;
  background:#fff;
  box-shadow:0 8px 24px rgba(29,64,94,.03);
}
html:not(.ui-v31) body #adsDialog > .dialog-intro { margin-inline:24px; }
html:not(.ui-v31) body #adsDialog h3 { margin-bottom:5px; font-size:13px; }
html:not(.ui-v31) body #adsDialog label { gap:7px; color:#566a80; font-size:11px; }
html:not(.ui-v31) body #adsDialog :is(input:not([type="checkbox"]),select,.hy-select-trigger) { min-height:38px; font-size:12px; }
html:not(.ui-v31) body #adsDialog button:not([aria-label="关闭"]) { min-height:36px; font-size:11px; }
html:not(.ui-v31) body #adsDialog button.hy-select-trigger { min-height:38px; font-size:12px; }
html:not(.ui-v31) body #adsDialog button.secondary { border:1px solid #d4e2eb; color:#416b82; background:#f4f9fb; }
html:not(.ui-v31) body #adsDialog #adsConnectButton {
  border-color:#142844;
  color:#fff;
  background:linear-gradient(135deg,#173a5f,#111f3e 68%,#3f3c77);
}
html:not(.ui-v31) body #adsDialog .ads-connection-chip strong { font-size:11px; }
html:not(.ui-v31) body #adsDialog .ads-store-row { border-color:#e1e8ee; border-radius:11px; background:#fbfcfe; }
html:not(.ui-v31) body #adsDialog .ads-store-row .hy-select { min-width:210px; max-width:280px; }
html:not(.ui-v31) body #adsDialog .ads-operation-state { font-size:10px; }

/* Scheduled dialogs use the same scale even though their feature stylesheet
   is loaded separately. */
html:not(.ui-v31) body #scheduledTaskEditorDialog .scheduled-task-form {
  gap:14px;
  margin:16px 22px 22px;
  border:1px solid var(--aurora-dialog-border);
  border-radius:13px;
  padding:17px;
  background:#fff;
}
html:not(.ui-v31) body #scheduledTaskEditorDialog .scheduled-task-form :is(input,textarea,.hy-select-trigger) { font-size:12px; }
html:not(.ui-v31) body #scheduledTaskEditorDialog .scheduled-task-form label > small { font-size:10px; }
html:not(.ui-v31) body #scheduledTaskEditorDialog .scheduled-task-form fieldset { border-color:#dfe7ee; border-radius:10px; }
html:not(.ui-v31) body #scheduledTaskEditorDialog .scheduled-task-form legend { color:#566a80; font-size:11px; }
html:not(.ui-v31) body #scheduledTaskEditorDialog .scheduled-task-form fieldset label { min-height:34px; color:#607489; font-size:10px; }
html:not(.ui-v31) body #scheduledTaskEditorDialog .scheduled-enabled { background:#f5f8fb; }
html:not(.ui-v31) body #scheduledRunsDialog .scheduled-run-row {
  border-color:#e1e8ee;
  border-radius:11px;
  background:#fff;
}
html:not(.ui-v31) body #scheduledRunsDialog .scheduled-run-row :is(span,strong,small) { font-size:10px; }
html:not(.ui-v31) body #scheduledDeleteDialog > .dialog-intro { margin-bottom:17px; }
html:not(.ui-v31) body #scheduledDeleteDialog > footer { padding:0 24px 22px; }

@media (max-width:720px) {
  html:not(.ui-v31) body #adsDialog .ads-store-row .hy-select { grid-column:1 / -1; width:100%; min-width:0; max-width:none; }
  html:not(.ui-v31) body #workspaceConfigDialog .workspace-preferences { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px) {
  html:not(.ui-v31) body dialog.aurora-layer-dialog > .dialog-intro,
  html:not(.ui-v31) body dialog.aurora-layer-dialog .member-dialog-scroll > .dialog-intro { margin:14px 16px 10px; }
  html:not(.ui-v31) body :is(#quickInputDialog,#conversationRenameDialog) > form,
  html:not(.ui-v31) body #scheduledTaskEditorDialog .scheduled-task-form { margin:12px; padding:14px; }
  html:not(.ui-v31) body #workspaceConfigDialog form { padding:0 14px 16px; }
  html:not(.ui-v31) body #workspaceConfigDialog .workspace-preferences { grid-template-columns:minmax(0,1fr); }
  html:not(.ui-v31) body #adsDialog > :is(section,form) { margin-inline:14px; padding:14px; }
}

/* Quiet shop conversations: retain brand/semantic accents, not decorative gradients. */
body:not(.account-workspace) .chat-panel { background:#f8fbfd; }
body:not(.account-workspace) .conversation > .aurora-field { display:none; }
body:not(.account-workspace) .message.assistant .bubble { background:#fff; box-shadow:0 4px 16px rgba(34,61,96,.035); }
body:not(.account-workspace) .message.user .bubble { background:#173451; }
body:not(.account-workspace) .suggestions,
body:not(.account-workspace) .conversation-history-more { background:#fff; box-shadow:none; }
html:not(.ui-v31) body:not(.account-workspace) .message.assistant .run-summary { background:#f4f8fb; box-shadow:none; }
html:not(.ui-v31) body:not(.account-workspace) .message.assistant .markdown-demo blockquote { background:#eff6f9; }
body:not(.account-workspace) .composer-outbox { background:#f8fbfd; }

/* Continuous conversation: an outbox is editable intent, never an approval card. */
.conversation > .run-progress-line { position:relative; z-index:1; display:flex; align-items:center; gap:8px; box-sizing:border-box; min-width:0; max-width:860px; margin:4px 6% 24px calc(var(--assistant-inset) + 52px); border-top:1px solid #dfe6f0; padding:12px 0 6px; color:#758196; font-size:12px; font-weight:400; line-height:22px; }
.conversation > .run-progress-line[hidden] { display:none; }
.run-progress-icon { display:flex; flex:0 0 20px; align-items:center; color:#4b8588; }
.run-progress-icon canvas { display:block; width:20px; height:20px; }
.run-progress-text { flex:1; min-width:0; white-space:normal; overflow-wrap:anywhere; }
.run-progress-line .run-progress-icon { align-self:flex-start; margin-top:1px; }
.conversation > .run-progress-line { color:#687b91; }
.process-history { border-top:1px solid #dfe6f0; padding:8px 0; margin-bottom:8px; color:#687b91; font-size:12px; line-height:21px; font-weight:400; }
.process-history > .process-history-summary { display:flex; align-items:center; gap:7px; width:fit-content; min-height:28px; padding:0 3px; border-radius:5px; color:#687b91; font:inherit; list-style:none; cursor:pointer; transition:color .16s,background .16s; }
.process-history-summary::-webkit-details-marker { display:none; }
.process-history-summary:hover { color:#365e6a; background:#edf4f6; }
.process-history-summary:focus-visible { outline:2px solid #8abbc0; outline-offset:3px; }
.process-history-status { flex:none; width:15px; height:15px; }
.process-history-status.is-complete { color:#4b8588; }
.process-history-chevron { width:13px; height:13px; color:#8492a4; transition:transform .18s ease; }
.process-history[open] .process-history-chevron { transform:rotate(90deg); }
.process-history-body { padding:8px 0 2px; }
.process-history[open] .process-history-body { animation:process-history-enter .18s ease-out; }
@keyframes process-history-enter { from { opacity:0; transform:translateY(-3px); } to { opacity:1; transform:none; } }
@media(prefers-reduced-motion:reduce) { .process-history-summary,.process-history-chevron { transition:none; } .process-history[open] .process-history-body { animation:none; } }
.process-history-row { display:flex; align-items:flex-start; gap:8px; min-width:0; margin-bottom:5px; }
.process-history-row .run-progress-text { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.run-progress-icon,.run-progress-text { opacity:1; transition:opacity .14s ease; }
.run-progress-line.is-changing .run-progress-icon,.run-progress-line.is-changing .run-progress-text { opacity:0; }
@media(max-width:920px) { .conversation > .run-progress-line { margin-right:16px; } }
@media(min-width:921px) { .conversation > .run-progress-line { margin-right:var(--assistant-inset); max-width:900px; } }
@media(max-width:720px) { .conversation > .run-progress-line { font-size:12px; gap:6px; } }
@media(prefers-reduced-motion:reduce) { .run-progress-icon,.run-progress-text { transition:none; } }

.composer-outbox { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; column-gap:12px; row-gap:4px; margin:0 0 7px; padding:9px 12px; border:1px solid #d8e1eb; border-radius:11px; background:linear-gradient(110deg,rgba(83,192,214,.045),rgba(255,255,255,.98) 50%,rgba(82,78,158,.025)); color:#132342; text-align:left; animation:composer-followup-enter .18s ease-out; }
.composer-outbox[hidden] { display:none; }
.composer-outbox-heading { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; min-width:0; }
.composer-outbox strong { color:#415d75; font-size:11px; font-weight:650; }
.composer-outbox-hint { color:#758196; font-size:11px; }
.composer-outbox-content { grid-column:1; margin:0; max-height:56px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; line-height:1.6; }
.composer-outbox small { grid-column:1 / -1; display:block; color:#896739; font-size:11px; overflow-wrap:anywhere; }
.composer-outbox-actions { grid-column:2; grid-row:1 / 3; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px; }
.composer-outbox-actions button { min-height:30px; border:1px solid transparent; border-radius:8px; background:transparent; padding:5px 9px; color:#667a8e; font:inherit; font-size:11px; cursor:pointer; transition:background .18s,border-color .18s,color .18s; }
.composer-outbox-actions button:hover:not(:disabled) { color:#24566a; background:#edf5f7; border-color:#d8e6ed; }
.composer-outbox-actions [data-outbox-action="send_now"] { color:#24566a; border-color:rgba(54,151,143,.44); background:linear-gradient(118deg,rgba(49,141,118,.12),rgba(56,153,168,.14) 58%,rgba(81,77,150,.08)),#f8fcfc; font-weight:650; }
.composer-outbox-actions button:disabled { opacity:.5; cursor:wait; }
.composer-outbox-notice { margin:0 4px 6px; font-size:11px; line-height:1.5; color:#758196; overflow-wrap:anywhere; }
.composer-outbox-notice:empty { display:none; }
.suggestions button.other-ideas { display:inline-flex; align-items:center; gap:6px; min-height:34px; margin:0; padding:0 11px; border:1px solid #a9d5dc; border-radius:8px; background:#eaf6f7; color:#24566a; font-size:9px; font-weight:650; cursor:pointer; text-align:left; white-space:nowrap; transition:background .18s,border-color .18s,color .18s,transform .18s; }
.suggestions button.other-ideas:hover { color:#19485b; border-color:#69b6c4; background:#dff0f3; transform:translateY(-1px); }
.composer-outbox-actions button:focus-visible,button.other-ideas:focus-visible,.composer-context > button:focus-visible { outline:2px solid #53c0d6; outline-offset:2px; }
.composer-context,.composer-outbox { animation:none; box-sizing:border-box; }
.composer-context > button { transition:background .18s,color .18s,transform .18s; }
.composer-context > button:hover { transform:scale(1.08); }
.suggestions { box-sizing:border-box; }
.composer-context > span b { font-size:11px; }
.composer-context > span small { font-size:11px; }
.composer-context[data-kind="question"] { background:#eef8fa; border-color:#c8e4eb; }
.composer-context[data-kind="question"] > span { flex-wrap:nowrap; min-width:0; }
.composer-context[data-kind="question"] > span b { flex:none; color:#24566a; }
.composer-context[data-kind="question"] > span small { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#60798a; }
.conversation-handoff-note { padding:5px 0; color:#758196; font-size:12px; line-height:1.6; }
.message-reply-reference { margin-bottom:6px; font-size:12px; opacity:.7; }
@keyframes composer-followup-enter { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:720px) {
  .composer-outbox { grid-template-columns:minmax(0,1fr); padding:8px 10px; }
  .composer-outbox-actions { grid-column:1; grid-row:auto; }
  .composer-context > span { flex-wrap:wrap; row-gap:3px; }
  .composer-context > span small { flex-basis:100%; }
}
@media (prefers-reduced-motion:reduce) {
  .composer-outbox,.composer-context { animation:none; }
  button.other-ideas,.composer-outbox-actions button,.composer-context > button { transition:none; transform:none; }
}
.long-task-home[hidden], .long-task-guide[hidden] { display:none !important; }
.chat-panel:has(> .long-task-home:not([hidden])) > :not(.agent-header):not(.long-task-home) { display:none !important; }
.chat-panel:has(> .long-task-home:not([hidden])) { grid-template-rows:auto minmax(0,1fr); }
.long-task-home { grid-row:2 / -1; display:grid; place-items:center; min-height:280px; padding:32px 24px; text-align:center; animation:task-home-enter .18s ease-out; }
.long-task-home > div { max-width:460px; }
.long-task-home h2 { color:#183650; font-size:24px; margin:16px 0 12px; }
.long-task-home p, .long-task-guide p { color:#718197; font-size:13px; line-height:1.8; }
.long-task-home-mark { color:#499aa8; font-size:38px; }
.long-task-home button { margin-top:16px; border:1px solid #a8d2d8; border-radius:8px; background:#edf7f8; color:#286073; padding:10px 20px; cursor:pointer; transition:background .18s,transform .18s; }
.long-task-home button:hover { background:#e0f1f3; transform:translateY(-1px); }
.is-continuous-workspace > .context-panel > :not(.long-task-detail):not(.long-task-guide) { display:none !important; }
.long-task-guide { padding:20px; }
@keyframes task-home-enter { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) { .long-task-home { animation:none; } .long-task-home button { transition:none; } }
/* Deployment maintenance is informational; it never resubmits a customer action. */
.cli-maintenance-notice {
  position: fixed;
  z-index: 10000;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border: 1px solid #b8cce6;
  border-radius: 10px;
  background: #f2f7ff;
  color: #234165;
  box-shadow: 0 4px 20px #0002;
}
.cli-maintenance-notice button { white-space: nowrap; }
