/* ZAKI web design system. Brand reference: white + #10c1c4. */
:root,
[data-theme="light"] {
  --brand: #10c1c4;
  --ok: #167552;
  --warn: #8a5a13;
  --error: #b73735;
  --accent: #06777c;
  --accent-hover: #06666d;
  --accent-strong: #087f83;
  --accent-strong-alt: #087f83;
  --accent-soft: #ebf9f9;
  --accent-bg: #e2f5f4;
  --accent-border: #b5e4e4;
  --accent-glow: rgba(16, 193, 196, 0.12);
  --bg-root: #f6f9fa;
  --bg-surface: #fff;
  --bg-sidebar: #fff;
  --bg-card: #fff;
  --bg-panel: #fff;
  --bg-elevated: #eef4f5;
  --bg-input: #fff;
  --bg-hover: #f0f6f7;
  --text-primary: #18343f;
  --text-secondary: #3f5964;
  --text-muted: #566f7b;
  --text-dimmed: #5b7480;
  --text-inverse: #fff;
  --border-default: #dfe9ec;
  --border-subtle: #edf2f4;
  --border-hover: #b5d6db;
  --shadow-card: 0 4px 20px rgba(27, 61, 72, 0.035);
  --shadow-soft: 0 2px 8px rgba(27, 61, 72, 0.035);
  --shadow-elevated: 0 16px 56px rgba(27, 61, 72, 0.1);
  --shadow-glow: none;
  --chat-bg: #fff;
  --chat-composer-bg: #fff;
  --chat-composer-border: #d7e5e8;
  --chat-input-field: transparent;
  --chat-header-bg: #fff;
  --chat-bubble-user: #eaf6f6;
  --chat-bubble-assistant: #fff;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
}
[data-theme="dark"] {
  --brand: #20ced0;
  --ok: #70dcb4;
  --warn: #e5bc73;
  --error: #ffaaa0;
  --accent: #5bd9da;
  --accent-hover: #8ae9e9;
  --accent-strong: #147f84;
  --accent-strong-alt: #147f84;
  --accent-soft: #16373c;
  --accent-bg: #193d42;
  --accent-border: #27565d;
  --accent-glow: rgba(32, 206, 208, 0.1);
  --bg-root: #0d1b23;
  --bg-surface: #12232c;
  --bg-sidebar: #10212a;
  --bg-card: #172a34;
  --bg-panel: #14262f;
  --bg-elevated: #20343f;
  --bg-input: #132630;
  --bg-hover: #213a44;
  --text-primary: #eaf4f6;
  --text-secondary: #c0d3da;
  --text-muted: #9cb4bf;
  --text-dimmed: #91aab5;
  --text-inverse: #0c242b;
  --border-default: #2a404b;
  --border-subtle: #21363f;
  --border-hover: #3c6970;
  --shadow-card: 0 4px 20px #0001;
  --shadow-soft: 0 2px 8px #0001;
  --shadow-elevated: 0 16px 56px #0004;
  --chat-bg: var(--bg-surface);
  --chat-header-bg: var(--bg-surface);
  --chat-composer-bg: var(--bg-card);
  --chat-composer-border: var(--border-default);
  --chat-bubble-user: #1b3d42;
  --chat-bubble-assistant: var(--bg-surface);
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  line-height: 1.65;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  touch-action: manipulation;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a,
button,
input,
textarea,
select,
summary {
  outline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand);
}
[hidden] {
  display: none !important;
}
.zi {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
  background: currentColor;
  mask: var(--icon) center/contain no-repeat;
  -webkit-mask: var(--icon) center/contain no-repeat;
}
.zi-lg {
  width: 1.65rem;
  height: 1.65rem;
}
.skip-link {
  position: fixed;
  top: -100px;
  right: 1rem;
  z-index: 999;
  padding: 0.7rem 1rem;
  background: var(--bg-card);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 0.5rem;
}
.skip-link:focus {
  top: 1rem;
}
.brand-lockup {
  gap: 1rem;
  align-items: center;
}
.brand-logo,
.brand-lockup--compact .brand-logo {
  width: 5.6rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 0;
  flex-shrink: 0;
}
.brand-wordmark {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  font-weight: 600;
  color: var(--text-secondary);
}
.brand-subcopy {
  font-size: 0.7rem;
  margin-top: 0.2rem;
  color: var(--text-muted);
}
.brand-copy {
  border-inline-start: 1px solid var(--border-default);
  padding-inline-start: 0.85rem;
}
.primary-button,
.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: none;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font-weight: 600;
  min-height: 2.8rem;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary-button:hover,
.btn-primary:hover {
  background: #086a70;
  box-shadow: none;
  transform: translateY(-1px);
}
.secondary-button,
.ghost-button,
.toolbar-button,
.btn-secondary {
  border-radius: 0.65rem;
  box-shadow: none;
  font-weight: 500;
  min-height: 2.6rem;
}
.secondary-button,
.toolbar-button,
.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}
.theme-toggle,
.chat-icon-btn {
  border-radius: 0.65rem;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}
