[data-shell=assistant] {
  --ah-canvas:#f7faf8;
  --ah-surface:#fff;
  --ah-line:#d9e7e1;
  --ah-hero:#e8f4ed;
  --ah-accent:#10634f;
  --ah-mark:#eaf5ee;
  --ah-strong:#142e28;
  min-height:100vh;
  background:var(--ah-canvas);
}
:root[data-theme=dark] [data-shell=assistant] {
  --ah-canvas:#101e1b;
  --ah-surface:#182924;
  --ah-line:#34504a;
  --ah-hero:#192f28;
  --ah-accent:#a5ebc9;
  --ah-mark:#24463b;
  --ah-strong:#eefaf3;
}
[data-shell=assistant] .rail {
  background:var(--ah-surface);
  border-color:var(--ah-line);
  padding:26px 16px 18px;
}
[data-shell=assistant] .brand {min-height:44px;gap:9px;font-size:25px}
[data-shell=assistant] .brand .ice-ribbon {width:32px;height:32px}
[data-shell=assistant] .rail .signature,[data-shell=assistant] #menu,[data-shell=assistant] .bar .trail {display:none}
[data-shell=assistant] #portals {display:grid;gap:6px;margin-top:34px}
[data-shell=assistant] #portals a {min-height:48px;border-radius:10px}
[data-shell=assistant] #portals a[aria-current] {color:var(--ah-accent);background:var(--ah-mark)}
[data-shell=assistant] #portals a .icon {width:19px;height:19px}
[data-shell=assistant] .bar {
  min-height:69px;
  background:var(--ah-surface);
  padding:9px clamp(20px,3.2vw,48px);
  border-color:var(--ah-line);
}
[data-shell=assistant] #toolbar {gap:4px}
[data-shell=assistant] #toolbar button,.cx-dialog > header button {min-width:44px;min-height:44px}
[data-shell=assistant] #toolbar .cx-avatar {margin-left:6px}
[data-shell=assistant] .cx-avatar .icon {width:20px;height:20px}
[data-shell=assistant][data-session=closed] .bar {display:none}
.ah-workspace-name,.ah-rail-note {color:var(--muted);font-size:14px;font-weight:650;overflow-wrap:anywhere}
[data-shell=assistant] main {margin-inline:auto;padding-top:clamp(20px,3.5vw,48px)}
[data-shell=assistant] :is(a,button,textarea,summary):focus-visible {outline:2px solid var(--ah-accent)!important;outline-offset:3px}
.ah-home,.ah-page {max-width:960px;margin-inline:auto;min-width:0}
.ah-page > .cx-hero {margin:12px 0 24px}
.ah-home {display:grid;gap:28px}
.ah-hero {
  position:relative;
  isolation:isolate;
  display:grid;
  justify-items:center;
  gap:24px;
  padding:clamp(24px,4.4vw,52px) clamp(16px,5.4vw,80px);
  border-radius:24px;
  border:1px solid var(--ah-line);
  background:
    radial-gradient(ellipse at 50% 0%,transparent 45%,var(--ah-hero) 74%),
    radial-gradient(ellipse at 50% 18%,var(--ah-surface),var(--ah-hero) 78%);
}
.ah-intro {text-align:center;max-width:100%}
.ah-hero-mark {
  display:grid;
  place-items:center;
  width:60px;
  height:60px;
  margin:0 auto 16px;
  border-radius:19px;
  border:1px solid var(--ah-line);
  background:var(--ah-surface);
  box-shadow:0 4px 16px #0b5e4e12;
}
.ah-hero h1,.ah-page h1,.ah-signin h1 {color:var(--ah-strong,var(--ink));font-weight:760;letter-spacing:-.055em}
.ah-hero h1 {font-size:clamp(32px,4.25vw,60px);line-height:1.04;margin:0}
.ah-intro p,.ah-signin > p {margin:12px 0 0;color:var(--muted);font-size:16px;line-height:1.5}
.ah-composer {
  background:var(--ah-surface);
  border:1px solid var(--ah-line);
  border-radius:18px;
  width:min(100%,700px);
  padding:12px;
  box-shadow:0 7px 24px #0a302714;
}
.ah-composer:focus-within {border-color:var(--ah-accent)}
.ah-composer > textarea {
  display:block;
  width:100%;
  min-height:62px;
  padding:12px;
  border:0;
  border-radius:8px;
  resize:vertical;
  background:transparent;
  font:inherit;
  font-size:16px;
  line-height:1.4;
  color:var(--ah-strong);
}
.ah-composer textarea::placeholder {color:var(--muted);opacity:1}
.ah-composer textarea:focus-visible {outline-offset:0!important}
.ah-draft-shelf {margin-top:8px;padding:0 6px;border-top:1px solid var(--ah-line);color:var(--ah-strong)}
.ah-draft-shelf summary {padding-block:12px;font-size:14px;cursor:pointer}
.ah-draft-shelf .actions button,.ah-saved-draft button {min-height:44px;white-space:normal;overflow-wrap:anywhere}
.ah-draft-shelf .cx-note:empty {display:none}
.ah-saved-draft {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-block:8px}
.ah-composer-controls {display:flex;justify-content:space-between;align-items:center;gap:8px}
.ah-composer-context {padding:4px 12px 10px}
.ah-composer-context label {display:grid;gap:8px;color:var(--ah-strong);font-size:14px}
.ah-composer-context textarea {resize:vertical;min-height:80px;width:100%;border-radius:8px;font:inherit;padding:10px}
.ah-dictation {margin-block:8px}
.ah-dictation-label,.ah-transcript {margin-block:8px;color:var(--ah-strong);overflow-wrap:anywhere}
.ah-dictation button {min-height:44px}
.ah-dictation .cx-note:empty,.ah-transcript:empty {display:none}
.ah-secondary,.ah-submit {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  border-radius:10px;
}
.ah-secondary {padding:0 8px;background:none;border:0;color:var(--ah-accent);font:inherit;font-size:14px;font-weight:650;white-space:nowrap}
.ah-secondary:hover,.ah-secondary[aria-expanded=true] {background:var(--ah-mark)}
.ah-secondary .icon,.ah-submit .icon {width:17px;height:17px}
.ah-submit {font-size:14px;padding-inline:16px}
.ah-section-head {display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.ah-section-head h2 {color:var(--ah-strong);font-size:21px;margin:0;letter-spacing:-.035em}
.ah-inline-link {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  color:var(--ah-accent);
  font-size:14px;
  text-decoration:none;
  font-weight:650;
}
.ah-inline-link .icon {width:16px;height:16px;order:1}
.ah-inline-link:hover {text-decoration:underline}
.ah-tool-back {margin-bottom:8px}
.ah-feed {display:grid;gap:16px;min-width:0}
.ah-review-alert,.ah-option,.ah-task-row,.ah-empty {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  width:100%;
  text-align:left;
  line-height:1.35;
  text-decoration:none;
  color:var(--ah-strong);
}
.ah-review-alert {
  padding:12px 16px;
  min-height:62px;
  border:1px solid var(--ah-line);
  border-radius:12px;
  background:var(--ah-mark);
}
.ah-review-alert > .icon {width:19px;height:19px;color:var(--ah-accent)}
.ah-review-alert:hover,.ah-option:hover {border-color:var(--ah-accent)}
.ah-task-list > :is(.ah-task-row,.ah-empty) {border-inline:1px solid var(--ah-line)}
.ah-task-list > :is(.ah-task-row,.ah-empty):first-of-type {border-top:1px solid var(--ah-line);border-radius:12px 12px 0 0}
.ah-task-list > :is(.ah-task-row,.ah-empty):last-of-type {border-radius:0 0 12px 12px}
.ah-task-list > :is(.ah-task-row,.ah-empty):only-of-type {border-radius:12px}
.ah-task-row,.ah-empty {padding:12px 15px;min-height:65px;background:var(--ah-surface);border-bottom:1px solid var(--ah-line)}
.ah-task-row {grid-template-columns:auto minmax(0,1fr) auto auto}
.ah-task-row:hover {background:var(--ah-mark)}
.ah-task-row > .icon,.ah-option > .icon:last-child {width:16px;height:16px;color:var(--ah-accent)}
.ah-option {padding:12px;min-height:66px;border:1px solid var(--ah-line);border-radius:12px;background:var(--ah-surface);font:inherit}
.ah-option-icon {display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:var(--ah-mark);color:var(--ah-accent)}
.ah-option-icon .icon,.ah-option > .icon:first-child {width:19px;height:19px}
.ah-option strong,.ah-task-row strong,.ah-empty strong,.ah-review-alert strong {display:block;font-size:15px;overflow-wrap:anywhere}
.ah-option small,.ah-task-row small,.ah-empty small,.ah-review-alert small {display:block;margin-top:3px;color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.ah-shortcut-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ah-settings-list {display:grid;gap:8px}
.ah-filters {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.ah-filter {display:inline-flex;align-items:center;min-height:44px;padding:0 15px;color:var(--ah-accent);border-radius:10px;border:1px solid var(--ah-line);text-decoration:none}
.ah-filter[aria-current],.ah-filter:hover {background:var(--ah-mark)}
.ah-personal-page > h1 {margin:6px 0 20px}
.ah-task-detail h1,.ah-account-ids dd {overflow-wrap:anywhere}
.ah-task-detail .cx-exec-grid {margin-top:16px}
.ah-task-detail .cx-run-heading {margin-bottom:12px}
.ah-task-detail .cx-run-controls button,.cx-dialog .actions button {min-height:44px}
.ah-account-ids {margin:12px 0}
.ah-account-ids dt {font-weight:650}
.ah-account-ids dd {margin:3px 0 12px}
.ah-signin {
  width:min(100%,500px);
  margin:clamp(24px,9vw,108px) auto 0;
  padding:clamp(20px,4vw,40px);
  border:1px solid var(--ah-line,var(--line));
  border-radius:20px;
  background:var(--ah-surface,var(--paper));
}
.ah-signin h1 {margin:0;font-size:clamp(28px,4vw,40px)}
.ah-signin .actions,.ah-signin .catalog-drawer {margin-top:20px}
@media(max-width:800px) and (min-width:741px) {
  [data-shell=assistant] .rail {padding-inline:12px}
  [data-shell=assistant] .brand {font-size:23px;gap:6px}
  [data-shell=assistant] .brand .ice-ribbon {width:29px;height:29px}
}
@media(max-width:740px) {
  [data-shell=assistant] .rail {display:block;padding:0;border:0;height:0;overflow:visible}
  [data-shell=assistant] .rail .brand {position:absolute;left:12px;top:9px;z-index:1}
  [data-shell=assistant] .body {margin:0}
  [data-shell=assistant] .bar {min-height:63px;padding:5px 12px 5px 145px;flex-wrap:nowrap;gap:8px}
  [data-shell=assistant] #toolbar {gap:0}
  [data-shell=assistant] #command-bar {display:none}
  [data-shell=assistant][data-session=closed] .rail {height:63px;background:var(--ah-surface);border-bottom:1px solid var(--ah-line)}
  [data-shell=assistant] #portals {
    z-index:15;
    position:fixed;
    inset:auto 0 0;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:4px;
    margin:0;
    padding:6px 8px max(6px,env(safe-area-inset-bottom));
    border-top:1px solid var(--ah-line);
    background:var(--ah-surface);
  }
  [data-shell=assistant] #portals:empty {display:none}
  [data-shell=assistant] #portals a {display:flex;flex-direction:column;justify-content:center;gap:4px;padding:4px 0;font-size:12px}
  [data-shell=assistant] #portals a .icon {width:18px;height:18px}
  [data-shell=assistant] main {padding:16px 14px max(88px,calc(env(safe-area-inset-bottom) + 76px))}
  .ah-home {gap:18px}
  .ah-hero {gap:16px;border-radius:18px}
  .ah-hero-mark {width:47px;height:47px;border-radius:14px;margin-bottom:12px}
  .ah-hero-mark img {width:30px;height:30px}
  .ah-intro p {font-size:14px;margin-top:9px}
  .ah-composer {padding:8px}
  .ah-composer > textarea {padding:8px}
  .ah-shortcut-grid {grid-template-columns:1fr}
}
@media(max-width:390px) {
  .ah-section-head h2 {font-size:19px}
  .ah-task-row {grid-template-columns:auto minmax(0,1fr) auto;gap:8px;padding:10px}
  .ah-task-row > .icon {display:none}
}
@media(max-width:340px) {
  [data-shell=assistant] #toolbar button[aria-label="Search workspace"] {display:none}
  .ah-composer-controls {gap:4px}
  .ah-secondary,.ah-submit {font-size:13px;gap:4px;padding-inline:8px}
}
@media(forced-colors:active) {
  .ah-filter[aria-current],[data-shell=assistant] #portals a[aria-current] {outline:1px solid Highlight}
}
