.everyday-agent-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--color-bg-primary);
  scrollbar-width: none;
}

.app-layout:not(.left-collapsed) > .everyday-agent-main,
.app-layout.left-collapsed > .everyday-agent-main {
  overflow-y: auto;
  overflow-x: hidden;
}

.everyday-agent-main.settings-mode {
  padding: 0;
}

.everyday-agent-panel {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 48px;
  box-sizing: border-box;
  color: var(--color-text);
  font-family: var(--font-ui);
  animation: dp-fade-in 0.6s ease-out;
}

.everyday-agent-main::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.settings-mode .everyday-agent-panel {
  width: 100%;
  padding: 0;
}

.ea-hero {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  margin-bottom: 28px;
  border-bottom: none;
}

.ea-kicker,
.ea-hero-actions,
.ea-control-row,
.ea-card-actions,
.ea-inline-fields,
.ea-receipt-meta,
.ea-consent-actions,
.ea-pause-builder {
  display: flex;
  align-items: center;
}

.ea-kicker {
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

.ea-hero h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--color-text);
}

.ea-hero p,
.ea-section-header p,
.ea-capability-card p,
.ea-receipt p,
.ea-consent-modal p {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.ea-hero-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ea-console-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.ea-console-header h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--color-text);
}

.ea-console-header p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.ea-console-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.ea-status,
.ea-risk,
.ea-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  background: var(--color-bg-glass);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-subtle);
}

.ea-status.enabled {
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  border-color: var(--color-accent-subtle);
}

.ea-status.paused,
.ea-status.disabled {
  color: #9a5a00;
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.26);
}

.ea-status.blocked {
  color: #b42318;
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.26);
}

.ea-primary-button,
.ea-secondary-button,
.ea-icon-button,
.ea-card-actions button,
.ea-list-item button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  min-height: 32px;
  padding: 0 13px;
  color: var(--color-text);
  background: var(--color-bg-glass);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}

.ea-primary-button svg,
.ea-secondary-button svg,
.ea-icon-button svg,
.ea-card-actions button svg,
.ea-list-item button svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.ea-primary-button {
  background: var(--color-accent, #2563eb);
  color: #fff;
  border-color: var(--color-accent, #2563eb);
  box-shadow: var(--shadow-md);
}

.ea-primary-button:hover:not(:disabled) {
  background: var(--color-accent-hover, var(--color-accent, #1d4ed8));
  border-color: var(--color-accent-hover, var(--color-accent, #1d4ed8));
  transform: translateY(-1px);
}

.ea-secondary-button:hover:not(:disabled),
.ea-icon-button:hover:not(:disabled),
.ea-card-actions button:hover:not(:disabled),
.ea-list-item button:hover:not(:disabled) {
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  border-color: var(--color-accent-subtle);
}

.ea-secondary-button.danger,
.ea-card-actions button:last-child {
  color: #b42318;
}

.ea-icon-button {
  width: 34px;
  padding: 0;
  justify-content: center;
}

.ea-primary-button:disabled,
.ea-secondary-button:disabled,
.ea-icon-button:disabled,
.ea-card-actions button:disabled,
.ea-list-item button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ea-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 11px 12px;
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 8px;
  background: rgba(217, 119, 6, 0.1);
  color: #9a5a00;
  font-size: 13px;
}

.ea-alert.danger {
  border-color: rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.1);
  color: #b42318;
}

.ea-console {
  max-width: 1180px;
}

.ea-console .ea-section {
  margin-top: 0;
  padding: 18px;
  border: 1px solid var(--color-border-subtle);
  background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-glass) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.ea-operator-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-glass) 100%);
  box-shadow: var(--shadow-sm);
}

.ea-operator-main {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ea-operator-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  background: var(--color-accent-subtle);
}

.ea-operator-main span,
.ea-operator-metrics span {
  color: var(--color-text-secondary);
  font-size: 12px;
}

.ea-operator-main h2 {
  margin: 3px 0 4px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
}

.ea-operator-main p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.ea-operator-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 10px;
}

.ea-operator-metrics div {
  min-width: 86px;
  padding: 11px 12px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
}

.ea-operator-metrics strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.ea-console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.ea-console-main,
.ea-console-side,
.ea-priority-list,
.ea-routine-list,
.ea-intervention-stack,
.ea-mini-list {
  display: grid;
  gap: 12px;
}

.ea-console-main {
  gap: 18px;
}

.ea-console-side {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.ea-console-side > .ea-section {
  min-width: 0;
}

.ea-console-side > .ea-section:nth-child(1) {
  grid-column: span 7;
}

.ea-console-side > .ea-section:nth-child(2) {
  grid-column: span 5;
}

.ea-console-side > .ea-section:nth-child(3),
.ea-console-side > .ea-section:nth-child(4),
.ea-console-side > .ea-section:nth-child(5) {
  grid-column: span 4;
}

.ea-console-side > .ea-section:nth-child(6) {
  grid-column: 1 / -1;
}

.ea-priority-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
}

.ea-priority-item.warn {
  border-color: rgba(217, 119, 6, 0.26);
  background: rgba(217, 119, 6, 0.08);
}