.theme-toggle {
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  color: var(--text-muted);
}
.theme-toggle span {
  display: inline-flex;
}
.theme-toggle span[hidden] {
  display: none;
}
.field-input,
.field-select,
.field-textarea {
  border: 1px solid var(--border-default);
  border-radius: 0.65rem;
  background: var(--bg-input);
  padding: 0.8rem 1rem;
  min-height: 3rem;
  box-shadow: none;
  color: var(--text-primary);
}
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}
.field-label {
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.field-help {
  color: var(--text-muted);
  font-size: 0.76rem;
}
.field-input[type="email"],
.field-input[type="tel"],
.field-input[type="password"] {
  direction: ltr;
  text-align: start;
}
.field-input::placeholder {
  color: var(--text-dimmed);
}
.page-title {
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.025em;
}
.page-subtitle {
  max-width: 40rem;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-muted);
}
.eyebrow {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.shell-header {
  background: var(--bg-surface);
  backdrop-filter: none;
}
.shell-header__inner {
  max-width: 80rem;
  padding: 1rem 2rem;
}
.page-shell {
  padding: 2.4rem 1.5rem;
}
.surface-card,
.section-card,
.metric-card {
  border-radius: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-card);
}
.panel-head {
  padding: 1.5rem 1.75rem;
}
.panel-body {
  padding: 1.75rem;
}
.meta-note {
  border-radius: 0.75rem;
  font-size: 0.86rem;
}
.flash-message {
  border-radius: 0.65rem;
}
/* Account flows */
.auth-shell {
  min-height: 100dvh;
  display: flex;
  padding: 2.5rem;
  background: var(--bg-root);
  align-items: center;
  justify-content: center;
}
.auth-shell::before,
.auth-shell::after {
  display: none !important;
}
.auth-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: min(100%, 68rem);
  max-width: 68rem;
  min-height: 43rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}
.auth-hero {
  background: var(--accent-soft);
  margin: 0;
  padding: 3rem;
  text-align: start;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}
.auth-hero .brand-lockup {
  margin: 0;
}
.auth-hero .page-title {
  font-size: clamp(2rem, 3.1vw, 2.9rem);
  max-width: 23rem;
  font-weight: 500;
  line-height: 1.55;
}
.auth-hero .page-subtitle {
  font-size: 1rem;
  max-width: 23rem;
}
.auth-hero__benefits {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.auth-hero__benefits li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.auth-hero__benefits .zi {
  color: var(--accent);
}
.auth-hero__footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--accent-border);
  padding-top: 1.3rem;
  width: 100%;
}
.auth-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 3rem;
  align-self: center;
  background: transparent;
  display: grid;
  gap: 1.5rem;
}
.auth-card .page-title {
  font-size: 1.7rem;
}
.auth-card .page-subtitle {
  font-size: 0.84rem;
  margin-top: 0.4rem;
}
.auth-card form {
  margin-top: 0.5rem;
}
.auth-card .auth-footer {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin: 0;
  font-size: 0.8rem;
}
.auth-card .primary-button {
  margin-top: 1.3rem;
}
.auth-card .eyebrow {
  letter-spacing: 0.08em;
}
.auth-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.auth-topline a {
  font-size: 0.8rem;
  color: var(--text-muted);
}
/* The continuous conversation is the center of the workspace. */
.chat-shell {
  height: 100dvh;
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  padding: 0;
  gap: 0;
  background: var(--bg-root);
  isolation: isolate;
}
.chat-shell::before,
.chat-shell::after,
.chat-empty__poster::before,
.chat-empty__poster::after {
  display: none !important;
}
.workspace-sidebar {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: var(--bg-sidebar);
  border-inline-end: 1px solid var(--border-default);
  padding: 2rem 1.1rem 1rem;
  min-width: 0;
  z-index: 50;
}
.workspace-sidebar__brand {
  padding: 0 0.7rem 1.8rem;
}
.workspace-sidebar__brand .brand-logo {
  width: 5rem;
  height: 2.2rem;
}
.workspace-sidebar__brand .brand-copy {
  padding-inline-start: 0.65rem;
}
.workspace-sidebar__brand .brand-wordmark {
  font-size: 0.6rem;
}
.workspace-sidebar__brand .brand-subcopy {
  font-size: 0.6rem;
}
.workspace-compose {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem;
  margin-bottom: 1.8rem;
}
.workspace-nav {
  display: grid;
  gap: 0.3rem;
}
.workspace-nav button,
.workspace-nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.65rem;
  color: var(--text-muted);
  text-align: start;
  font-size: 0.88rem;
  min-height: 2.9rem;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    color 0.15s;
}
.workspace-nav button:hover,
.workspace-nav a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.workspace-nav .is-active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.workspace-nav .nav-count {
  margin-inline-start: auto;
  font-size: 0.7rem;
  min-width: 1.35rem;
  text-align: center;
  background: var(--bg-surface);
  border-radius: 0.35rem;
}
.workspace-nav-label {
  font-size: 0.68rem;
  color: var(--text-dimmed);
  margin: 1.5rem 0.9rem 0.6rem;
}
.workspace-sidebar__note {
  margin-top: auto;
  padding: 1.2rem 0.8rem;
  color: var(--text-muted);
  font-size: 0.73rem;
  line-height: 1.9;
}
.workspace-sidebar__note strong {
  display: block;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}
