:root {
  --bg: #f3efe6;
  --bg-soft: #fbf8f1;
  --shell: #13232c;
  --shell-2: #1b3240;
  --card: rgba(255, 252, 246, 0.92);
  --card-strong: #fffdf8;
  --line: rgba(20, 42, 52, 0.11);
  --line-strong: rgba(20, 42, 52, 0.18);
  --ink: #10212b;
  --muted: #5b6c76;
  --brand: #0d7f74;
  --brand-2: #d96a43;
  --brand-soft: rgba(13, 127, 116, 0.11);
  --brand-soft-2: rgba(217, 106, 67, 0.12);
  --warning: #9a5c10;
  --warning-soft: #fff4db;
  --success-soft: #eaf8f2;
  --shadow-lg: 0 28px 70px rgba(10, 29, 38, 0.10);
  --shadow-md: 0 12px 34px rgba(10, 29, 38, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(13, 127, 116, 0.14), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(217, 106, 67, 0.10), transparent 26%),
    linear-gradient(180deg, #fcfaf5 0%, #f6f2ea 42%, #f0ebe2 100%);
  color: var(--ink);
  font-family: "Avenir Next", "IBM Plex Sans", "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled,
.upload-trigger.disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

a {
  color: inherit;
}

.app-frame {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 28px 22px;
  background:
    linear-gradient(180deg, rgba(14, 30, 37, 0.96), rgba(19, 35, 44, 0.97)),
    linear-gradient(135deg, rgba(13, 127, 116, 0.18), transparent 45%);
  color: #f5f1e7;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-block h1,
.topbar h2,
.hero-card h3,
.runtime-warning-card h3,
.panel h3,
.panel h4,
.dataset-card h3,
.report-card h3,
.column-card h4 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: -0.03em;
}

.brand-block h1 {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 12px;
}

.sidebar-copy {
  margin: 0;
  line-height: 1.65;
  color: rgba(245, 241, 231, 0.78);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.sidebar .eyebrow {
  color: #89d7ca;
}

.nav-stack {
  display: grid;
  gap: 8px;
  margin: 28px 0;
}

.nav-link {
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(245, 241, 231, 0.88);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-link:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(137, 215, 202, 0.18);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(137, 215, 202, 0.16), rgba(255, 255, 255, 0.08));
  border-color: rgba(137, 215, 202, 0.28);
  color: #f7f4eb;
}

.sidebar-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-card .eyebrow,
.sidebar-card strong {
  color: #bfe8e0;
}

.sidebar-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(245, 241, 231, 0.78);
  line-height: 1.6;
}

.main-shell {
  padding: 26px 26px 40px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 251, 244, 0.95)),
    linear-gradient(135deg, rgba(13, 127, 116, 0.07), transparent 60%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-lg);
}

.topbar h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.02;
  max-width: 13ch;
}

.lede {
  margin: 16px 0 0;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.7;
}

.topbar-actions {
  display: grid;
  gap: 14px;
  align-content: start;
}

.topbar-actions-compact {
  width: min(100%, 340px);
  justify-self: end;
}

.runtime-warning {
  margin-top: 18px;
}

.runtime-warning-card {
  display: grid;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fff7e6, #fffdf7);
  border: 1px solid rgba(154, 92, 16, 0.18);
  box-shadow: var(--shadow-md);
}

.runtime-warning-card h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.warning-steps {
  display: grid;
  gap: 10px;
}

.warning-steps code {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(16, 33, 43, 0.92);
  color: #f5f1e7;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  overflow-wrap: anywhere;
}

.answer-mode {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

select,
textarea,
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

select:focus,
textarea:focus,
input[type="text"]:focus {
  outline: none;
  border-color: rgba(13, 127, 116, 0.46);
  box-shadow: 0 0 0 4px rgba(13, 127, 116, 0.10);
  background: #fffefb;
}

textarea {
  resize: vertical;
  min-height: 118px;
}

.upload-trigger,
.secondary,
.ghost,
.pill-button,
.quick-prompts button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.upload-trigger:hover,
.secondary:hover,
.ghost:hover,
.pill-button:hover,
.quick-prompts button:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 127, 116, 0.24);
  box-shadow: 0 10px 18px rgba(17, 40, 46, 0.06);
}

.upload-trigger {
  display: grid;
  justify-items: start;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13, 127, 116, 0.08), rgba(217, 106, 67, 0.08));
}

.upload-trigger span {
  font-weight: 700;
}

.upload-trigger small {
  color: var(--muted);
}

.pill-button.active {
  border-color: rgba(13, 127, 116, 0.28);
  background: linear-gradient(135deg, rgba(13, 127, 116, 0.14), rgba(255, 255, 255, 0.95));
  color: var(--ink);
}

