:root {
  --aec-bg: #efe6d8;
  --aec-bg-deep: #e4d8c7;
  --aec-paper: #fbf8f2;
  --aec-paper-strong: #ffffff;
  --aec-paper-soft: #f2ede4;
  --aec-ink: #12293a;
  --aec-muted: #607180;
  --aec-muted-strong: #3f5363;
  --aec-accent: #d87a33;
  --aec-accent-soft: #f6e1cf;
  --aec-accent-deep: #9c541c;
  --aec-teal: #2d8179;
  --aec-line: rgba(18, 41, 58, 0.1);
  --aec-line-strong: rgba(18, 41, 58, 0.16);
  --aec-shadow-lg: 0 22px 48px rgba(18, 41, 58, 0.12);
  --aec-shadow-md: 0 12px 28px rgba(18, 41, 58, 0.08);
  --aec-shadow-sm: 0 6px 16px rgba(18, 41, 58, 0.05);
  --aec-radius-xl: 30px;
  --aec-radius-lg: 22px;
  --aec-radius-md: 16px;
  --aec-radius-sm: 12px;
  --aec-speed: 130ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(216, 122, 51, 0.18), transparent 28%),
    radial-gradient(circle at 84% 0%, rgba(45, 129, 121, 0.18), transparent 24%),
    linear-gradient(180deg, var(--aec-bg) 0%, var(--aec-bg-deep) 46%, #f3eee6 100%);
  color: var(--aec-ink);
  font-family: "Segoe UI Variable Text", "Aptos", "Trebuchet MS", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.24;
  pointer-events: none;
}

.aec-root {
  position: relative;
  width: 100%;
  color: var(--aec-ink);
}

.aec-shell {
  display: grid;
  grid-template-columns: minmax(300px, 356px) minmax(0, 1fr);
  gap: 26px;
  width: min(1860px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.aec-single-layout {
  width: min(1380px, calc(100% - 20px));
  margin: 0 auto;
  padding: 20px 0 28px;
}

.aec-sidebar {
  position: sticky;
  top: 14px;
  align-self: start;
  min-height: calc(100vh - 28px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(16, 37, 54, 0.98) 0%, rgba(23, 53, 77, 0.98) 56%, rgba(13, 30, 43, 0.98) 100%);
  box-shadow: var(--aec-shadow-lg);
  overflow: hidden;
}

.aec-sidebar::before,
.aec-sidebar::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.aec-sidebar::before {
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.12), transparent 28%),
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.025) 18px,
      rgba(255, 255, 255, 0.025) 36px
    );
}

.aec-sidebar::after {
  width: 260px;
  height: 260px;
  right: -120px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 122, 51, 0.22), transparent 66%);
}

.aec-sidebar > * {
  position: relative;
  z-index: 1;
}

.aec-sidebar-top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.aec-brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e99849, #d06c2b);
  color: #162432;
  font: 700 1.34rem/1 "Iowan Old Style", "Book Antiqua", "Georgia", serif;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.aec-brand-block {
  min-width: 0;
}

.aec-brand-title {
  font: 700 1.46rem/1.1 "Iowan Old Style", "Book Antiqua", "Georgia", serif;
  color: #f6f1e7;
  letter-spacing: 0.03em;
}

.aec-brand-subtitle {
  margin-top: 6px;
  color: rgba(246, 241, 231, 0.78);
  font-size: 0.92rem;
  line-height: 1.48;
}

.aec-brand-panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.aec-brand-panel-label {
  color: #f4ba84;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.aec-brand-panel h2 {
  margin: 12px 0 10px;
  color: #fbf7ef;
  font: 700 1.48rem/1.12 "Iowan Old Style", "Book Antiqua", "Georgia", serif;
}

.aec-brand-panel p {
  margin: 0;
  color: rgba(246, 241, 231, 0.76);
  line-height: 1.6;
}

.aec-search-wrap {
  margin-bottom: 18px;
}

.aec-search {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
  transition: border-color var(--aec-speed) ease, background var(--aec-speed) ease;
}

.aec-search:focus {
  border-color: rgba(233, 152, 73, 0.56);
  background: rgba(255, 255, 255, 0.14);
}