.ea-priority-item.danger {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(220, 38, 38, 0.08);
}

.ea-priority-item.success {
  border-color: color-mix(in srgb, var(--color-accent) 28%, var(--color-border-subtle));
}

.ea-priority-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--color-bg-glass);
  color: var(--color-text-secondary);
}

.ea-priority-item.warn .ea-priority-icon {
  color: #9a5a00;
}

.ea-priority-item.danger .ea-priority-icon {
  color: #b42318;
}

.ea-priority-item.success .ea-priority-icon {
  color: var(--color-accent);
  background: var(--color-accent-subtle);
}

.ea-priority-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ea-priority-title strong,
.ea-routine strong {
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.3;
}

.ea-priority-title span,
.ea-routine-meta span {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.ea-priority-item p {
  margin: 4px 0 0;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.ea-row-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.ea-row-actions button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.ea-capabilities-strip .ea-section-header {
  align-items: start;
}

.ea-capability-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.ea-capability-pills span,
.ea-mini-list span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 999px;
  color: var(--color-text-secondary);
  background: var(--color-bg-primary);
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ea-full-width-button {
  width: 100%;
  margin-top: 8px;
}

.ea-scoped-drawer {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border-subtle);
}

.ea-scoped-drawer .ea-pause-builder {
  grid-template-columns: 1fr;
}

.ea-routine {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
}

.ea-routine.danger {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(220, 38, 38, 0.08);
}

.ea-routine.success {
  border-color: color-mix(in srgb, var(--color-accent) 22%, var(--color-border-subtle));
}

.ea-routine span {
  display: block;
  margin-top: 3px;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.ea-routine-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ea-settings-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.ea-settings-summary article {
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-glass) 100%);
}

.ea-settings-summary span {
  display: block;
  color: var(--color-text-secondary);
  font-size: 12px;
  margin-bottom: 6px;
}

.ea-settings-summary strong {
  font-size: 16px;
}

.ea-live-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 18px 0;
}

.ea-live-rail,
.ea-temporary-modes {
  padding: 18px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-glass) 100%);
  box-shadow: var(--shadow-sm);
}

.ea-plan-steps,
.ea-recovery-list,
.ea-recipe-list,
.ea-lane-list {
  display: grid;
  gap: 10px;
}

.ea-plan-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
}

.ea-plan-step.approval {
  border-color: rgba(217, 119, 6, 0.26);
  background: rgba(217, 119, 6, 0.08);
}

.ea-plan-step.blocked {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(220, 38, 38, 0.08);
}

.ea-plan-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  font-size: 12px;
  font-weight: 700;
}

.ea-plan-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ea-plan-title strong,
.ea-recovery-item strong,
.ea-recipe strong,
.ea-lane strong {
  display: block;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.3;
}

.ea-plan-title span,
.ea-plan-meta span,
.ea-lane > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 999px;
  color: var(--color-text-muted);
  background: var(--color-bg-glass);
  font-size: 11px;
  font-weight: 650;
  text-transform: capitalize;
  white-space: nowrap;
}

.ea-plan-step p,
.ea-recovery-item span,
.ea-recipe span,
.ea-lane span,
.ea-check-row small {
  display: block;
  margin-top: 4px;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.ea-plan-meta,
.ea-evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ea-evidence-row span {
  display: inline-flex;
  width: fit-content;
  margin-top: 0;
  padding: 3px 7px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 999px;
  background: var(--color-bg-primary);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.ea-check-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid var(--color-border-subtle);
}

.ea-check-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.ea-check-row input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-accent);
}

.ea-check-row strong {
  display: block;
  color: var(--color-text);
  font-size: 13px;
}

.ea-recovery-item,
.ea-recipe,
.ea-lane {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
}

.ea-recovery-item {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
}

.ea-recovery-item.warn {
  border-color: rgba(217, 119, 6, 0.26);
  background: rgba(217, 119, 6, 0.08);
}

.ea-recovery-item.danger {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(220, 38, 38, 0.08);
}

.ea-recovery-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--color-bg-glass);
  color: var(--color-text-secondary);
}

.ea-recipe.disabled {
  opacity: 0.72;
}

.ea-recipe-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ea-recipe button {
  width: 100%;
}

.ea-lane {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.ea-lane.available > span {
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  border-color: var(--color-accent-subtle);
}

.ea-lane.restricted > span {
  color: #9a5a00;
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.26);
}

.ea-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.ea-summary-card,
.ea-capability-card,
.ea-section,
.ea-preview-card,
.ea-receipt {
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-glass);
  border-radius: var(--radius-lg);
}

.ea-summary-card {
  min-height: 92px;
  padding: 16px;
  display: grid;
  gap: 6px;
  align-content: start;
  background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-glass) 100%);
  box-shadow: var(--shadow-sm);
}

.ea-summary-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

.ea-summary-card span {
  color: var(--color-text-secondary);
  font-size: 12px;
}

.ea-summary-card strong {
  font-size: 16px;
  color: var(--color-text);
}