.primary {
  border: 0;
  background: linear-gradient(135deg, var(--brand), #175b88);
  color: #fff;
  border-radius: 999px;
  padding: 13px 20px;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(13, 93, 116, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(13, 93, 116, 0.24);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  margin-top: 22px;
}

.page-columns {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.priority-stack,
.journey-list,
.activity-sections {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.priority-stack:empty {
  display: none;
}

.report-workbench-panel {
  margin-top: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(244, 253, 250, 0.94)),
    linear-gradient(135deg, rgba(13, 127, 116, 0.08), transparent 60%);
}

.alert-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ask-columns,
.reports-columns,
.outbox-columns {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.workspace-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.section-link,
.utility-link {
  text-decoration: none;
}

.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.section-link:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 127, 116, 0.24);
  box-shadow: 0 10px 18px rgba(17, 40, 46, 0.06);
}

.section-link.active {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(13, 127, 116, 0.12), rgba(255, 255, 255, 0.94));
  border-color: rgba(13, 127, 116, 0.24);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-md);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 127, 116, 0.18), transparent 65%);
  pointer-events: none;
}

.hero-card-primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(244, 253, 250, 0.92)),
    linear-gradient(135deg, rgba(13, 127, 116, 0.10), transparent 60%);
}

.hero-card-secondary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 244, 0.94)),
    linear-gradient(135deg, rgba(217, 106, 67, 0.10), transparent 65%);
}

.hero-card-head {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.hero-card h3 {
  font-size: 1.7rem;
  line-height: 1.08;
  max-width: 18ch;
}

.hero-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(13, 127, 116, 0.18);
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 700;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.compact-feature-list {
  margin-top: 0;
}

.feature-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 42, 52, 0.08);
}

.feature-item strong {
  display: block;
  margin-bottom: 6px;
}

.feature-item span {
  color: var(--muted);
  line-height: 1.55;
}