.aec-search::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.aec-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.aec-summary-item {
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.aec-summary-label {
  display: block;
  margin-bottom: 9px;
  color: rgba(246, 241, 231, 0.56);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.aec-summary-item strong {
  display: block;
  color: #fff4e8;
  font-size: 0.96rem;
}

.aec-summary-text {
  display: block;
  margin-top: 6px;
  color: rgba(246, 241, 231, 0.72);
  font-size: 0.75rem;
  line-height: 1.45;
}

.aec-nav {
  max-height: calc(100vh - 360px);
  overflow: auto;
  padding-right: 6px;
}

.aec-nav-group {
  margin-bottom: 18px;
}

.aec-nav-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
}

.aec-nav-group-title {
  color: rgba(246, 241, 231, 0.92);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aec-nav-group-subtitle {
  margin-top: 4px;
  color: rgba(246, 241, 231, 0.56);
  font-size: 0.79rem;
  line-height: 1.45;
}

.aec-nav-group-meta {
  color: rgba(244, 186, 132, 0.88);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.aec-nav-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  margin-bottom: 9px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--aec-speed) ease,
    background var(--aec-speed) ease,
    transform var(--aec-speed) ease;
}

.aec-nav-item:hover,
.aec-nav-item.is-selected {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(233, 152, 73, 0.35);
  transform: translateY(-1px);
}

.aec-nav-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 7px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(233, 152, 73, 0.28), rgba(233, 152, 73, 0.1));
  color: #ffe3c4;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.aec-nav-main {
  min-width: 0;
}

.aec-nav-title {
  display: block;
  margin-bottom: 4px;
  color: #fbf7ef;
  font-weight: 700;
}

.aec-nav-micro {
  display: block;
  margin-bottom: 6px;
  color: #f2bf8e;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aec-nav-desc {
  display: block;
  color: rgba(246, 241, 231, 0.72);
  font-size: 0.83rem;
  line-height: 1.48;
}

.aec-main {
  min-width: 0;
}

.aec-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
  gap: 22px;
  padding: 26px 28px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--aec-radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 243, 0.92)),
    linear-gradient(90deg, rgba(233, 152, 73, 0.08), rgba(45, 129, 121, 0.05));
  box-shadow: var(--aec-shadow-lg);
}

.aec-topbar-copy {
  min-width: 0;
}