.ea-control-row {
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ea-section {
  padding: 0;
  margin-top: 32px;
  margin-bottom: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.ea-section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 14px;
}

.ea-section h2,
.ea-section h3 {
  margin: 0;
  letter-spacing: 0;
}

.ea-section h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.ea-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.ea-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 460px));
  justify-content: space-between;
  gap: 14px;
}

.ea-capability-card {
  padding: 24px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  background: linear-gradient(135deg, var(--color-bg-glass) 0%, var(--color-accent-subtle) 100%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.ea-capability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.ea-capability-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--color-accent-subtle);
  box-shadow: var(--shadow-lg), 0 10px 20px -10px color-mix(in srgb, var(--color-accent) 20%, transparent);
}

.ea-capability-card.active {
  border-color: var(--color-accent);
  background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-accent-subtle) 100%);
  box-shadow: var(--shadow-md);
}

.ea-capability-card.blocked {
  opacity: 0.76;
}

.ea-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.ea-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.ea-card-actions {
  gap: 8px;
  margin-top: 12px;
}

.ea-card-actions button {
  flex: 1;
  font-size: 12px;
}

.ea-card-footnote,
.ea-empty,
.ea-preview-reason {
  color: var(--color-text-muted);
  font-size: 12px;
  margin-top: 10px;
}

.ea-switch {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}

.ea-switch input {
  position: absolute;
  opacity: 0;
}

.ea-switch span {
  width: 100%;
  border-radius: 999px;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-subtle);
  transition: background 120ms ease;
}

.ea-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-bg-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 120ms ease;
}

.ea-switch input:checked + span {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.ea-switch input:checked + span::after {
  transform: translateX(18px);
}

.ea-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.ea-pause-builder,
.ea-preview-form,
.ea-list,
.ea-receipts {
  display: grid;
  gap: 10px;
}

.ea-pause-builder {
  grid-template-columns: 140px minmax(0, 1fr) auto;
}

.ea-pause-builder select,
.ea-pause-builder input,
.ea-preview-form input,
.ea-preview-form textarea,
.ea-preview-form select {
  min-height: 34px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: var(--color-bg-elevated);
  color: var(--color-text);
  font-family: var(--font-ui);
}

.ea-preview-form textarea {
  min-height: 82px;
  resize: vertical;
}

.ea-inline-fields {
  gap: 10px;
}

.ea-inline-fields > * {
  flex: 1;
}

.ea-list-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-glass) 100%);
}

.ea-list-item strong,
.ea-list-item span {
  display: block;
  overflow-wrap: anywhere;
}

.ea-list-item span {
  color: var(--color-text-secondary);
  font-size: 12px;
  margin-top: 2px;
}

.ea-preview-card {
  margin-top: 12px;
  padding: 16px;
  background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-glass) 100%);
}

.ea-preview-details {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--color-text-secondary);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ea-risk.warn {
  color: #9a5a00;
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.26);
}

.ea-risk.danger {
  color: #b42318;
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.26);
}

.ea-receipt {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-glass) 100%);
}

.ea-receipt-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

.ea-receipt-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ea-receipt-meta {
  gap: 10px;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 12px;
}

.ea-receipt-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ea-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(17 24 39 / 18%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ea-consent-modal {
  width: min(660px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.ea-consent-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--color-accent, #2563eb);
  margin: 0 auto 12px;
}

.ea-consent-modal h2 {
  text-align: center;
  margin: 0;
  letter-spacing: 0;
}

.ea-consent-modal > p {
  text-align: center;
}

.ea-consent-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.ea-consent-list div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--color-text-secondary);
}

.ea-consent-actions {
  gap: 12px;
  justify-content: center;
}

.ea-consent-actions .ea-primary-button,
.ea-consent-actions .ea-secondary-button {
  min-width: 178px;
  justify-content: center;
}

@media (max-width: 980px) {
  .ea-summary-grid,
  .ea-capability-grid,
  .ea-two-column,
  .ea-settings-summary {
    grid-template-columns: 1fr 1fr;
  }

  .ea-console-grid,
  .ea-operator-card,
  .ea-live-board {
    grid-template-columns: 1fr;
  }

  .ea-console-side {
    grid-template-columns: 1fr 1fr;
  }

  .ea-console-side > .ea-section:nth-child(n) {
    grid-column: span 1;
  }
}

@media (max-width: 680px) {
  .everyday-agent-panel {
    max-width: none;
    padding: 28px 20px 40px;
  }

  .ea-hero,
  .ea-console-header,
  .ea-card-topline,
  .ea-receipt-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .ea-console-actions {
    justify-content: flex-start;
  }

  .ea-summary-grid,
  .ea-capability-grid,
  .ea-two-column,
  .ea-pause-builder,
  .ea-settings-summary,
  .ea-console-side,
  .ea-operator-metrics {
    grid-template-columns: 1fr;
  }

  .ea-console-side > .ea-section:nth-child(n) {
    grid-column: 1 / -1;
  }

  .ea-priority-item,
  .ea-list-item,
  .ea-recovery-item {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .ea-priority-item > .ea-secondary-button,
  .ea-list-item .ea-row-actions,
  .ea-recovery-item > .ea-secondary-button {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .ea-inline-fields,
  .ea-consent-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