.journey-card {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.journey-copy {
  display: grid;
  gap: 8px;
  max-width: 58ch;
}

.journey-summary {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr 0.95fr;
  gap: 20px;
  margin-top: 22px;
}

.column-stack {
  display: grid;
  gap: 20px;
  align-content: start;
}

.panel {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.panel-head {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel h3 {
  font-size: 1.45rem;
}

.subsection-head h4 {
  margin: 0;
  font-size: 1.1rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: -0.02em;
}

.composer-panel .quick-prompts {
  margin-top: 16px;
}

.activity-section {
  display: grid;
  gap: 14px;
}

.activity-section + .activity-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.chat-feed {
  display: grid;
  gap: 12px;
  min-height: 480px;
  max-height: 640px;
  overflow: auto;
  padding-right: 4px;
}

.compact-stack {
  margin-bottom: 14px;
}

.message,
.notification-card,
.context-card,
.detail-card,
.mini-card,
.dataset-card,
.report-card,
.join-card,
.upload-box,
.empty-state {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.message {
  padding: 16px;
}

.notification-card {
  padding: 16px;
}

.message.user {
  background: linear-gradient(135deg, rgba(13, 127, 116, 0.11), rgba(232, 249, 246, 0.92));
}

.message.system {
  background: linear-gradient(135deg, rgba(255, 244, 220, 0.90), rgba(255, 252, 243, 0.96));
}

.warning-card {
  background: linear-gradient(135deg, rgba(255, 244, 220, 0.95), rgba(255, 251, 241, 0.98));
}

.failed {
  background: linear-gradient(135deg, rgba(255, 238, 233, 0.92), rgba(255, 251, 249, 0.96));
}

.message-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.message-body {
  white-space: pre-wrap;
  line-height: 1.6;
}

.chat-form {
  margin-top: 16px;
}

.context-inline-banner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(13, 127, 116, 0.16);
  background: linear-gradient(135deg, rgba(232, 249, 246, 0.92), rgba(255, 255, 255, 0.98));
}

.warning-inline-banner {
  border-color: rgba(185, 124, 31, 0.22);
  background: linear-gradient(135deg, rgba(255, 247, 229, 0.98), rgba(255, 255, 255, 0.98));
}

.chat-actions {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-top: 14px;
}

.helper {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.upload-box,
.dataset-card,
.report-card,
.join-card,
.empty-state,
.context-card,
.mini-card {
  padding: 16px;
}

.upload-title {
  margin: 0 0 8px;
  font-weight: 700;
}

.summary-grid {
  display: grid;
  gap: 12px;
}

.sidebar .summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 241, 231, 0.78);
}

.summary-card span {
  display: block;
  font-size: 1.05rem;
  color: #f5f1e7;
}

.history-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.history-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.history-head h4 {
  margin: 0;
  font-size: 1.1rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

.history-block + .history-block {
  margin-top: 14px;
}

.history-block p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.history-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(13, 127, 116, 0.08);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.answer-block .history-label {
  background: rgba(217, 106, 67, 0.10);
  color: var(--brand-2);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.pagination-copy {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.overview-stat {
  padding: 14px;
  border-radius: 16px;
  background: rgba(248, 246, 241, 0.86);
  border: 1px solid rgba(20, 42, 52, 0.07);
}

.overview-stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.overview-stat span {
  font-size: 1.1rem;
}

.editor-list {
  display: grid;
  gap: 12px;
}

.editor-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(248, 246, 241, 0.88);
  border: 1px solid rgba(20, 42, 52, 0.08);
}

.editor-row-copy {
  display: grid;
  gap: 4px;
}

.editor-row-copy strong {
  font-size: 1rem;
}

.editor-row-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.editor-row-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 42, 52, 0.08);
  color: var(--muted);
}

.stacked-editor-row {
  gap: 14px;
}

.editor-textarea {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-callout {
  margin: 16px 0 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13, 127, 116, 0.08), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(13, 127, 116, 0.12);
}

.detail-callout strong {
  display: block;
  margin-bottom: 8px;
}

.detail-callout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.archive-group + .archive-group {
  margin-top: 18px;
}

.archive-head {
  margin-bottom: 12px;
}

.archive-meta {
  margin: 10px 0 12px;
}

.stack {
  display: grid;
  gap: 14px;
}

.mini-stack-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(13, 127, 116, 0.14);
  background: rgba(246, 252, 251, 0.92);
}

.mini-stack-card p {
  margin: 8px 0 0;
}

.tag-row,
.actions-row,
.report-links,
.checkbox-row,
.quick-prompts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-prompts {
  margin-top: 18px;
}

.tag,
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(13, 127, 116, 0.10);
  color: var(--brand);
  border: 1px solid rgba(13, 127, 116, 0.12);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag.warning {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: rgba(154, 92, 16, 0.18);
}

.tag.accent {
  background: var(--brand-soft-2);
  color: var(--brand-2);
  border-color: rgba(217, 106, 67, 0.18);
}

.tag.subtle {
  background: rgba(16, 33, 43, 0.06);
  color: var(--muted);
  border-color: rgba(20, 42, 52, 0.10);
}

.inline-list {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.columns-grid {
  display: grid;
  gap: 12px;
}

.column-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(248, 246, 241, 0.88);
  border: 1px solid rgba(20, 42, 52, 0.08);
}

.column-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.field-grid label,
.column-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox-row {
  margin-top: 12px;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.mini-card h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.mini-card ul,
.detail-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.empty-state {
  color: var(--muted);
  line-height: 1.6;
}

.compact-empty-state {
  margin-top: 12px;
}

.report-context {
  margin-top: 18px;
}

.context-card {
  display: grid;
  gap: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.selection-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(16, 33, 43, 0.06);
  border: 1px solid rgba(20, 42, 52, 0.10);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.chip-dismiss {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 33, 43, 0.08);
  color: var(--muted);
  padding: 0;
  cursor: pointer;
}

.chip-dismiss:hover {
  background: rgba(217, 106, 67, 0.18);
  color: var(--brand-2);
}

.workbench-actions {
  margin-top: 14px;
}

.delivery-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.delivery-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.delivery-meta {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.delivery-card.preview,
.delivery-card.previewed,
.delivery-card.sent {
  background: linear-gradient(135deg, rgba(234, 248, 242, 0.88), rgba(255, 255, 255, 0.92));
}

.delivery-card.failed {
  background: linear-gradient(135deg, rgba(255, 243, 237, 0.92), rgba(255, 255, 255, 0.94));
}

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

  .column-stack {
    grid-template-columns: 1fr;
  }

  .alert-columns,
  .workspace-columns,
  .ask-columns,
  .reports-columns,
  .outbox-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .app-frame {
    grid-template-columns: 1fr;
  }

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

  .topbar,
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-shell,
  .sidebar {
    padding: 18px;
  }

  .panel,
  .topbar,
  .hero-card {
    padding: 18px;
  }

  .field-grid,
  .detail-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .chat-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* 2026 analytics workbench redesign overrides */

:root {
  --bg: #f5f7fb;
  --bg-soft: #f8fafd;
  --shell: #0f172a;
  --shell-2: #1e293b;
  --card: #ffffff;
  --card-strong: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --ink: #0f172a;
  --muted: #64748b;
  --brand: #2563eb;
  --brand-2: #0f766e;
  --brand-soft: #e0edff;
  --brand-soft-2: #ecfeff;
  --warning: #c2410c;
  --warning-soft: #fff7ed;
  --success-soft: #ecfdf5;
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 22%),
    linear-gradient(180deg, #fbfcfe 0%, #f5f7fb 100%);
  color: var(--ink);
}

body .brand-block h1,
body .topbar h2,
body .hero-card h3,
body .runtime-warning-card h3,
body .panel h3,
body .panel h4,
body .dataset-card h3,
body .report-card h3,
body .column-card h4 {
  font-family: "Avenir Next", "IBM Plex Sans", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
}

.app-frame {
  grid-template-columns: 272px 1fr;
  background: transparent;
}

.sidebar {
  padding: 24px 18px;
  background: rgba(248, 250, 252, 0.95);
  color: var(--ink);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-block h1 {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 10px;
}

.sidebar-copy {
  color: var(--muted);
}

.sidebar .eyebrow,
.eyebrow {
  color: var(--brand);
}

.nav-stack {
  gap: 6px;
  margin: 24px 0;
}

.nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #334155;
  background: transparent;
  border: 1px solid transparent;
  font-weight: 600;
}

.nav-link:hover {
  transform: none;
  background: #eef4ff;
  border-color: #dbeafe;
  color: var(--ink);
}

.nav-link.active {
  background: linear-gradient(180deg, #eef4ff, #f8fbff);
  border-color: #c7d2fe;
  color: #1d4ed8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sidebar-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.sidebar-card .eyebrow,
.sidebar-card strong {
  color: var(--ink);
}

.sidebar-list,
.delivery-meta {
  color: var(--muted);
}

.main-shell {
  padding: 20px 24px 32px;
}

.topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.topbar h2 {
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.04;
  max-width: 18ch;
}

.lede {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 10px;
}

.topbar-actions-compact {
  width: auto;
}

.runtime-warning-card {
  background: linear-gradient(180deg, #fffaf5, #fff7ed);
  border-color: #fdba74;
  box-shadow: none;
}

select,
textarea,
input[type="text"],
input[type="search"],
input[type="date"] {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="date"]:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background: #fff;
}

.upload-trigger,
.secondary,
.ghost,
.pill-button,
.quick-prompts button,
.pill-link {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 600;
  box-shadow: none;
}

.ghost {
  background: #f8fafc;
}

.upload-trigger:hover,
.secondary:hover,
.ghost:hover,
.pill-button:hover,
.quick-prompts button:hover,
.pill-link:hover {
  transform: translateY(-1px);
  border-color: #c7d2fe;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.24);
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.3);
}

.panel,
.hero-card,
.dataset-card,
.report-card,
.notification-card,
.history-card,
.job-card,
.clarification-card,
.delivery-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.panel-head,
.subsection-head,
.report-summary-head,
.assistant-card-head,
.mini-file-head,
.report-list-card-head,
.report-detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

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

.helper {
  color: var(--muted);
  line-height: 1.65;
}

.sidebar-helper {
  margin: 14px 0 0;
}

.tag-row,
.report-links,
.selection-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
}

.tag.accent {
  background: #e0edff;
  color: #1d4ed8;
  border-color: #c7d2fe;
}

.tag.warning {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fdba74;
}

.tag.success {
  background: #ecfdf5;
  color: #15803d;
  border-color: #86efac;
}

.tag.subtle {
  background: #fff;
  color: var(--muted);
}

.summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summary-card {
  padding: 13px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e7edf4;
}

.summary-card strong,
.report-stat strong {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.summary-card span,
.report-stat span {
  display: block;
  color: var(--ink);
  font-size: 1.32rem;
  font-weight: 700;
}

.empty-state {
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  background: #f8fafc;
  color: var(--muted);
}

.compact-empty-state {
  min-height: 140px;
  display: grid;
  place-items: center;
  text-align: center;
}

.overview-shell,
.reports-shell {
  display: grid;
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

.overview-shell {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.reports-shell {
  grid-template-columns: minmax(0, 1fr) 400px;
}

.overview-main,
.reports-main {
  display: grid;
  gap: 18px;
}

.overview-rail,
.report-detail-panel {
  position: sticky;
  top: 20px;
}

.report-detail-panel {
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.upload-workbench {
  display: grid;
  gap: 18px;
}

.upload-dropzone {
  border: 1px dashed #c7d2fe;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #f8fbff, #f2f7ff);
}

.upload-trigger.upload-trigger-block {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 8px;
  min-height: 136px;
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  border-style: dashed;
  border-color: #c7d2fe;
  background: #fff;
}

.upload-trigger.upload-trigger-block span {
  font-size: 1.08rem;
}

.upload-trigger.upload-trigger-block small {
  color: var(--muted);
  line-height: 1.55;
}

.upload-dropzone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.panel-subsection {
  display: grid;
  gap: 12px;
}

.mini-file-grid,
.template-grid,
.recent-reports-grid {
  display: grid;
  gap: 14px;
}

.mini-file-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.template-grid,
.recent-reports-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-file-card,
.template-card,
.report-summary-card,
.report-list-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfcff);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.mini-file-meta,
.report-summary-date {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.template-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}

.template-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0edff;
  color: #1d4ed8;
  font-weight: 800;
}

.template-card-copy h3,
.report-summary-card h3,
.report-list-card h3,
.assistant-card h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
}

.template-card-actions {
  grid-column: 2;
  margin-top: 4px;
}

.report-summary-copy,
.inline-list {
  color: #334155;
  line-height: 1.65;
}

.report-summary-copy {
  margin: 0;
}

.assistant-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
}

.assistant-suggestion-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.assistant-suggestion {
  width: 100%;
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.assistant-suggestion:hover {
  transform: translateY(-1px);
  border-color: #c7d2fe;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.assistant-suggestion span,
.assistant-facts {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.assistant-facts {
  margin: 0;
  padding-left: 18px;
}

.report-list-grid {
  display: grid;
  gap: 14px;
}

.report-list-card.active {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.2);
}

.report-workbench-panel {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

.chip-dismiss {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.detail-card-hero {
  gap: 16px;
}

.detail-callout {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #f8fbff, #eff6ff);
}

.detail-callout strong {
  display: block;
  margin-bottom: 8px;
  color: #1d4ed8;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-callout p {
  margin: 0;
  line-height: 1.7;
}

.report-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.field-stack span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.recurring-review-grid,
.review-theme-grid,
.suggestion-card-stack {
  display: grid;
  gap: 14px;
}

.recurring-review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.review-theme-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.review-theme-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.review-theme-card input {
  margin-top: 3px;
}

.review-theme-card strong {
  display: block;
  margin-bottom: 4px;
}

.review-theme-card span {
  color: var(--muted);
  line-height: 1.55;
}

.recurring-review-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
}

.recurring-review-meta p {
  margin: 0;
  line-height: 1.55;
}

.suggestion-workbench-card {
  margin-top: 18px;
}

.suggestion-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 253, 250, 0.92));
}

.suggestion-card-head {
  display: flex;
  gap: 14px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.suggestion-card-head h4 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

.suggestion-stat-strip {
  margin-bottom: 12px;
}

.suggestion-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.suggestion-tab-panel p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.detail-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.report-stat {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.report-section-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.mini-card h4 {
  font-size: 1rem;
}

.report-action-row {
  margin-top: 8px;
}

.pill-link {
  text-decoration: none;
}

.context-card,
.context-inline-banner {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.warning-inline-banner {
  background: linear-gradient(180deg, #fffaf5, #fff7ed);
  border-color: #fdba74;
}

.history-card,
.job-card,
.notification-card,
.delivery-card,
.join-card,
.archive-group {
  border-radius: 18px;
}

.delivery-card.preview,
.delivery-card.previewed,
.delivery-card.sent {
  background: linear-gradient(180deg, #ffffff, #f8fffc);
}

.delivery-card.failed {
  background: linear-gradient(180deg, #fff7f5, #ffffff);
}

@media (max-width: 1440px) {
  .overview-shell {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .reports-shell {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

@media (max-width: 1320px) {
  .overview-shell,
  .reports-shell {
    grid-template-columns: 1fr;
  }

  .overview-rail,
  .report-detail-panel {
    position: static;
  }
}

@media (max-width: 1120px) {
  .app-frame {
    grid-template-columns: 1fr;
  }

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

  .topbar,
  .hero-grid,
  .report-stat-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .mini-file-grid,
  .template-grid,
  .recent-reports-grid,
  .report-section-grid {
    grid-template-columns: 1fr;
  }

  .recurring-review-grid,
  .review-theme-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-shell,
  .sidebar {
    padding: 16px;
  }

  .panel,
  .topbar,
  .hero-card,
  .dataset-card,
  .report-card {
    padding: 18px;
  }

  .topbar-actions,
  .upload-dropzone-actions,
  .report-links {
    justify-content: stretch;
  }

  .topbar-actions > *,
  .upload-dropzone-actions > *,
  .report-links > * {
    width: 100%;
  }
}