.aec-topbar-kicker,
.aec-kicker {
  color: var(--aec-accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.aec-topbar h1,
.aec-workspace-hero h2 {
  margin: 10px 0 12px;
  font: 700 clamp(2rem, 1.8vw + 1.2rem, 3.35rem)/1.02 "Iowan Old Style", "Book Antiqua", "Georgia", serif;
  letter-spacing: -0.02em;
}

.aec-topbar p,
.aec-workspace-hero p {
  margin: 0;
  color: var(--aec-muted-strong);
  line-height: 1.64;
}

.aec-topbar-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.aec-overview-card {
  padding: 16px 16px 14px;
  border: 1px solid var(--aec-line);
  border-radius: 20px;
  background: rgba(248, 244, 236, 0.92);
  box-shadow: var(--aec-shadow-sm);
}

.aec-overview-card-strong {
  background: linear-gradient(135deg, #18354d, #11314b);
  border-color: rgba(17, 49, 75, 0.4);
  color: #f7f2e8;
}

.aec-overview-card-strong p,
.aec-overview-card-strong .aec-overview-label,
.aec-overview-card-strong strong {
  color: inherit;
}

.aec-overview-label {
  display: block;
  margin-bottom: 10px;
  color: var(--aec-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.aec-overview-card strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.2;
}

.aec-overview-card p {
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.aec-workflow-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.aec-lane-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.9);
  color: var(--aec-ink);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--aec-shadow-sm);
  transition:
    border-color var(--aec-speed) ease,
    transform var(--aec-speed) ease,
    background var(--aec-speed) ease;
}

.aec-lane-card:hover,
.aec-lane-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(216, 122, 51, 0.36);
  background: linear-gradient(135deg, rgba(255, 249, 241, 0.98), rgba(242, 248, 245, 0.96));
}

.aec-lane-range {
  color: var(--aec-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aec-lane-card strong {
  font: 700 1rem/1.26 "Iowan Old Style", "Book Antiqua", "Georgia", serif;
}

.aec-lane-desc {
  color: var(--aec-muted);
  font-size: 0.84rem;
  line-height: 1.48;
}

.aec-lane-count {
  color: var(--aec-muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.aec-workspace-shell {
  display: grid;
  gap: 18px;
}

.aec-workspace-hero {
  padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--aec-radius-xl);
  background: linear-gradient(160deg, rgba(255, 252, 246, 0.94), rgba(255, 255, 255, 0.96));
  box-shadow: var(--aec-shadow-lg);
}

.aec-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.aec-hero-subline {
  margin-top: 6px;
  color: var(--aec-muted);
  font-size: 0.88rem;
  line-height: 1.48;
}

.aec-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.aec-workspace-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0 18px;
}

.aec-module-aside {
  flex: 0 0 auto;
  min-width: 126px;
  padding: 14px;
  border: 1px solid var(--aec-line);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--aec-paper-soft), #fffdf8);
  text-align: center;
}

.aec-module-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #18354d, #12324b);
  color: #f7f2e8;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.aec-module-caption {
  margin-top: 12px;
  color: var(--aec-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.aec-hero-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.aec-note-panel {
  padding: 16px;
  border: 1px solid var(--aec-line);
  border-radius: 20px;
  background: rgba(248, 244, 236, 0.86);
}

.aec-note-label {
  display: block;
  margin-bottom: 8px;
  color: var(--aec-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.aec-note-panel strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.35;
}

.aec-note-panel p {
  margin-top: 7px;
  color: var(--aec-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.aec-notes {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aec-notes li {
  padding: 12px 14px;
  border: 1px solid rgba(45, 129, 121, 0.14);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(45, 129, 121, 0.08), rgba(216, 122, 51, 0.08));
  color: var(--aec-ink);
  line-height: 1.56;
}

.aec-workspace-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.94fr) minmax(360px, 1.06fr);
  gap: 18px;
}

.aec-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--aec-radius-xl);
  background: rgba(255, 252, 247, 0.94);
  box-shadow: var(--aec-shadow-md);
}

.aec-panel-head {
  margin-bottom: 18px;
}

.aec-panel-head h3 {
  margin: 0 0 6px;
  font: 700 1.24rem/1.18 "Iowan Old Style", "Book Antiqua", "Georgia", serif;
}

.aec-panel-head p {
  margin: 0;
  color: var(--aec-muted);
  line-height: 1.58;
}

.aec-panel-embed {
  overflow: hidden;
}

.aec-module-frame {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 24px;
  background: #efe8da;
  box-shadow: inset 0 0 0 1px rgba(45, 129, 121, 0.12);
}

.aec-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.aec-field-wide {
  grid-column: 1 / -1;
}

.aec-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aec-field-label {
  color: var(--aec-ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.aec-input,
.aec-select,
.aec-textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--aec-line);
  border-radius: var(--aec-radius-md);
  background: var(--aec-paper-strong);
  color: var(--aec-ink);
  outline: none;
  transition:
    border-color var(--aec-speed) ease,
    box-shadow var(--aec-speed) ease;
}

.aec-input:focus,
.aec-select:focus,
.aec-textarea:focus {
  border-color: rgba(216, 122, 51, 0.48);
  box-shadow: 0 0 0 4px rgba(216, 122, 51, 0.12);
}

.aec-textarea {
  min-height: 140px;
  resize: vertical;
  font-family: "Cascadia Mono", "Consolas", monospace;
}

.aec-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.aec-button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform var(--aec-speed) ease,
    border-color var(--aec-speed) ease,
    background var(--aec-speed) ease,
    color var(--aec-speed) ease;
}

.aec-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.aec-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.aec-button-primary {
  background: linear-gradient(135deg, #e99849, #d06c2b);
  color: #1d2b38;
  border-color: rgba(208, 108, 43, 0.18);
}

.aec-button-ghost {
  background: #edf0eb;
  color: var(--aec-ink);
  border-color: rgba(18, 41, 58, 0.08);
}

.aec-result-placeholder,
.aec-result-error {
  padding: 20px;
  border: 1px dashed var(--aec-line-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.aec-result-placeholder h3,
.aec-result-error strong {
  font: 700 1.1rem/1.25 "Iowan Old Style", "Book Antiqua", "Georgia", serif;
}

.aec-result-error {
  border-style: solid;
  border-color: rgba(199, 74, 52, 0.18);
  background: rgba(199, 74, 52, 0.08);
}

.aec-result-error p,
.aec-result-placeholder p {
  margin-bottom: 0;
}

.aec-result-lead {
  padding: 15px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(18, 41, 58, 0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(216, 122, 51, 0.08), rgba(45, 129, 121, 0.12));
  line-height: 1.58;
}

.aec-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.aec-metric {
  padding: 16px;
  border: 1px solid var(--aec-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.aec-metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--aec-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.aec-metric-value {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  word-break: break-word;
}

.aec-plot-block {
  margin-bottom: 18px;
}

.aec-plot-shell {
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 37, 54, 0.98), rgba(11, 28, 41, 1));
}

.aec-plot {
  display: block;
  width: 100%;
  height: auto;
}

.aec-plot-backdrop {
  fill: rgba(255, 255, 255, 0.02);
}

.aec-grid-line {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.aec-axis-line {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.4;
}

.aec-plot-line {
  fill: none;
  stroke: #ffb56b;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aec-plot-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
}

.aec-result-sections {
  display: grid;
  gap: 14px;
}

.aec-result-card-item {
  padding: 18px;
  border: 1px solid var(--aec-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.aec-result-card-item h3 {
  margin: 0 0 12px;
  font: 700 1.02rem/1.25 "Iowan Old Style", "Book Antiqua", "Georgia", serif;
}

.aec-lines {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.aec-copy-shell {
  position: relative;
  display: grid;
  gap: 12px;
}

.aec-copy-action {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(18, 41, 58, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--aec-muted-strong);
  cursor: pointer;
  box-shadow: var(--aec-shadow-sm);
  opacity: 0.72;
  transform: translateY(-6px);
  transition:
    opacity var(--aec-speed) ease,
    transform var(--aec-speed) ease,
    border-color var(--aec-speed) ease,
    background var(--aec-speed) ease;
}

.aec-copy-shell:hover .aec-copy-action,
.aec-copy-action:focus-visible,
.aec-copy-shell.is-copied .aec-copy-action,
.aec-copy-shell.is-copy-failed .aec-copy-action {
  opacity: 1;
  transform: translateY(0);
}

.aec-copy-action:hover,
.aec-copy-action:focus-visible {
  border-color: rgba(216, 122, 51, 0.34);
  background: #fff;
  outline: none;
}

.aec-copy-prompt,
.aec-copy-confirm {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.aec-copy-confirm {
  display: none;
}

.aec-copy-shell.is-copied .aec-copy-prompt,
.aec-copy-shell.is-copy-failed .aec-copy-prompt {
  display: none;
}

.aec-copy-shell.is-copied .aec-copy-confirm,
.aec-copy-shell.is-copy-failed .aec-copy-confirm {
  display: inline;
}

.aec-copy-shell.is-copy-failed .aec-copy-confirm {
  color: #a0462b;
}

.aec-copy-card {
  padding: 14px;
  border: 1px solid var(--aec-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 249, 247, 0.98), rgba(239, 245, 243, 0.96));
}

.aec-copy-card-title {
  margin-bottom: 10px;
  padding-right: 128px;
  color: var(--aec-muted-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aec-formula-view {
  margin: 0;
  white-space: pre-wrap;
  color: var(--aec-ink);
  font: 600 0.84rem/1.72 "Cascadia Mono", "Aptos Mono", "Consolas", monospace;
}

.aec-math-grid {
  display: grid;
  gap: 12px;
}

.aec-math-block {
  padding: 14px;
  border: 1px solid rgba(18, 41, 58, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.aec-math-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(216, 122, 51, 0.12);
  color: var(--aec-accent-deep);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aec-math-caption {
  margin-top: 10px;
  color: var(--aec-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.aec-math-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.aec-math-row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(241, 245, 242, 0.92), rgba(249, 251, 249, 0.96));
}

.aec-math-label {
  color: var(--aec-muted-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aec-math-expression {
  color: var(--aec-ink);
  font: 600 0.95rem/1.7 "Cambria Math", "STIX Two Text", "Times New Roman", serif;
  word-break: break-word;
}

.aec-math-expression sub,
.aec-math-expression sup {
  font-size: 0.72em;
}

.aec-table-wrap {
  overflow: auto;
}

.aec-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
}

.aec-table th,
.aec-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--aec-line);
  text-align: left;
}

.aec-table th {
  color: var(--aec-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aec-inline-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(18, 41, 58, 0.06);
  color: var(--aec-muted);
}

.aec-empty-plot {
  padding: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.74);
}

body.aec-lite {
  background:
    linear-gradient(180deg, #ebe1d3 0%, #e3d6c4 50%, #f1ece4 100%);
}

body.aec-embed {
  background:
    linear-gradient(180deg, #efe4d5 0%, #e7dac8 52%, #f4eee5 100%);
}

body.aec-embed::before {
  opacity: 0.16;
}

body.aec-embed .aec-shell,
body.aec-embed .aec-single-layout {
  width: min(100%, calc(100% - 10px));
  padding: 10px 0 16px;
}

body.aec-embed .aec-sidebar {
  top: 10px;
  min-height: auto;
}

body.aec-embed .aec-topbar,
body.aec-embed .aec-workspace-hero,
body.aec-embed .aec-panel {
  border-radius: 26px;
}

body.aec-embed .aec-workflow-strip {
  margin-bottom: 14px;
}

body.aec-embed .aec-workspace-shell {
  gap: 14px;
}

body.aec-lite .aec-shell {
  width: min(1800px, calc(100% - 18px));
  gap: 18px;
  padding: 10px 0 18px;
}

body.aec-lite .aec-sidebar {
  min-height: auto;
}

body.aec-lite .aec-topbar,
body.aec-lite .aec-workspace-hero,
body.aec-lite .aec-panel,
body.aec-lite .aec-overview-card,
body.aec-lite .aec-lane-card,
body.aec-lite .aec-note-panel,
body.aec-lite .aec-result-card-item,
body.aec-lite .aec-copy-action,
body.aec-lite .aec-copy-card,
body.aec-lite .aec-metric {
  box-shadow: none;
}

body.aec-lite .aec-nav-item:hover,
body.aec-lite .aec-nav-item.is-selected,
body.aec-lite .aec-button:hover:not(:disabled),
body.aec-lite .aec-lane-card:hover,
body.aec-lite .aec-lane-card.is-active {
  transform: none;
}

body.aec-lite .aec-nav {
  max-height: 68vh;
}

body.aec-lite .aec-nav-desc {
  display: none;
}

body.aec-lite .aec-topbar,
body.aec-lite .aec-workspace-hero,
body.aec-lite .aec-panel {
  padding: 20px;
}

body.aec-lite .aec-workflow-strip {
  gap: 10px;
}

body.aec-lite * {
  transition-duration: 0ms !important;
}

@media (max-width: 1320px) {
  .aec-topbar {
    grid-template-columns: 1fr;
  }

  .aec-workspace-heading {
    flex-direction: column;
  }

  .aec-module-aside {
    min-width: 0;
  }
}

@media (max-width: 1180px) {
  .aec-shell {
    grid-template-columns: 1fr;
  }

  .aec-sidebar {
    position: static;
    min-height: auto;
  }

  .aec-nav {
    max-height: none;
  }

  .aec-workspace-grid {
    grid-template-columns: 1fr;
  }

  .aec-hero-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .aec-shell,
  .aec-single-layout {
    width: min(100%, calc(100% - 12px));
  }

  .aec-sidebar,
  .aec-topbar,
  .aec-workspace-hero,
  .aec-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .aec-summary,
  .aec-topbar-overview,
  .aec-form-grid {
    grid-template-columns: 1fr;
  }

  .aec-summary {
    gap: 8px;
  }

  .aec-hero-meta,
  .aec-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .aec-button {
    width: 100%;
  }

  .aec-workflow-strip {
    grid-template-columns: 1fr;
  }
}
