.shell {
  position: relative;
  z-index: 1;
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  min-height: 44px;
  padding-inline: 18px;
  box-shadow: none;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 16px 0;
}

.app-brand,
.app-menu-link {
  text-decoration: none;
  color: var(--text);
}

.app-navbar {
  padding: 14px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.app-brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-menu,
.app-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app-menu-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.app-menu-link.active {
  background: rgba(255, 155, 84, 0.16);
  border: 1px solid rgba(255, 155, 84, 0.28);
}

.panel,
.hero {
  background: var(--panel);
  border-radius: 26px;
  padding: var(--space-6);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(18px);
}

.detail-card,
.flow-group,
.task-card,
.result-card {
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.34);
}

.card-head,
.card-body,
.empty-state-body,
.form-stack,
.stack-sm {
  display: grid;
  gap: var(--space-3);
}

.card-head {
  padding: 18px 18px 0;
}

.card-body {
  padding: 14px 18px 18px;
}

.task-card,
.result-card {
  overflow: hidden;
}

.panel-head,
.toolbar,
.task-title,
.flow-group-head,
.badge-row,
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.panel-head h2,
.card-head h2,
.result-head strong,
.task-title strong {
  font-size: var(--title-3);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hero-badges,
.toolbar,
.task-actions,
.actions,
.artifacts,
.node-pills,
.task-flow-row,
.badge-row,
.hero-actions,
.assist-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badge,
.pill,
.artifact-link,
.status,
.task-flow-badge,
.badge,
.step-chip,
.assist-chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.badge {
  color: #3e5977;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status,
.task-flow-badge {
  font-size: var(--text-xs);
  font-weight: 700;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.check input {
  width: auto;
}

.banner {
  display: none;
  border-radius: 16px;
  padding: 13px 15px;
  font-size: var(--text-sm);
  line-height: 1.55;
}

.banner.show {
  display: block;
}

.banner.info {
  background: rgba(95, 168, 255, 0.1);
  color: #355780;
}

.banner.error,
.login-banner {
  background: rgba(255, 107, 143, 0.1);
  color: #8d3450;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: #4c6284;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy {
  display: grid;
  gap: var(--space-4);
}

.hero-copy p {
  max-width: 62ch;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.65;
}

.assist-strip {
  margin-top: var(--space-5);
}

.assist-chip {
  color: #546b8f;
  font-size: var(--text-xs);
  font-weight: 600;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 112px;
}

.page-hero {
  padding: var(--space-7);
}

.stat-card {
  height: 100%;
  display: grid;
  gap: 8px;
  padding: 18px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.28);
}

.stat-card b {
  font-size: clamp(1.2rem, 1.35vw, 1.45rem);
  font-weight: 800;
  line-height: 1;
}

.step-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.step-chip.active {
  background: rgba(255, 155, 84, 0.18);
  border-color: rgba(255, 155, 84, 0.32);
  color: #af5a20;
}

.advanced-panel {
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.2);
}

.advanced-panel > summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.4;
}

.advanced-panel > summary::-webkit-details-marker {
  display: none;
}

.advanced-panel-body {
  display: grid;
  gap: var(--space-4);
  padding: 0 18px 18px;
}

.status-callout {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.status-callout strong {
  color: var(--text);
  font-size: var(--title-4);
  font-weight: 700;
}

.status-callout p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.result-summary {
  color: var(--muted);
  line-height: 1.6;
  font-size: var(--text-sm);
}

.field-group {
  display: grid;
  gap: 8px;
}

.form-stack {
  gap: var(--space-5);
}

.section-block {
  padding-bottom: 2px;
}

.field-group > label {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
}

.wide-panel {
  display: grid;
  gap: var(--space-5);
}

.preset-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.preset-card strong {
  font-size: var(--title-4);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.preset-card:hover,
.task-card:hover,
.nav-card:hover {
  border-color: rgba(255, 155, 84, 0.34);
  box-shadow: 0 10px 22px rgba(103, 122, 153, 0.1);
}

.nav-card {
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.nav-card:hover {
  transform: translateY(-2px);
}

.state-panel {
  display: grid;
  gap: 8px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.34);
}

.state-panel strong {
  color: var(--text);
  font-size: var(--title-4);
  font-weight: 700;
}

.state-panel p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.empty-state {
  display: grid;
  gap: 14px;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.34);
}

.empty-state-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #4c6284;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.state-panel.completed {
  background: rgba(71, 215, 161, 0.08);
  border-color: rgba(71, 215, 161, 0.28);
}

.state-panel.failed {
  background: rgba(255, 107, 143, 0.08);
  border-color: rgba(255, 107, 143, 0.24);
}

.state-panel.running,
.state-panel.queued {
  background: rgba(95, 168, 255, 0.08);
  border-color: rgba(95, 168, 255, 0.24);
}

.login-banner {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 143, 0.18);
  box-shadow: var(--glow);
}

.task-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.task-card.active {
  border-color: rgba(255, 155, 84, 0.34);
}

.status.queued,
.status.running {
  color: var(--warn);
}

.status.completed {
  color: var(--ok);
}

.status.failed {
  color: var(--error);
}

.pill.done {
  background: rgba(71, 215, 161, 0.12);
  color: var(--ok);
}

.pill.current {
  background: rgba(95, 168, 255, 0.14);
  color: #3f74b8;
}

.pill.failed {
  background: rgba(120, 136, 161, 0.14);
  color: #6a7689;
}

.pill.skipped {
  background: rgba(255, 255, 255, 0.42);
  color: var(--text);
}

.progress-track {
  margin-top: 4px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(120, 136, 161, 0.14);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb269, #ff8c50 40%, #67a9ff 100%);
}

.log-view {
  min-height: 420px;
  max-height: 65vh;
  overflow: auto;
  margin: 0;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.46);
}