.workspace-sidebar__footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-top: 1px solid var(--border-default);
  padding: 1rem 0.35rem 0;
}
.workspace-sidebar__footer a {
  min-width: 0;
  flex: 1;
}
.workspace-sidebar__footer strong {
  font-size: 0.8rem;
  display: block;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-sidebar__footer small {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.workspace-avatar {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.chat-stage {
  position: relative;
  height: 100dvh;
  max-width: none;
  width: 100%;
  padding: 0;
  background: var(--bg-surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.chat-stage__inner {
  width: min(100% - 4rem, 56rem);
  max-width: 56rem;
  margin-inline: auto;
  flex-shrink: 0;
}
.chat-stage__inner:first-child {
  width: 100%;
  max-width: none;
}
.chat-topbar {
  min-height: 5.25rem;
  padding: 1rem 2.5rem;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  background: var(--bg-surface);
  box-shadow: none;
  backdrop-filter: none;
}
.chat-presence {
  gap: 0.9rem;
}
.chat-presence__name {
  font-size: 0.9rem;
  font-weight: 600;
}
.chat-presence__status {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.chat-brand-mark .brand-logo {
  width: 3rem;
  height: 1.6rem;
}
.chat-utility {
  gap: 0.75rem;
}
.chat-utility__caption {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.chat-topbar .theme-toggle {
  border: 0;
}
.workspace-menu-button,
.workspace-sidebar-close {
  display: none;
}
.chat-thread {
  padding: 0 2rem 1rem;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.chat-thread > .message-wrapper,
.chat-thread > #empty-state {
  max-width: 49rem;
  width: 100%;
  margin-inline: auto;
}
.chat-thread > .message-wrapper {
  margin-bottom: 1.4rem;
}
.chat-empty {
  min-height: 100%;
  height: auto;
  padding: 2.5rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-empty__poster {
  padding: 0;
  max-width: 44rem;
  width: 100%;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  text-align: center;
  overflow: visible;
}
.chat-welcome-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  background: var(--accent-soft);
  color: var(--accent);
  margin: 0 auto 1rem;
}
.chat-welcome-mark .zi {
  width: 2rem;
  height: 2rem;
}
.chat-empty__eyebrow {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.chat-empty__title {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0.3rem 0 0.5rem;
}
.chat-empty__title span {
  color: var(--accent);
}
.chat-empty__copy {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto;
}
.chat-prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 2rem auto 0;
  max-width: 39rem;
}
.quick-action-btn {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-align: start;
  gap: 0.85rem;
  border: 1px solid var(--border-default);
  border-radius: 0.85rem;
  padding: 1rem;
  background: var(--bg-card);
  box-shadow: none;
  min-width: 0;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.quick-action-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  box-shadow: none;
  transform: translateY(-2px);
}
.quick-action-btn > .zi {
  color: var(--accent);
  margin-top: 0.15rem;
}
.quick-action-btn strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-primary);
}
.quick-action-btn small {
  display: block;
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.7;
}
.chat-welcome-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}
.chat-composer-wrap {
  padding: 1rem 0 1.25rem;
  margin-top: auto;
  max-width: 49rem;
}
.composer-shell {
  border-radius: 1rem;
  padding: 0.8rem 1rem 0.6rem;
  background: var(--chat-composer-bg);
  border: 1px solid var(--chat-composer-border);
  box-shadow: 0 4px 24px rgba(27, 61, 72, 0.06);
}
.composer-shell:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.chat-composer-row {
  gap: 0.45rem;
  align-items: flex-end;
}
.chat-input {
  border: 0;
  box-shadow: none;
  min-height: 3rem;
  max-height: 10rem;
  border-radius: 0;
  padding: 0.65rem 0.4rem;
  background: transparent;
  line-height: 1.8;
}
.chat-input:focus {
  box-shadow: none;
  outline: none;
}
.chat-icon-btn {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  width: 2.25rem;
  height: 2.7rem;
}
.chat-icon-btn:hover {
  background: var(--bg-hover);
  color: var(--accent);
}
.chat-send-btn {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  border-radius: 0.65rem;
  margin-bottom: 0.15rem;
}
.chat-composer-meta {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.55rem;
  margin-top: 0.4rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  gap: 0.5rem;
}
.chat-disclaimer {
  font-size: 0.63rem;
  color: var(--text-dimmed);
  text-align: center;
  margin: 0.5rem 0 0;
}
.chat-bubble-user {
  background: var(--chat-bubble-user);
  color: var(--text-primary);
  border: 0;
  border-radius: 1rem 1rem 0.25rem 1rem;
  box-shadow: none;
  max-width: 85%;
  padding: 0.9rem 1.1rem;
}
.chat-bubble-user .prose-chat,
.chat-bubble-user .prose-chat h1,
.chat-bubble-user .prose-chat h2,
.chat-bubble-user .prose-chat h3,
.chat-bubble-user .prose-chat a,
.chat-bubble-user .prose-chat code,
.chat-bubble-user .prose-chat blockquote {
  color: var(--text-primary);
}
.chat-bubble-user .chat-message-meta {
  color: var(--text-muted);
}
.chat-bubble-assistant {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0.7rem 0.25rem;
  max-width: calc(100% - 3rem);
}
.message-wrapper.flex.justify-start::before {
  background: var(--accent);
  mask: url("../icons/phosphor/sparkle.svg") center/1.2rem no-repeat;
  -webkit-mask: url("../icons/phosphor/sparkle.svg") center/1.2rem no-repeat;
  border-radius: 0.7rem;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  margin-top: 0.75rem;
  box-shadow: none;
  filter: none;
}
.chat-message-meta {
  font-size: 0.62rem;
  color: var(--text-muted);
}
.prose-chat {
  font-size: 0.95rem;
  line-height: 1.95;
}
.prose-chat pre {
  border: 1px solid var(--border-default);
  background: var(--bg-root);
  border-radius: 0.7rem;
}
.chat-banner {
  margin: 0.7rem 0 0;
  padding: 0.65rem 0.9rem;
  border-radius: 0.7rem;
  align-items: flex-start;
}
.chat-banner__body {
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: 0.8rem;
}
.chat-banner__icon {
  font-size: 0.65rem;
  flex-shrink: 0;
}
.chat-job-card {
  box-shadow: none;
  border-radius: 0.8rem;
  padding: 1rem;
  background: var(--bg-card);
}
.chat-job-card::after {
  display: none;
}
.chat-job-card__visual {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  box-shadow: none;
  border-radius: 0.5rem;
}
.artifact-card {
  box-shadow: none;
  border-radius: 0.8rem;
}
.chat-modal {
  z-index: 100;
  background: rgba(13, 30, 39, 0.45);
  backdrop-filter: blur(4px);
}
.chat-modal__dialog {
  border-radius: 1rem;
  box-shadow: var(--shadow-elevated);
}
/* Files and schedules: live, private, owner-scoped collections. */
.workspace-panel {
  position: absolute;
  inset: 5.25rem 0 0;
  background: var(--bg-root);
  z-index: 15;
  overflow-y: auto;
  padding: 2.5rem clamp(1.2rem, 4vw, 4rem);
}
.workspace-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.workspace-panel h2 {
  font-size: 1.9rem;
  font-weight: 500;
  margin: 0.25rem 0;
}
.workspace-panel__head p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.workspace-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.workspace-search {
  position: relative;
  flex: 1;
  min-width: 12rem;
  max-width: 28rem;
}
.workspace-search .zi {
  position: absolute;
  inset-inline-start: 0.9rem;
  top: 0.85rem;
  color: var(--text-muted);
}
.workspace-search input {
  width: 100%;
  padding-inline-start: 2.7rem;
}
.workspace-filters {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.workspace-filter {
  font-size: 0.78rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border-default);
  border-radius: 0.5rem;
  background: var(--bg-card);
  color: var(--text-muted);
}
.workspace-filter[aria-pressed="true"] {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}
.workspace-collection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}
.workspace-file {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.25rem;
  min-width: 0;
}
.workspace-file__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.68rem;
}
.workspace-file__icon {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 0.7rem;
}
.workspace-file h3 {
  font-size: 0.94rem;
  font-weight: 600;
  margin: 1rem 0 0.4rem;
  overflow-wrap: anywhere;
}
.workspace-file p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.85;
  overflow-wrap: anywhere;
  flex: 1;
}
.workspace-file__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.workspace-file__actions a,
.workspace-file__actions button {
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border-default);
  border-radius: 0.5rem;
}
.workspace-empty {
  grid-column: 1/-1;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  min-height: 19rem;
  padding: 2rem;
  color: var(--text-muted);
  border: 1px dashed var(--border-default);
  border-radius: 1rem;
  background: var(--bg-surface);
}
.workspace-empty > .zi {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.workspace-empty h3 {
  color: var(--text-primary);
  font-size: 1.15rem;
  margin: 0.5rem 0;
}
.workspace-empty p {
  max-width: 28rem;
  font-size: 0.85rem;
}
.workspace-empty button {
  margin-top: 1.25rem;
}
.workspace-load-more {
  display: block;
  margin: 1.5rem auto 0;
}
.workspace-panel-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.workspace-backdrop {
  display: none;
}
/* Operations */
.console-app .console-shell {
  background: var(--bg-root);
  grid-template-columns: 15.5rem minmax(0, 1fr);
}
.console-app .console-panel {
  background: var(--bg-root);
  min-width: 0;
}
.console-app .console-sidebar {
  background: var(--bg-sidebar);
  backdrop-filter: none;
  border-inline-start: 0;
  border-inline-end: 1px solid var(--border-default);
}
.console-app .console-sidebar__header {
  padding: 1.6rem 1.2rem 1.2rem;
}
.console-app .console-brand {
  align-items: center;
  margin-bottom: 1.25rem;
}
.console-brand .brand-logo {
  width: 4.5rem;
  height: 2.1rem;
}
.console-app .console-brand .brand-wordmark {
  font-size: 0.62rem;
}
.console-app .console-brand .brand-subcopy {
  font-size: 0.61rem;
}
.console-sidebar__header > .toolbar-button {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
  font-size: 0.78rem;
}
.console-app .console-sidebar__body {
  padding: 0.75rem 0.75rem 1rem;
}
.console-app .nav-section-title {
  color: var(--text-dimmed);
  font-size: 0.63rem;
  letter-spacing: 0;
  padding: 0.75rem 0.65rem 0.3rem;
}
.console-app .console-nav a {
  border-radius: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  gap: 0.7rem;
  min-height: 2.6rem;
  font-size: 0.78rem;
  border: 0;
  color: var(--text-muted);
}
.console-app .console-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
  border: 0;
  box-shadow: none;
}
.console-app .console-nav a.active::before {
  display: none;
}
.console-app .nav-icon {
  width: 1.15rem;
  height: 1.15rem;
  background: none;
  border-radius: 0;
}
.console-app .console-sidebar__footer {
  padding: 1rem;
  background: var(--bg-sidebar);
}
.console-app .user-avatar {
  background: var(--accent-soft);
  color: var(--accent);
  border: 0;
  box-shadow: none;
}
.console-app .console-topbar {
  min-height: 6rem;
  padding: 1.25rem 2rem;
  background: var(--bg-surface);
  backdrop-filter: none;
  border-bottom: 1px solid var(--border-default);
  box-shadow: none;
}
.console-app .console-topbar__heading {
  font-size: 1.3rem;
  font-weight: 600;
}
.console-app .console-topbar__copy {
  font-size: 0.77rem;
  max-width: 38rem;
}
.console-app .console-topbar .eyebrow {
  color: var(--text-dimmed);
  font-size: 0.6rem;
}
.console-app .console-main {
  padding: 2rem;
  max-width: 100rem;
  margin: 0 auto;
}
.console-app .greeting-section {
  padding: 0 0 1.5rem;
  margin: 0;
}
.console-app .greeting-text {
  font-size: 1.55rem;
  font-weight: 500;
}
.console-app .greeting-sub {
  font-size: 0.82rem;
  margin-top: 0.25rem;
}
.console-app .metric-card {
  border-radius: 0.8rem;
  padding: 1.25rem;
  box-shadow: none;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  overflow: hidden;
}
.console-app .metric-card::before {
  display: none;
}
.console-app .stat-value {
  font-size: 1.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.console-app .metric-card .stat-value.text-xl {
  font-size: 1.15rem;
}
.console-app .muted-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.console-app .hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.console-app .section-card {
  box-shadow: none;
  border-radius: 0.85rem;
}
.console-app .status-badge {
  font-size: 0.66rem;
  font-weight: 500;
  padding: 0.3rem 0.5rem;
  border-radius: 0.4rem;
}
.console-app .status-badge::before {
  width: 4px;
  height: 4px;
}
.console-app .kv-card {
  box-shadow: none;
  border: 0;
  background: var(--bg-root);
  border-radius: 0.6rem;
}
.console-app .data-table th {
  background: var(--bg-root);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.85rem 1rem;
}
.console-app .data-table td {
  font-size: 0.8rem;
  padding: 1rem;
  border-color: var(--border-subtle);
}
.console-app .table-shell {
  border: 1px solid var(--border-default);
  border-radius: 0.65rem;
}
.console-app .data-table tbody tr:hover {
  background: var(--bg-hover);
}
.console-app .toolbar-button {
  font-size: 0.76rem;
  min-height: 2.5rem;
}
.console-app .console-cmd__dialog {
  border-radius: 1rem;
  box-shadow: var(--shadow-elevated);
}
.console-app .input-field,
.console-app .select-field,
.console-app textarea,
.console-app input[type="search"] {
  border-radius: 0.6rem;
  background: var(--bg-input);
}
.console-close-sidebar {
  display: none;
}
.console-app .kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.console-app .readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.console-app .readiness-grid .metric-card {
  background: var(--bg-surface);
  border-top: 2px solid var(--border-hover);
}
/* Profile */
.profile-layout {
  max-width: 68rem;
  margin: auto;
  display: grid;
  grid-template-columns: 19rem minmax(0, 1fr);
  gap: 1.5rem;
}
.profile-summary {
  align-self: start;
  padding: 1.75rem;
  text-align: center;
}
.profile-summary .workspace-avatar {
  width: 4rem;
  height: 4rem;
  font-size: 1.3rem;
  margin: auto;
}
.profile-summary h1 {
  font-size: 1.2rem;
  margin: 1rem 0 0.3rem;
  font-weight: 600;
}
.profile-summary > p {
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.profile-summary .identity-card {
  padding: 1.5rem 0 0;
  text-align: start;
}
.profile-summary .identity-row {
  padding: 0.8rem 0;
  margin: 0;
}
.profile-summary .identity-label,
.profile-summary .identity-value {
  font-size: 0.76rem;
}
.profile-summary .identity-value {
  max-width: 58%;
  overflow-wrap: anywhere;
}
.profile-section {
  padding: 1.75rem;
}
.profile-section h2 {
  font-size: 1.3rem;
  font-weight: 500;
}
.profile-section > p {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin: 0.5rem 0 1.5rem;
}
.preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.preference-row label {
  font-size: 0.9rem;
  font-weight: 500;
}
.preference-row p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.preference-row select {
  width: 11rem;
  max-width: 50%;
}
.preference-row input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--accent);
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.profile-actions button {
  padding: 0.65rem 1rem;
}
.profile-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
@media (min-width: 1500px) {
  .chat-stage__inner {
    max-width: 61rem;
  }
  .chat-empty__title {
    font-size: 3rem;
  }
  .chat-empty {
    padding-top: 3rem;
  }
  .chat-prompt-grid {
    margin-top: 2.5rem;
  }
}
@media (max-width: 1200px) {
  .console-app .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .console-app .readiness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .console-app .console-main {
    padding: 1.5rem;
  }
  .console-app .console-topbar {
    padding: 1rem 1.5rem;
  }
  .chat-shell {
    grid-template-columns: 13.5rem minmax(0, 1fr);
  }
  .workspace-sidebar {
    padding-inline: 0.8rem;
  }
  .chat-topbar {
    padding-inline: 1.5rem;
  }
  .chat-empty__title {
    font-size: 2.1rem;
  }
  .chat-stage__inner {
    width: calc(100% - 3rem);
  }
  .chat-empty {
    padding-top: 1.5rem;
  }
  .chat-prompt-grid {
    margin-top: 1.5rem;
  }
  .auth-hero,
  .auth-card {
    padding: 2rem;
  }
  .auth-shell {
    padding: 1.5rem;
  }
  .profile-layout {
    grid-template-columns: 17rem minmax(0, 1fr);
  }
}
@media (max-width: 1023px) {
  .console-app .console-shell {
    display: block;
  }
  .console-app .console-sidebar {
    width: 16.5rem;
  }
  .console-close-sidebar {
    display: inline-flex;
    float: left;
  }
  .console-app .console-main {
    padding: 1.25rem;
  }
  .console-app .console-topbar__copy {
    max-width: 27rem;
  }
  .console-app .console-topbar__actions {
    gap: 0.4rem;
  }
  .console-app .console-topbar .eyebrow {
    display: none;
  }
}
@media (max-width: 800px) {
  .chat-shell {
    display: block;
  }
  .workspace-sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    width: 17rem;
    height: 100dvh;
    transform: translateX(105%);
    transition: transform 0.22s;
    box-shadow: var(--shadow-elevated);
  }
  .workspace-sidebar.is-open {
    transform: none;
  }
  .workspace-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(13, 30, 39, 0.4);
    border: 0;
  }
  .workspace-menu-button {
    display: inline-flex;
    margin-inline-end: 0.3rem;
  }
  .workspace-sidebar-close {
    display: inline-flex;
    position: absolute;
    top: 1rem;
    left: 1rem;
  }
  .workspace-sidebar__brand {
    padding-top: 0.5rem;
  }
  .chat-topbar {
    min-height: 4.6rem;
    padding: 0.9rem 1.2rem;
  }
  .chat-presence__name {
    font-size: 0.85rem;
  }
  .chat-utility__caption {
    display: none;
  }
  .chat-stage__inner {
    width: calc(100% - 2rem);
  }
  .chat-thread {
    padding-inline: 1rem;
  }
  .chat-composer-wrap {
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
  }
  .workspace-panel {
    inset-block-start: 4.6rem;
    padding: 1.5rem;
  }
  .workspace-panel__head {
    margin-bottom: 1.25rem;
  }
  .workspace-panel h2 {
    font-size: 1.5rem;
  }
  .auth-frame {
    grid-template-columns: 1fr;
    max-width: 31rem;
    min-height: 0;
  }
  .auth-hero {
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--accent-border);
  }
  .auth-hero__benefits,
  .auth-hero__footer,
  .auth-hero .page-subtitle {
    display: none;
  }
  .auth-hero .page-title {
    font-size: 1.4rem;
    margin: 0 !important;
  }
  .auth-hero > .auth-hero__message {
    display: none;
  }
  .auth-hero .brand-lockup {
    width: 100%;
  }
  .auth-card {
    padding: 2rem;
  }
  .auth-shell {
    padding: 1.25rem;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-summary .identity-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
  }
}
@media (max-width: 540px) {
  .chat-empty {
    padding: 1.5rem 0 0.5rem;
    align-items: flex-start;
  }
  .chat-welcome-mark {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    margin-bottom: 0.7rem;
  }
  .chat-welcome-mark .zi {
    width: 1.5rem;
    height: 1.5rem;
  }
  .chat-empty__eyebrow {
    font-size: 0.72rem;
  }
  .chat-empty__title {
    font-size: 1.75rem;
  }
  .chat-empty__copy {
    font-size: 0.8rem;
    max-width: 20rem;
  }
  .chat-prompt-grid {
    gap: 0.55rem;
    margin-top: 1.4rem;
  }
  .quick-action-btn {
    padding: 0.8rem;
    gap: 0.4rem;
    flex-direction: column;
  }
  .quick-action-btn strong {
    font-size: 0.76rem;
  }
  .quick-action-btn small {
    font-size: 0.65rem;
  }
  .quick-action-btn > .zi {
    width: 1.1rem;
    height: 1.1rem;
    margin-bottom: 0.25rem;
  }
  .chat-welcome-note {
    font-size: 0.6rem;
    margin-top: 0.8rem;
  }
  .chat-composer-meta {
    font-size: 0.57rem;
    line-height: 1.6;
  }
  .chat-composer-row {
    gap: 0.05rem;
  }
  .chat-icon-btn {
    width: 2rem;
  }
  .chat-input {
    font-size: 16px !important;
    padding-inline: 0.15rem;
  }
  .composer-shell {
    padding: 0.65rem 0.6rem 0.5rem;
  }
  .chat-composer-wrap {
    padding-top: 0.5rem;
  }
  .chat-disclaimer {
    font-size: 0.55rem;
  }
  .chat-brand-mark {
    display: none;
  }
  .chat-topbar {
    padding: 0.7rem 0.8rem;
  }
  .chat-presence {
    gap: 0.5rem;
  }
  .workspace-panel {
    padding: 1.2rem;
  }
  .workspace-panel__head {
    align-items: center;
  }
  .workspace-panel__head p {
    font-size: 0.75rem;
  }
  .workspace-panel__head button {
    font-size: 0.75rem;
  }
  .workspace-collection {
    grid-template-columns: 1fr;
  }
  .workspace-toolbar {
    gap: 0.75rem;
  }
  .workspace-search {
    max-width: none;
  }
  .workspace-panel h2 {
    font-size: 1.35rem;
  }
  .console-app .kpi-grid,
  .console-app .readiness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .console-app .metric-card {
    padding: 1rem 0.85rem;
  }
  .console-app .stat-value {
    font-size: 1.55rem;
  }
  .console-app .console-main {
    padding: 1rem;
  }
  .console-app .console-topbar {
    padding: 1rem;
    gap: 0.65rem;
    align-items: flex-start;
  }
  .console-app .console-topbar__copy {
    display: none;
  }
  .console-app .console-topbar__heading {
    font-size: 1.1rem;
  }
  .console-app .console-topbar__actions {
    flex-wrap: wrap;
  }
  .console-app .console-topbar__actions > .toolbar-button {
    padding: 0.5rem;
    font-size: 0.68rem;
  }
  .console-app .greeting-section {
    align-items: flex-start;
    gap: 0.5rem;
  }
  .console-app .greeting-text {
    font-size: 1.2rem;
  }
  .console-app .greeting-sub {
    font-size: 0.73rem;
  }
  .auth-shell {
    padding: 0.75rem;
  }
  .auth-card {
    padding: 1.5rem;
  }
  .auth-hero {
    padding: 1.3rem 1.5rem;
  }
  .auth-frame {
    border-radius: 1rem;
  }
  .auth-card .page-title {
    font-size: 1.5rem;
  }
  .shell-header__inner {
    padding: 0.8rem 1rem;
  }
  .shell-header__actions {
    gap: 0.2rem;
  }
  .shell-link {
    font-size: 0.7rem;
    padding: 0.35rem;
  }
  .shell-brand .brand-copy {
    display: none;
  }
  .page-shell {
    padding: 1.5rem 1rem;
  }
  .profile-summary,
  .profile-section {
    padding: 1.25rem;
  }
  .profile-summary .identity-card {
    grid-template-columns: 1fr;
  }
  .preference-row {
    gap: 0.75rem;
  }
  .preference-row select {
    width: 9rem;
  }
  .profile-section h2 {
    font-size: 1.2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Utility visibility wins over component display declarations. */
.hidden {
  display: none !important;
}
.quick-action-btn {
  min-height: 5.25rem;
}
.workspace-sidebar__body {
  min-height: 0;
  overflow: auto;
}
.workspace-sidebar__footer > .theme-toggle {
  flex: 0 0 2.5rem;
}
@media (min-width: 640px) {
  .sm\:inline {
    display: inline !important;
  }
  .sm\:block {
    display: block !important;
  }
}
@media (max-height: 800px) and (min-width: 801px) {
  .workspace-sidebar {
    padding-top: 1.5rem;
  }
  .workspace-sidebar__brand {
    padding-bottom: 1.2rem;
  }
  .workspace-compose {
    margin-bottom: 0.7rem;
  }
  .workspace-nav-label {
    margin-top: 1rem;
  }
  .workspace-sidebar__note {
    padding: 0.75rem 0.8rem;
    font-size: 0.67rem;
  }
  .workspace-sidebar__footer {
    padding-top: 0.75rem;
  }
  .workspace-nav a {
    min-height: 2.6rem;
    padding: 0.55rem 0.9rem;
  }
  .chat-empty {
    padding-block: 1.25rem 0.75rem;
  }
  .chat-empty__title {
    font-size: 2.1rem;
  }
  .chat-prompt-grid {
    margin-top: 1.25rem;
  }
  .chat-welcome-mark {
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.65rem;
  }
  .chat-welcome-mark .zi {
    width: 1.65rem;
    height: 1.65rem;
  }
  .chat-welcome-note {
    margin-top: 0.8rem;
  }
}
.message-wrapper.flex.justify-start {
  position: relative;
  padding-inline-start: 2.8rem;
  gap: 0.7rem;
}
.message-wrapper.flex.justify-start::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.1rem;
}
.chat-presence__status.status-active::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  margin-inline-end: 0.4rem;
  vertical-align: middle;
}
[data-theme="dark"] .chat-bubble-user {
  background: var(--chat-bubble-user);
  color: var(--text-primary);
}
[data-theme="dark"] .chat-bubble-assistant {
  background: transparent;
}
[data-theme="dark"] .chat-empty__poster {
  background: transparent;
  box-shadow: none;
  border: 0;
}
[data-theme="dark"] .quick-action-btn {
  background: var(--bg-card);
  border-color: var(--border-default);
}
[data-theme="dark"] .quick-action-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}
.chat-topbar {
  flex-direction: row;
  align-items: center;
}
.chat-utility {
  width: auto;
}
.chat-composer-row {
  flex-wrap: nowrap;
}
.chat-input {
  width: auto;
  flex: 1;
  min-width: 0;
}
.workspace-sidebar {
  overflow-y: auto;
}
.chat-stage > .chat-stage__inner:first-child {
  width: 100%;
  max-width: none;
}
@media (max-width: 800px) {
  .workspace-sidebar {
    visibility: hidden;
  }
  .workspace-sidebar.is-open {
    visibility: visible;
  }
  .workspace-sidebar__footer {
    flex-shrink: 0;
  }
}
.error-page {
  min-height: 100dvh;
  max-width: 70rem;
  margin: auto;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.error-page__content {
  margin: auto 0;
  padding: 5rem 0;
  max-width: 36rem;
}
.error-page__content .eyebrow {
  font-size: 1.3rem;
}
.error-page__content .page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-block: 0.7rem 1rem;
}
.error-page__content .primary-button {
  display: inline-flex;
  padding: 0.7rem 1.2rem;
  margin-top: 2rem;
}
.error-page__support {
  font-size: 0.8rem;
  color: var(--text-muted);
}
@media (max-width: 540px) {
  .error-page {
    padding: 1.5rem;
  }
}
.workspace-file progress {
  display: block;
  width: 100%;
  height: 0.4rem;
  margin-top: 1rem;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  accent-color: var(--brand);
  background: var(--bg-elevated);
}
.workspace-file progress::-webkit-progress-bar {
  background: var(--bg-elevated);
  border-radius: 1rem;
}
.workspace-file progress::-webkit-progress-value {
  background: var(--brand);
  border-radius: 1rem;
}
.workspace-file progress::-moz-progress-bar {
  background: var(--brand);
  border-radius: 1rem;
}
.console-app .console-nav a .nav-icon,
.console-app .console-nav a:is(:hover, .active) .nav-icon {
  background: currentColor;
  color: inherit;
  opacity: 1;
  border: 0;
  border-radius: 0;
  width: 1.15rem;
  height: 1.15rem;
  box-shadow: none;
}
@media (max-width: 1023px) {
  .console-app .console-sidebar {
    visibility: hidden;
  }
  .console-app .console-sidebar.open {
    visibility: visible;
  }
}
.console-app .table-shell {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.console-app .toolbar-button.primary {
  background: var(--accent-strong);
  color: #fff;
  border-color: transparent;
  box-shadow: none;
}
.console-app .toolbar-button.primary:hover {
  background: #06666d;
}
.console-app tr[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.console-app .toolbar-button .zi {
  width: 1rem;
  height: 1rem;
}
.prose-chat ul {
  list-style: disc;
}
.prose-chat ol {
  list-style: decimal;
}
.prose-chat :is(ul, ol) {
  padding-inline-start: 1.5rem;
  padding-inline-end: 0;
}
.prose-chat table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.88em;
}
.prose-chat :is(th, td) {
  border: 1px solid var(--border-default);
  padding: 0.65rem 0.9rem;
  text-align: start;
  min-width: 7rem;
}
.prose-chat th {
  background: var(--bg-root);
  font-weight: 600;
}
.prose-chat blockquote {
  border-inline-start: 3px solid var(--accent-border);
  margin: 1rem 0;
  padding: 0.3rem 1rem;
  color: var(--text-secondary);
}
.prose-chat pre {
  direction: ltr;
  text-align: left;
}
.prose-chat pre code {
  display: block;
  white-space: pre;
}
.prose-chat h1 {
  font-size: 1.45em;
}
.prose-chat h2 {
  font-size: 1.25em;
}
.prose-chat h3 {
  font-size: 1.1em;
}
