:root {
  color-scheme: dark;
  --bg: #030b16;
  --bg-soft: #071426;
  --canvas: #071120;
  --sidebar: rgba(3, 12, 25, 0.9);
  --surface: rgba(7, 20, 38, 0.78);
  --surface-2: rgba(10, 31, 58, 0.74);
  --surface-strong: rgba(13, 39, 72, 0.86);
  --text: rgba(255, 255, 255, 0.82);
  --text-strong: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --muted-2: rgba(255, 255, 255, 0.35);
  --line: rgba(232, 185, 102, 0.16);
  --line-strong: rgba(232, 185, 102, 0.34);
  --accent: #d8a650;
  --accent-soft: rgba(216, 166, 80, 0.18);
  --accent-2: #f3c978;
  --navy-card: #07172d;
  --gold: #e8b966;
  --success: #28d99a;
  --warning: #f4c15d;
  --danger: #ff6e6e;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar-width: 224px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4ead8;
  --bg-soft: #fffaf0;
  --canvas: #efe4d0;
  --sidebar: rgba(7, 20, 38, 0.94);
  --surface: rgba(255, 250, 240, 0.76);
  --surface-2: rgba(255, 250, 240, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: rgba(14, 18, 28, 0.8);
  --text-strong: #080b13;
  --muted: rgba(14, 18, 28, 0.58);
  --muted-2: rgba(14, 18, 28, 0.38);
  --line: rgba(8, 11, 19, 0.1);
  --line-strong: rgba(8, 11, 19, 0.18);
  --accent: #b47c28;
  --accent-soft: rgba(180, 124, 40, 0.14);
  --accent-2: #07172d;
  --shadow: 0 28px 90px rgba(19, 31, 55, 0.16);
}

[data-theme="light"] .sidebar {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(7, 20, 38, 0.96);
}

[data-theme="light"] .brand strong {
  color: #ffffff;
}

[data-theme="light"] .brand span,
[data-theme="light"] .nav-button {
  color: rgba(255, 255, 255, 0.68);
}

[data-theme="light"] .nav-button:hover {
  color: #ffffff;
  background: rgba(232, 185, 102, 0.1);
}

[data-theme="light"] .nav-button.active {
  border-color: rgba(232, 185, 102, 0.5);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(232, 185, 102, 0.22), rgba(10, 31, 58, 0.92));
}

[data-theme="light"] .plan-card {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, rgba(232, 185, 102, 0.1), rgba(7, 23, 45, 0.88));
}

[data-theme="light"] .plan-card strong {
  color: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(232, 185, 102, 0.08), transparent 30%),
    radial-gradient(ellipse at 54% 0%, rgba(48, 123, 214, 0.16), transparent 34%),
    linear-gradient(145deg, var(--bg), var(--canvas));
}

[data-theme="light"] body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent 36%),
    radial-gradient(ellipse at 52% 0%, rgba(18, 78, 219, 0.12), transparent 35%),
    linear-gradient(145deg, #f7f8fa, #dde3ee);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.035) 32px),
    linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.026) 32px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.62;
  background:
    linear-gradient(145deg, transparent 0 30%, rgba(255, 255, 255, 0.09), transparent 52%),
    radial-gradient(ellipse at 82% 18%, rgba(255, 255, 255, 0.12), transparent 30%),
    radial-gradient(ellipse at 6% 94%, rgba(45, 107, 255, 0.16), transparent 36%);
  filter: blur(18px);
}

[data-theme="light"] body::before {
  background:
    linear-gradient(90deg, transparent 0 31px, rgba(8, 11, 19, 0.035) 32px),
    linear-gradient(0deg, transparent 0 31px, rgba(8, 11, 19, 0.026) 32px);
}

[data-theme="light"] body::after {
  opacity: 0.45;
  background:
    linear-gradient(145deg, transparent 0 28%, rgba(8, 11, 19, 0.08), transparent 52%),
    radial-gradient(ellipse at 78% 18%, rgba(18, 78, 219, 0.12), transparent 30%);
}

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

button {
  cursor: pointer;
}

.app-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  height: 100vh;
  padding: 18px 12px;
  color: var(--text);
  background: var(--sidebar);
  border-right: 1px solid rgba(232, 185, 102, 0.24);
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar,
.workspace::-webkit-scrollbar {
  width: 7px;
}

.sidebar::-webkit-scrollbar-thumb,
.workspace::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
}

.brand {
  min-height: 68px;
  padding: 8px 6px 12px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(232, 185, 102, 0.16);
}

.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  color: var(--text-strong);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.main-nav {
  display: grid;
  gap: 3px;
}

.nav-button {
  width: 100%;
  min-height: 36px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
  transition: 0.16s ease;
}

.nav-button:hover {
  border-color: rgba(232, 185, 102, 0.18);
  background: rgba(232, 185, 102, 0.08);
  color: var(--text-strong);
}

.nav-button.active {
  border-color: rgba(232, 185, 102, 0.44);
  background: linear-gradient(135deg, rgba(232, 185, 102, 0.22), rgba(7, 23, 45, 0.92));
  color: #fff;
}

[data-theme="light"] .nav-button.active {
  background: #080b13;
  color: #ffffff;
}

.nav-icon {
  text-align: center;
  color: currentColor;
  font-size: 12px;
  opacity: 0.8;
}

.plan-card {
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-color: rgba(232, 185, 102, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(232, 185, 102, 0.1), rgba(7, 23, 45, 0.86));
}

[data-theme="light"] .plan-card {
  background: rgba(8, 11, 19, 0.04);
}

.plan-card strong,
.plan-card small {
  display: block;
}

.plan-card strong {
  color: var(--text-strong);
}

.usage-bar {
  height: 6px;
  margin: 10px 0 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.usage-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

[data-theme="light"] .usage-bar span {
  background: linear-gradient(90deg, var(--accent), #111827);
}

.workspace {
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 76px;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: rgba(3, 12, 25, 0.78);
  border-bottom: 1px solid rgba(232, 185, 102, 0.18);
  backdrop-filter: blur(18px);
}

[data-theme="light"] .topbar {
  background: rgba(244, 245, 247, 0.6);
}

.topbar h1 {
  margin: 3px 0 0;
  color: var(--text-strong);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.topbar-actions .primary-action {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 14px;
}

.topbar-actions .theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 16px;
}

.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
}

.theme-toggle,
.icon-button {
  min-width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(232, 185, 102, 0.075);
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 900;
  backdrop-filter: blur(18px);
  transition: 0.16s ease;
}

.theme-toggle:hover,
.icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
}

.content-view {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.studio-home {
  display: grid;
  gap: 18px;
}

.studio-home > *,
.section-stack > *,
.os-shell > * {
  animation: panelEnter 0.42s ease both;
}

.studio-home > *:nth-child(2),
.section-stack > *:nth-child(2),
.os-shell > *:nth-child(2) {
  animation-delay: 0.04s;
}

.studio-home > *:nth-child(3),
.section-stack > *:nth-child(3),
.os-shell > *:nth-child(3) {
  animation-delay: 0.08s;
}

.start-screen {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  gap: 18px;
  align-items: stretch;
}

.start-copy,
.start-form {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.start-copy {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.start-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.start-copy > * {
  position: relative;
  z-index: 1;
}

.start-copy h2 {
  margin: 14px 0;
  color: var(--text-strong);
  font-size: 46px;
  line-height: 1;
}

.start-copy p {
  margin: 0;
  max-width: 430px;
  color: var(--muted);
  line-height: 1.7;
}

.start-stack {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.start-stack span {
  min-height: 52px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.055);
}

.start-form {
  padding: 24px;
}

.chat-shell {
  display: grid;
  grid-template-rows: auto auto minmax(280px, 1fr) auto;
  gap: 14px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chat-header strong {
  display: block;
  margin-top: 3px;
  color: var(--text-strong);
}

.chat-header > span {
  color: var(--muted);
  font-weight: 800;
}

.chat-progress {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.chat-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ffffff;
  transition: width 0.2s ease;
}

[data-theme="light"] .chat-progress i {
  background: #080b13;
}

.chat-thread {
  min-height: 0;
  max-height: 470px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.chat-message img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.chat-message p {
  max-width: min(540px, 88%);
  margin: 0;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.055);
}

.chat-message.assistant p {
  border-bottom-left-radius: 6px;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.user p {
  color: #080b13;
  background: #ffffff;
  border-bottom-right-radius: 6px;
}

[data-theme="light"] .chat-message.user p {
  color: #ffffff;
  background: #080b13;
}

.chat-message.typing p,
.mirella-message.typing .mirella-text {
  color: var(--muted);
}

.chat-message.typing span,
.mirella-message.typing span {
  width: 5px;
  height: 5px;
  display: inline-block;
  margin-right: 3px;
  border-radius: 50%;
  background: currentColor;
  animation: typingPulse 1s infinite ease-in-out;
}

.chat-message.typing span:nth-child(2),
.mirella-message.typing span:nth-child(2) {
  animation-delay: 0.14s;
}

.chat-message.typing span:nth-child(3),
.mirella-message.typing span:nth-child(3) {
  animation-delay: 0.28s;
}

.mirella-text-block {
  display: block;
}

.mirella-text-block + .mirella-text-block {
  margin-top: 12px;
}

.attachment-card {
  width: min(100%, 420px);
  margin-top: 10px;
  padding: 8px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.mirella-message.user .attachment-card,
.mirella-page-message.user .attachment-card {
  background: rgba(8, 11, 19, 0.08);
  border-color: rgba(8, 11, 19, 0.14);
}

.attachment-card img,
.attachment-icon {
  width: 54px;
  height: 54px;
  border-radius: 11px;
}

.attachment-card img {
  object-fit: cover;
}

.attachment-icon {
  display: grid;
  place-items: center;
  color: var(--text-strong);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 34%),
    rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.mirella-message.user .attachment-icon,
.mirella-page-message.user .attachment-icon {
  color: #080b13;
  background: rgba(8, 11, 19, 0.08);
}

.attachment-card strong,
.attachment-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-card strong {
  color: inherit;
  font-size: 13px;
}

.attachment-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.chat-composer.has-skip {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.chat-composer input,
.chat-composer textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: none;
}

.chat-composer textarea {
  min-height: 92px;
  resize: vertical;
}

.chat-finish {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.chat-finish strong {
  display: block;
  color: var(--text-strong);
  font-size: 18px;
}

.chat-finish p {
  margin: 6px 0 14px;
  color: var(--muted);
}

.start-note {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.start-note strong {
  color: var(--text-strong);
}

.start-note span {
  color: var(--muted);
  font-size: 13px;
}

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

.memory-hero,
.memory-readout {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.memory-hero {
  padding: 28px;
}

.memory-hero h2 {
  max-width: 780px;
  margin: 10px 0;
  color: var(--text-strong);
  font-size: 34px;
  line-height: 1.08;
}

.memory-hero p,
.memory-readout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.memory-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.memory-form {
  display: grid;
  gap: 18px;
}

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

.memory-qa-card {
  min-height: 142px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.memory-qa-card label {
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.memory-qa-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

.memory-qa-card.editing {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

.memory-qa-card input,
.memory-qa-card select,
.memory-qa-card textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: none;
}

.memory-qa-card textarea {
  min-height: 96px;
  resize: vertical;
}

.memory-qa-card input:focus,
.memory-qa-card select:focus,
.memory-qa-card textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.memory-readout {
  padding: 18px;
}

.memory-readout strong {
  display: block;
  margin: 8px 0;
  color: var(--text-strong);
  line-height: 1.45;
}

.mirella-page {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.mirella-page-chat,
.mirella-memory-panel article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.mirella-page-chat {
  min-height: 680px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.mirella-page-header {
  min-height: 116px;
  padding: 24px;
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.mirella-page-avatar {
  width: 74px;
  height: 74px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.mirella-page-header h2 {
  margin: 4px 0 8px;
  color: var(--text-strong);
  font-size: 34px;
}

.mirella-page-header p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.mirella-thread-tabs {
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.mirella-thread-tabs.compact {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.thread-tab {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.thread-tab.active {
  border-color: rgba(255, 255, 255, 0.45);
  background: #ffffff;
  color: #080b13;
}

[data-theme="light"] .thread-tab.active {
  background: #080b13;
  color: #ffffff;
}

.mirella-page-thread {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.mirella-page-message {
  display: flex;
  flex-direction: column;
}

.mirella-page-message .mirella-text {
  max-width: 74%;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  line-height: 1.55;
}

.mirella-page-message.user {
  justify-content: flex-end;
  align-items: flex-end;
}

.mirella-page-message.assistant {
  align-items: flex-start;
}

.mirella-page-message.user .mirella-text {
  color: #080b13;
  background: #ffffff;
}

.mirella-page-message.draft .mirella-text,
.mirella-message.draft .mirella-text {
  opacity: 0.78;
  border-style: dashed;
}

[data-theme="light"] .mirella-page-message.user .mirella-text {
  color: #ffffff;
  background: #080b13;
}

.mirella-page-message.typing span {
  width: 5px;
  height: 5px;
  display: inline-block;
  margin-right: 3px;
  border-radius: 50%;
  background: currentColor;
  animation: typingPulse 1s infinite ease-in-out;
}

.mirella-page-message.typing span:nth-child(2) {
  animation-delay: 0.14s;
}

.mirella-page-message.typing span:nth-child(3) {
  animation-delay: 0.28s;
}

.mirella-page-message.typing .mirella-text {
  color: var(--muted);
}

.mirella-page-form {
  padding: 16px;
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.mirella-page-form textarea {
  min-height: 54px;
  max-height: 150px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  resize: vertical;
  outline: none;
}

.mirella-memory-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.mirella-memory-panel article {
  padding: 18px;
}

.mirella-memory-panel strong {
  display: block;
  margin: 8px 0;
  color: var(--text-strong);
  font-size: 20px;
  line-height: 1.2;
}

.mirella-memory-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.memory-mini-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.memory-mini-list span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  line-height: 1.4;
}

.agent-dashboard {
  position: relative;
  min-height: 560px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(290px, 0.9fr) minmax(330px, 1.02fr) minmax(310px, 0.9fr);
  align-items: center;
  gap: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(7, 8, 12, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  transform: translateZ(0);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

[data-theme="light"] .agent-dashboard {
  background:
    radial-gradient(circle at 28% 20%, rgba(18, 78, 219, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.48)),
    rgba(255, 255, 255, 0.68);
}

.agent-dashboard::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 30% 22%, transparent 0 3px, rgba(255, 255, 255, 0.026) 4px, transparent 5px),
    linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.82)),
    linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  background-size: 8px 8px, auto, auto;
  pointer-events: none;
}

.agent-dashboard::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background:
    linear-gradient(100deg, transparent 0 44%, rgba(255, 255, 255, 0.11) 50%, transparent 58%);
  transform: translateX(-130%);
  animation: dashboardSweep 8s ease-in-out infinite;
  pointer-events: none;
}

[data-theme="light"] .agent-dashboard::before {
  background:
    radial-gradient(circle at 30% 22%, transparent 0 3px, rgba(8, 11, 19, 0.028) 4px, transparent 5px),
    linear-gradient(180deg, transparent 58%, rgba(255, 255, 255, 0.72)),
    linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  background-size: 8px 8px, auto, auto;
}

.agent-briefing,
.agent-panel,
.agent-dashboard .studio-core {
  position: relative;
  z-index: 1;
}

.briefing-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.briefing-topline time {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  white-space: nowrap;
}

.agent-briefing h2 {
  margin: 0 0 14px;
  color: var(--text-strong);
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
}

.agent-briefing p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.agent-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
  max-width: 520px;
}

.agent-status span {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.agent-status span:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
}

[data-theme="light"] .agent-status span,
[data-theme="light"] .briefing-topline time {
  background: rgba(8, 11, 19, 0.035);
}

.agent-status b {
  display: block;
  margin-bottom: 3px;
  color: var(--text-strong);
  font-size: 22px;
}

.agent-panel {
  display: grid;
  gap: 9px;
}

.agent-panel > .eyebrow {
  margin-bottom: 2px;
}

.metric-ribbon {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.metric-tile {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.metric-tile span,
.metric-tile small {
  display: block;
  color: var(--muted);
}

.metric-tile strong {
  display: block;
  margin: 10px 0 5px;
  color: var(--text-strong);
  font-size: 32px;
  line-height: 1;
}

.daily-action-card {
  min-height: 180px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.daily-action-card h2 {
  max-width: 840px;
  margin: 8px 0;
  color: var(--text-strong);
  font-size: 34px;
  line-height: 1.08;
}

.daily-action-card p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.company-map-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.company-map-card {
  min-height: 160px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
  transition: 0.16s ease;
}

.company-map-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
}

.company-map-card span {
  color: var(--text-strong);
  font-weight: 900;
}

.company-map-card strong {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  text-transform: uppercase;
}

.company-map-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.company-map-card.atencao {
  border-color: rgba(244, 193, 93, 0.34);
}

.company-map-card.oportunidade {
  border-color: rgba(40, 217, 154, 0.3);
}

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

.os-hero {
  min-height: 360px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.48fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 72% 18%, rgba(143, 199, 255, 0.16), transparent 28%),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12), transparent 32%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

[data-theme="light"] .os-hero {
  background:
    radial-gradient(circle at 72% 18%, rgba(18, 78, 219, 0.12), transparent 28%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58)),
    var(--surface);
}

.os-hero-copy {
  display: grid;
  align-content: center;
  gap: 16px;
}

.os-hero-copy h2 {
  max-width: 880px;
  margin: 0;
  color: var(--text-strong);
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
}

.os-hero-copy p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

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

.os-command-panel {
  padding: 22px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(20px);
}

.os-command-panel strong {
  color: var(--text-strong);
  font-size: 28px;
  line-height: 1.12;
}

.os-command-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.os-command-metrics span {
  min-height: 78px;
  padding: 12px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.os-command-metrics b {
  display: block;
  color: var(--text-strong);
  font-size: 26px;
}

.os-layer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.os-layer-card {
  min-height: 256px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.os-layer-card strong {
  display: block;
  margin: 8px 0;
  color: var(--text-strong);
  font-size: 24px;
}

.os-layer-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.os-progress {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.os-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff, var(--accent-2));
}

[data-theme="light"] .os-progress span {
  background: linear-gradient(90deg, var(--accent), #080b13);
}

.os-layer-items {
  display: grid;
  gap: 7px;
}

.os-layer-items span {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.35;
}

.os-area-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.os-area-card {
  min-height: 330px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.os-area-card.recommended {
  border-color: rgba(244, 193, 93, 0.36);
}

.os-area-card.active {
  border-color: rgba(40, 217, 154, 0.32);
}

.os-agent-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text-strong);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 40%),
    rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.os-area-card strong {
  color: var(--text-strong);
  font-size: 23px;
  line-height: 1.1;
}

.os-area-card small {
  color: var(--accent-2);
  line-height: 1.35;
}

.os-area-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.os-output-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.os-output-tags span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.os-card-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.os-card-footer em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}

.os-card-footer .ghost-button,
.os-card-footer .primary-action {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 11px;
  font-size: 12px;
}

.os-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
  gap: 18px;
}

.os-workflow-list,
.os-brain-list {
  display: grid;
  gap: 10px;
}

.os-workflow-row {
  width: 100%;
  min-height: 74px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
}

.os-workflow-row:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
}

.os-workflow-row span {
  color: var(--text-strong);
  font-weight: 850;
}

.os-workflow-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.os-workflow-row em {
  color: var(--accent-2);
  font-style: normal;
}

.os-brain-card h2 {
  margin: 8px 0 16px;
  color: var(--text-strong);
  font-size: 28px;
}

.os-brain-list span {
  padding: 12px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  line-height: 1.4;
}

.os-brain-list b {
  color: var(--text-strong);
}

.dashboard-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 18px;
}

.compact-docs {
  grid-template-columns: 1fr;
}

.dashboard-agenda-tasks {
  display: grid;
  gap: 16px;
}

.dashboard-agenda-tasks > div {
  display: grid;
  gap: 8px;
}

.dashboard-agenda-tasks strong {
  color: var(--text-strong);
}

.dashboard-agenda-tasks p {
  margin: 0;
  color: var(--muted);
}

.mini-row {
  min-height: 48px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
}

.mini-row:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
}

.mini-row span {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-grid .command-card {
  min-height: 236px;
}

.intelligence-section {
  padding: 22px;
}

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

.intel-card {
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.intel-card span,
.intel-card small {
  display: block;
  color: var(--muted);
}

.intel-card strong {
  display: block;
  margin: 10px 0;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.25;
}

.studio-hero {
  position: relative;
  min-height: 520px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(270px, 0.86fr) minmax(340px, 1.1fr) minmax(300px, 0.88fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(7, 8, 12, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

[data-theme="light"] .studio-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48)),
    rgba(255, 255, 255, 0.62);
}

.studio-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.78)),
    linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  pointer-events: none;
}

[data-theme="light"] .studio-hero::before {
  background:
    radial-gradient(ellipse at 50% 8%, rgba(18, 78, 219, 0.16), transparent 38%),
    linear-gradient(180deg, transparent 58%, rgba(255, 255, 255, 0.72)),
    linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.42), transparent);
}

.studio-noise {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background:
    repeating-radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%, rgba(255, 255, 255, 0.05));
  mix-blend-mode: screen;
}

.studio-left,
.studio-right,
.studio-core {
  position: relative;
  z-index: 1;
}

.studio-left h2 {
  max-width: 430px;
  margin: 12px 0 14px;
  color: var(--text-strong);
  font-size: 43px;
  line-height: 1.02;
  letter-spacing: 0;
}

.studio-left p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.studio-core {
  min-height: 390px;
  display: grid;
  place-items: center;
}

.studio-core::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 58%);
  filter: blur(28px);
  opacity: 0.65;
}

.studio-core img {
  position: relative;
  z-index: 3;
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 42px rgba(45, 107, 255, 0.36);
}

.core-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  animation: orbitSpin 28s linear infinite;
}

.orbit-a {
  width: 210px;
  height: 210px;
}

.orbit-b {
  width: 318px;
  height: 318px;
  opacity: 0.55;
  animation-duration: 42s;
  animation-direction: reverse;
}

.core-dots {
  position: absolute;
  inset: 0;
  z-index: 2;
  animation: orbitSpin 34s linear infinite;
}

.core-dots i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(var(--angle)) translateX(var(--radius));
  transform-origin: 0 0;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.22);
  animation: dotPulse 3.2s ease-in-out infinite;
  animation-delay: var(--delay);
}

[data-theme="light"] .core-dots i {
  background: rgba(8, 11, 19, 0.54);
}

.studio-right {
  display: grid;
  gap: 9px;
}

.agent-strip {
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  color: var(--text);
  text-align: left;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
  transition: 0.16s ease;
}

[data-theme="light"] .agent-strip {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.54));
}

.agent-strip:hover {
  transform: translateX(-4px);
  border-color: var(--line-strong);
}

.agent-strip strong,
.agent-strip small {
  display: block;
}

.agent-strip strong {
  color: var(--text-strong);
  font-size: 14px;
}

.agent-strip small {
  margin-top: 3px;
  color: var(--muted);
}

.agent-strip em {
  min-width: 58px;
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--success);
  font-style: normal;
  font-size: 12px;
  text-align: center;
}

.agent-dot {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03)),
    var(--accent-soft);
}

.command-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 14px;
}

.command-card,
.workspace-section,
.welcome-panel,
.summary-panel,
.module-panel,
.tool-panel,
.settings-panel,
.empty-state,
.form-section,
.quick-card,
.library-card,
.doc-card,
.metric-card,
.suggestion-card {
  border: 1px solid rgba(232, 185, 102, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 38%),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.command-card {
  min-height: 210px;
  padding: 22px;
}

.command-card strong {
  display: block;
  margin-top: 10px;
  color: var(--text-strong);
  font-size: 24px;
  line-height: 1.15;
}

.command-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.signal-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.signal-list span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.signal-list b {
  max-width: 58%;
  color: var(--text-strong);
}

.route-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.route-row {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
}

[data-theme="light"] .route-row {
  background: rgba(8, 11, 19, 0.035);
}

.route-row span {
  color: var(--muted-2);
  font-weight: 800;
}

.route-row strong {
  margin: 0;
  font-size: 14px;
}

.route-row em {
  color: var(--accent-2);
  font-size: 12px;
  font-style: normal;
}

.workspace-section {
  padding: 22px;
}

.section-stack {
  display: grid;
  gap: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.section-heading h2 {
  margin: 4px 0 0;
  color: var(--text-strong);
  font-size: 22px;
  letter-spacing: 0;
}

.section-heading p,
.quick-card p,
.module-card p,
.library-card p,
.doc-card p,
.suggestion-card p,
.empty-state p,
.module-panel p,
.tool-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.quick-grid,
.module-grid,
.library-grid,
.doc-grid,
.metric-grid,
.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-grid.compact .quick-card {
  min-height: 112px;
}

.quick-card,
.module-card,
.library-card,
.doc-card,
.metric-card,
.suggestion-card {
  min-height: 132px;
  padding: 16px;
  color: var(--text);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  transition: 0.16s ease;
}

.quick-card:hover,
.module-card:hover,
.library-card:hover,
.suggestion-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.quick-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.08);
}

.quick-card strong,
.module-card strong,
.library-card strong,
.doc-card strong,
.suggestion-card strong {
  color: var(--text-strong);
  font-size: 15px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
}

.primary-action,
.ghost-button,
.danger-button,
.chip-button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: 14px;
  transition: 0.16s ease;
}

.primary-action {
  padding: 0 18px;
  border-color: rgba(232, 185, 102, 0.54);
  background: linear-gradient(135deg, #f3c978, #c78f34);
  color: #071120;
  box-shadow: 0 14px 30px rgba(199, 143, 52, 0.22);
}

[data-theme="light"] .primary-action {
  background: linear-gradient(135deg, #07172d, #102f58);
  color: #fff;
}

.primary-action:hover {
  transform: none;
  filter: brightness(1.05);
}

.ghost-button,
.chip-button {
  padding: 0 16px;
  border-color: var(--line);
  background: rgba(232, 185, 102, 0.055);
  color: var(--text-strong);
}

[data-theme="light"] .ghost-button,
[data-theme="light"] .chip-button {
  background: rgba(8, 11, 19, 0.045);
}

.ghost-button:hover,
.chip-button:hover,
.chip-button.active {
  border-color: var(--line-strong);
  background: rgba(232, 185, 102, 0.12);
}

.danger-button {
  padding: 0 14px;
  border-color: rgba(255, 110, 110, 0.32);
  background: rgba(255, 110, 110, 0.12);
  color: var(--text-strong);
}

.admin-hero,
.legal-hero {
  min-height: 220px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 72% 18%, rgba(120, 145, 210, 0.2), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.admin-hero h2,
.legal-hero h2 {
  max-width: 760px;
  margin: 8px 0 10px;
  color: var(--text-strong);
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
}

.admin-hero p,
.legal-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.pricing-hero {
  min-height: 280px;
  padding: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 22%, rgba(45, 107, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.pricing-hero h2 {
  max-width: 760px;
  margin: 8px 0 10px;
  color: var(--text-strong);
  font-size: clamp(34px, 4vw, 60px);
  line-height: 0.98;
}

.pricing-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.pricing-cycle {
  padding: 6px;
  display: inline-flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.pricing-cycle button {
  min-width: 120px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.pricing-cycle button.active {
  color: #0b0d13;
  background: #ffffff;
}

.pricing-cycle span {
  display: block;
  font-size: 11px;
  opacity: 0.72;
}

.billing-usage-panel,
.dashboard-billing-card {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.dashboard-billing-card.warning {
  border-color: rgba(244, 193, 93, 0.36);
}

.dashboard-billing-card.danger {
  border-color: rgba(255, 110, 110, 0.42);
}

.billing-usage-panel h2,
.dashboard-billing-card h2 {
  margin: 7px 0;
  color: var(--text-strong);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.billing-usage-panel p,
.dashboard-billing-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.checkout-readiness-panel {
  align-items: start;
}

.checkout-readiness-panel small {
  display: block;
  margin-top: 10px;
  color: var(--accent-2);
  line-height: 1.45;
  font-weight: 760;
}

.checkout-consent {
  min-height: 100%;
  padding: 16px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.045);
  line-height: 1.45;
  font-weight: 780;
}

.checkout-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.billing-action-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-billing-side {
  display: grid;
  gap: 12px;
}

.billing-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.billing-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff, var(--accent-2));
}

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

.pricing-card {
  min-height: 620px;
  padding: 22px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.pricing-card.featured {
  border-color: rgba(143, 199, 255, 0.46);
  transform: translateY(-6px);
}

.pricing-card.top-tier {
  border-color: rgba(244, 193, 93, 0.42);
}

.pricing-card h3 {
  margin: 8px 0;
  color: var(--text-strong);
  font-size: 34px;
  line-height: 1;
}

.pricing-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.pricing-price strong {
  color: var(--text-strong);
  font-size: 42px;
  line-height: 1;
}

.pricing-price span {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 800;
}

.pricing-features {
  display: grid;
  gap: 9px;
}

.pricing-feature {
  min-height: 48px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.pricing-feature span {
  color: var(--success);
  font-weight: 900;
}

.pricing-feature.disabled span,
.pricing-feature.disabled em {
  color: var(--muted-2);
}

.pricing-feature strong {
  color: var(--text-strong);
}

.pricing-feature em {
  color: var(--muted);
  font-style: normal;
}

.paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(18px);
}

.paywall-card {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    radial-gradient(circle at 80% 10%, rgba(45, 107, 255, 0.22), transparent 34%),
    var(--bg-soft);
  box-shadow: var(--shadow);
}

.paywall-card .icon-button {
  position: absolute;
  top: 16px;
  right: 16px;
}

.paywall-card h2 {
  margin: 10px 0;
  color: var(--text-strong);
  font-size: 34px;
  line-height: 1;
}

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

.paywall-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.admin-metric {
  min-height: 116px;
}

.admin-board {
  display: grid;
  gap: 16px;
}

.admin-table-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.admin-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.legal-status {
  min-width: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.legal-status.accepted {
  border-color: rgba(64, 220, 160, 0.42);
}

.legal-status strong,
.settings-inline-card strong {
  display: block;
  color: var(--text-strong);
}

.legal-status span,
.settings-inline-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

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

.legal-card,
.settings-inline-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.settings-plan-card {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--surface);
  box-shadow: var(--shadow);
}

.settings-plan-card strong,
.settings-plan-card span,
.settings-plan-card small {
  display: block;
}

.settings-plan-card strong {
  color: var(--text-strong);
  font-size: 22px;
}

.settings-plan-card span {
  margin-top: 6px;
  color: var(--text);
}

.settings-plan-card small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.segmented-field {
  display: grid;
  gap: 10px;
}

.segmented-control {
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.segmented-control button {
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  transition: 0.16s ease;
}

.segmented-control button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.segmented-control button.active {
  color: #0b0d13;
  background: #ffffff;
}

[data-theme="light"] .segmented-control button.active {
  color: #ffffff;
  background: #080b13;
}

body.auth-mode .app-shell,
body.auth-mode .mirella-widget,
body.landing-mode .app-shell,
body.landing-mode .mirella-widget {
  display: none;
}

body.landing-mode {
  min-height: 100%;
  height: auto;
  overflow: auto;
  overflow-x: hidden;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #071120;
}

body.landing-mode::before,
body.landing-mode::after {
  display: none;
}

.landing-page {
  min-height: 100vh;
  color: #f8f0df;
  background:
    linear-gradient(180deg, rgba(5, 14, 28, 0.18), rgba(5, 14, 28, 0.86) 38%, #061020 100%),
    #071120;
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

.landing-page button,
.landing-page a {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(3, 12, 25, 0.88);
  border-bottom: 1px solid rgba(222, 181, 111, 0.22);
  backdrop-filter: blur(18px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 900;
}

.landing-brand img {
  width: 58px;
  height: 42px;
  border-radius: 0;
  object-fit: contain;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.landing-nav-links a,
.landing-nav-links button {
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.landing-nav-links button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  color: #08101f;
  background: linear-gradient(135deg, #f1c779, #d49c43);
}

.landing-hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.48fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(44px, 7vw, 96px) clamp(18px, 5vw, 72px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(222, 181, 111, 0.24);
  background:
    linear-gradient(90deg, rgba(3, 12, 25, 0.94) 0%, rgba(3, 12, 25, 0.66) 43%, rgba(3, 12, 25, 0.14) 74%, rgba(3, 12, 25, 0.5) 100%),
    linear-gradient(180deg, rgba(3, 12, 25, 0.18), #061020 105%),
    url("assets/landing-hero-renaissance-ai.jpg?v=20260725") center right / cover no-repeat;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(235, 193, 113, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(235, 193, 113, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
  pointer-events: none;
}

.landing-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: 17%;
  top: 19%;
  border: 1px solid rgba(232, 185, 102, 0.22);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 72px rgba(232, 185, 102, 0.015),
    0 0 90px rgba(54, 142, 255, 0.12);
  pointer-events: none;
  animation: landingHalo 8s ease-in-out infinite;
}

.landing-hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 830px;
  padding: 0;
  background: none;
}

.landing-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  color: #e8b966;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-hero h1,
.landing-section h2 {
  margin: 0;
  color: #fff7e8;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.02;
}

.landing-hero h1 {
  max-width: 760px;
  font-size: clamp(54px, 7vw, 104px);
  text-wrap: balance;
  animation: landingRise 0.72s ease both;
}

.landing-hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  animation: landingRise 0.72s ease 0.08s both;
}

.landing-hero-detail {
  max-width: 680px;
  font-size: 15px;
  opacity: 0.78;
}

.landing-hero .landing-actions {
  animation: landingRise 0.72s ease 0.15s both;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.landing-primary,
.landing-secondary,
.landing-plan-card button {
  min-height: 50px;
  border: 1px solid rgba(222, 181, 111, 0.42);
  border-radius: 6px;
  padding: 0 24px;
  font-weight: 950;
  cursor: pointer;
}

.landing-primary,
.landing-plan-card button {
  color: #071120;
  background: linear-gradient(135deg, #ffd98f, #c98e36);
  box-shadow: 0 18px 36px rgba(210, 150, 58, 0.24);
}

.landing-actions .landing-primary {
  position: relative;
  overflow: hidden;
}

.landing-actions .landing-primary::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 44%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  animation: landingShine 3.8s ease-in-out infinite;
}

.landing-secondary {
  color: #f8f0df;
  background: rgba(255, 255, 255, 0.05);
}

.landing-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin-top: 24px;
}

.landing-hero-metrics article {
  min-height: 82px;
  border: 1px solid rgba(222, 181, 111, 0.26);
  border-radius: 8px;
  padding: 14px;
  background: rgba(3, 12, 25, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.landing-hero-metrics strong {
  display: block;
  color: #ffd98f;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
}

.landing-hero-metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.landing-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 10px;
  max-width: 740px;
  margin-top: 32px;
}

.landing-proof span,
.landing-problem-grid article,
.landing-steps article {
  border: 1px solid rgba(222, 181, 111, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
}

.landing-proof span {
  padding: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.landing-hero-system {
  position: relative;
  z-index: 3;
  min-height: 520px;
  display: grid;
  align-content: end;
}

.landing-orbit {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 240px;
  height: 240px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 185, 102, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(54, 142, 255, 0.24), transparent 34%),
    rgba(4, 14, 29, 0.32);
  box-shadow: 0 0 80px rgba(54, 142, 255, 0.18);
}

.landing-orbit::before,
.landing-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(232, 185, 102, 0.22);
  border-radius: 50%;
}

.landing-orbit::before {
  inset: 34px;
}

.landing-orbit::after {
  inset: 76px;
  border-color: rgba(54, 142, 255, 0.28);
}

.landing-orbit span {
  position: absolute;
  width: 74%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 185, 102, 0.75), transparent);
  transform: rotate(-22deg);
  animation: landingOrbitScan 5s linear infinite;
}

.landing-orbit strong {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle, rgba(54, 142, 255, 0.78), rgba(4, 14, 29, 0.92));
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  box-shadow: 0 0 42px rgba(54, 142, 255, 0.54);
}

.landing-system-panel {
  border: 1px solid rgba(232, 185, 102, 0.28);
  border-radius: 8px;
  padding: 24px;
  background: rgba(3, 12, 25, 0.72);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.landing-system-panel h2 {
  max-width: 420px;
  margin: 0;
  color: #fff7e8;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 500;
}

.landing-system-feed {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.landing-system-feed span {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(232, 185, 102, 0.2);
  border-radius: 6px;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 800;
  animation: landingFeedPulse 4.8s ease-in-out infinite;
}

.landing-system-feed span:nth-child(2) {
  animation-delay: 0.8s;
}

.landing-system-feed span:nth-child(3) {
  animation-delay: 1.6s;
}

.landing-system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.landing-system-grid span {
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.055);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 850;
}

.landing-section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(222, 181, 111, 0.18);
  background:
    linear-gradient(rgba(7, 23, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 23, 45, 0.026) 1px, transparent 1px),
    #f1e7d4;
  background-size: 42px 42px;
  color: #111622;
}

.landing-section:nth-of-type(even) {
  color: #f8f0df;
  background:
    linear-gradient(135deg, rgba(222, 181, 111, 0.08), transparent 42%),
    #071120;
}

.landing-section h2 {
  max-width: 920px;
  color: inherit;
  font-size: clamp(34px, 4vw, 56px);
}

.landing-section p {
  color: rgba(17, 22, 34, 0.76);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.landing-section:nth-of-type(even) p {
  color: rgba(255, 255, 255, 0.78);
}

.landing-two-col,
.landing-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}

.landing-section-head {
  max-width: 920px;
  margin: 0 auto 34px;
  text-align: center;
}

.landing-problem {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.landing-problem > p {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 0;
  font-weight: 800;
}

.landing-problem-grid,
.landing-agents,
.landing-plans {
  display: grid;
  gap: 14px;
}

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

.landing-problem-grid article {
  padding: 18px;
  color: #fff;
  border-color: rgba(232, 185, 102, 0.36);
  background: linear-gradient(180deg, #0a2241, #06152a);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 850;
}

.landing-roi {
  color: #f8f0df;
  background:
    radial-gradient(circle at 12% 14%, rgba(232, 185, 102, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(54, 142, 255, 0.08), transparent 48%),
    #071120;
}

.landing-roi-panel {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 0.65fr);
  gap: 16px;
  align-items: stretch;
}

.landing-roi-control,
.landing-roi-numbers,
.landing-roi-chart {
  border: 1px solid rgba(232, 185, 102, 0.26);
  border-radius: 10px;
  background: rgba(7, 23, 45, 0.74);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.landing-roi-control {
  padding: 24px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.landing-roi-control label {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.4;
}

.landing-roi-control strong {
  display: block;
  margin: 18px 0 12px;
  color: #ffd98f;
  font-size: 32px;
}

.landing-roi-control input {
  width: 100%;
  accent-color: #d49c43;
}

.landing-roi-control small {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.5;
}

.landing-roi-numbers {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-roi-numbers article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.landing-roi-numbers span {
  display: block;
  color: #ffd98f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.landing-roi-numbers p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.4;
}

.landing-roi-chart {
  grid-column: 2;
  padding: 20px;
  display: grid;
  gap: 16px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.landing-roi-chart div {
  display: grid;
  grid-template-columns: minmax(122px, 0.3fr) 1fr auto;
  gap: 12px;
  align-items: center;
}

.landing-roi-chart span,
.landing-roi-chart strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
}

.landing-roi-chart i {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.landing-roi-chart b {
  display: block;
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f3c978, #6aa9ff);
  transition: width 0.32s ease;
}

.landing-agents {
  grid-template-columns: repeat(7, minmax(138px, 1fr));
}

.landing-agent-card,
.landing-plan-card,
.landing-compare article {
  border: 1px solid rgba(222, 181, 111, 0.32);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(3, 12, 25, 0.18);
}

.landing-agent-card {
  min-height: 320px;
  overflow: hidden;
  padding: 0;
  color: #f8f0df;
  border-color: rgba(232, 185, 102, 0.38);
  background:
    linear-gradient(180deg, rgba(232, 185, 102, 0.07), transparent 34%),
    linear-gradient(180deg, #0a2241, #06152a);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.landing-agent-portrait {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background: rgba(3, 12, 25, 0.42);
}

.landing-agent-portrait img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.94) contrast(1.03);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.landing-agent-card:hover .landing-agent-portrait img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.08);
}

.landing-agent-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(6, 16, 32, 0.9));
  pointer-events: none;
}

.landing-agent-portrait span,
.landing-plan-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  border: 1px solid rgba(222, 181, 111, 0.45);
  border-radius: 6px;
  padding: 5px 8px;
  color: #e8b966;
  font-size: 11px;
  font-weight: 950;
}

.landing-agent-portrait span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  margin: 0;
  background: rgba(3, 12, 25, 0.72);
}

.landing-agent-copy {
  padding: 15px 16px 0;
}

.landing-agent-card strong {
  display: block;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.landing-agent-card em {
  display: block;
  margin-top: 2px;
  color: #e8b966;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-agent-card p {
  margin: 10px 16px 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.landing-demo {
  color: #f8f0df;
  background:
    radial-gradient(circle at 74% 24%, rgba(232, 185, 102, 0.11), transparent 34%),
    linear-gradient(135deg, rgba(54, 142, 255, 0.08), transparent 48%),
    #061020;
}

.landing-product-demo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid rgba(232, 185, 102, 0.28);
  border-radius: 10px;
  padding: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    rgba(3, 12, 25, 0.72);
  background-size: 34px 34px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.landing-product-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(232, 185, 102, 0.12) 42%, transparent 68%);
  transform: translateX(-100%);
  animation: landingDashboardSweep 7s ease-in-out infinite;
  pointer-events: none;
}

.landing-demo-sidebar,
.landing-demo-screen,
.landing-demo-output {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(232, 185, 102, 0.22);
  border-radius: 8px;
  background: rgba(7, 23, 45, 0.72);
  backdrop-filter: blur(18px);
}

.landing-demo-sidebar {
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 10px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.landing-demo-sidebar > strong {
  margin-bottom: 8px;
  color: #fff7e8;
  font-size: 14px;
  text-transform: uppercase;
}

.landing-demo-sidebar > span {
  min-height: 48px;
  display: grid;
  grid-template-columns: 12px 1fr;
  column-gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.045);
  animation: landingAgentWake 5.4s ease-in-out infinite;
}

.landing-demo-sidebar > span:nth-of-type(2) {
  animation-delay: 0.45s;
}

.landing-demo-sidebar > span:nth-of-type(3) {
  animation-delay: 0.9s;
}

.landing-demo-sidebar > span:nth-of-type(4) {
  animation-delay: 1.35s;
}

.landing-demo-sidebar > span:nth-of-type(5) {
  animation-delay: 1.8s;
}

.landing-demo-sidebar > span:nth-of-type(6) {
  animation-delay: 2.25s;
}

.landing-demo-sidebar i {
  width: 9px;
  height: 9px;
  grid-row: span 2;
  border-radius: 50%;
  background: #e8b966;
  box-shadow: 0 0 18px rgba(232, 185, 102, 0.5);
}

.landing-demo-sidebar span.active i {
  background: #6aa9ff;
  box-shadow: 0 0 22px rgba(106, 169, 255, 0.72);
}

.landing-demo-sidebar span strong,
.landing-demo-sidebar span em {
  display: block;
  font-style: normal;
}

.landing-demo-sidebar span strong {
  color: #fff;
  font-size: 13px;
}

.landing-demo-sidebar span em {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.landing-demo-screen {
  min-height: 430px;
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}

.landing-demo-topbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(232, 185, 102, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
}

.landing-demo-topbar em {
  border: 1px solid rgba(232, 185, 102, 0.3);
  border-radius: 999px;
  padding: 5px 10px;
  color: #e8b966;
  font-size: 11px;
  font-style: normal;
  text-transform: uppercase;
}

.landing-demo-thread {
  display: grid;
  gap: 12px;
  align-content: center;
}

.landing-demo-thread article {
  max-width: 88%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.055);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  animation: landingMessageFloat 6s ease-in-out infinite;
}

.landing-demo-thread article:nth-child(2) {
  margin-left: auto;
  animation-delay: 0.8s;
}

.landing-demo-thread article:nth-child(3) {
  animation-delay: 1.6s;
}

.landing-demo-thread span {
  color: #e8b966;
  font-size: 12px;
  font-weight: 950;
}

.landing-demo-thread p,
.landing-demo-output p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.5;
}

.landing-demo-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.landing-demo-board div {
  border: 1px solid rgba(232, 185, 102, 0.18);
  border-radius: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.landing-demo-board span {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 800;
}

.landing-demo-board strong {
  display: block;
  margin-top: 7px;
  color: #fff7e8;
  font-size: 18px;
}

.landing-demo-output {
  padding: 22px;
  display: grid;
  align-content: center;
}

.landing-demo-output h3 {
  margin: 0;
  color: #fff7e8;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 500;
}

.landing-demo-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  margin: 22px 0 10px;
  background: rgba(255, 255, 255, 0.08);
}

.landing-demo-progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f3c978, #6aa9ff);
  animation: landingProgress 4.6s ease-in-out infinite;
}

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

.landing-steps article {
  min-height: 150px;
  padding: 20px;
  display: grid;
  align-content: space-between;
  border-color: rgba(232, 185, 102, 0.4);
  background:
    linear-gradient(180deg, rgba(232, 185, 102, 0.08), transparent 40%),
    linear-gradient(180deg, #0a2241, #06152a);
  box-shadow: 0 24px 60px rgba(3, 12, 25, 0.22);
}

.landing-steps span {
  color: #e8b966;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 950;
}

.landing-steps strong {
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 850;
}

.landing-compare article {
  padding: 28px;
  background: rgba(255, 255, 255, 0.055);
}

.landing-compare h3,
.landing-plan-card h3 {
  margin: 0;
  color: inherit;
  font-size: 30px;
  font-weight: 500;
}

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

.landing-billing-toggle {
  width: fit-content;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(232, 185, 102, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(17, 22, 34, 0.78);
  background:
    linear-gradient(180deg, rgba(232, 185, 102, 0.08), transparent 42%),
    rgba(255, 250, 240, 0.58);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 850;
  box-shadow: 0 18px 44px rgba(7, 23, 45, 0.1);
}

.landing-section:nth-of-type(even) .landing-billing-toggle {
  color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(180deg, rgba(232, 185, 102, 0.1), transparent 42%),
    rgba(7, 23, 45, 0.72);
}

.landing-billing-toggle button {
  width: 68px;
  height: 34px;
  border: 1px solid rgba(232, 185, 102, 0.44);
  border-radius: 99px;
  padding: 3px;
  background: linear-gradient(180deg, #07172d, #061020);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.landing-billing-toggle button span {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3c978, #c78f34);
  box-shadow: 0 0 18px rgba(232, 185, 102, 0.28);
  transition: transform 0.18s ease;
}

.landing-billing-toggle button[aria-pressed="true"] span {
  transform: translateX(29px);
}

.landing-billing-toggle strong {
  color: #07172d;
}

.landing-billing-toggle em {
  border: 1px solid rgba(232, 185, 102, 0.34);
  border-radius: 6px;
  padding: 7px 12px;
  color: #07172d;
  background: rgba(232, 185, 102, 0.18);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.landing-section:nth-of-type(even) .landing-billing-toggle strong,
.landing-section:nth-of-type(even) .landing-billing-toggle em {
  color: #fff7e8;
}

.landing-section:nth-of-type(even) .landing-billing-toggle em {
  background: rgba(232, 185, 102, 0.12);
}

.landing-plan-card {
  position: relative;
  padding: 28px;
  color: #071120;
  border-color: rgba(201, 142, 54, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 235, 216, 0.96)),
    #fff8ea;
}

.landing-plan-card.featured {
  color: #f8f0df;
  background:
    linear-gradient(180deg, rgba(232, 185, 102, 0.08), transparent 34%),
    linear-gradient(180deg, #0a2241, #06152a);
  transform: translateY(-10px);
}

.landing-plan-card:not(.featured) h3,
.landing-plan-card:not(.featured) strong {
  color: #061020;
}

.landing-plan-card:not(.featured) p,
.landing-plan-card:not(.featured) ul {
  color: rgba(7, 17, 32, 0.78);
}

.landing-plan-card:not(.featured) small {
  color: rgba(7, 17, 32, 0.64);
}

.landing-plan-card div {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 24px 0 18px;
}

.landing-plan-card strong {
  font-size: 42px;
  line-height: 1;
}

.landing-plan-card small,
.landing-plan-helper {
  display: block;
  color: rgba(17, 22, 34, 0.62);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.landing-plan-card.featured small {
  color: rgba(255, 255, 255, 0.72);
}

.landing-plan-card ul {
  min-height: 178px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: rgba(17, 22, 34, 0.78);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.landing-plan-card.featured ul,
.landing-plan-card.featured p {
  color: rgba(255, 255, 255, 0.88);
}

.landing-plan-card li::before {
  content: "✓";
  margin-right: 8px;
  color: #c98e36;
  font-weight: 950;
}

.landing-plan-card button {
  width: 100%;
}

.landing-plan-card li::before {
  content: "\2713";
}

.landing-plan-helper {
  margin: 18px auto 0;
  max-width: 760px;
  text-align: center;
}

.landing-choice-grid,
.landing-faq-grid {
  display: grid;
  gap: 14px;
}

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

.landing-choice-grid article,
.landing-faq-item {
  border: 1px solid rgba(232, 185, 102, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(232, 185, 102, 0.07), transparent 34%),
    linear-gradient(180deg, #0a2241, #06152a);
  color: #fff;
  box-shadow: 0 24px 60px rgba(3, 12, 25, 0.18);
}

.landing-choice-grid article {
  padding: 24px;
}

.landing-choice-grid h3 {
  margin: 0 0 10px;
  color: #fff7e8;
  font-size: 28px;
  font-weight: 500;
}

.landing-choice-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.landing-faq-grid {
  max-width: 980px;
  margin: 0 auto;
}

.landing-faq-item {
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.landing-faq-item summary {
  padding: 20px 22px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.landing-faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: rgba(255, 255, 255, 0.82);
}

.landing-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-final p {
  max-width: 680px;
}

.landing-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.72s ease var(--reveal-delay, 0ms),
    transform 0.72s ease var(--reveal-delay, 0ms);
}

.landing-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes landingRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landingHalo {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes landingShine {
  0%,
  42% {
    transform: translateX(0) skewX(-18deg);
  }
  70%,
  100% {
    transform: translateX(360%) skewX(-18deg);
  }
}

@keyframes landingOrbitScan {
  to {
    transform: rotate(338deg);
  }
}

@keyframes landingFeedPulse {
  0%,
  100% {
    border-color: rgba(232, 185, 102, 0.18);
    transform: translateX(0);
  }
  50% {
    border-color: rgba(232, 185, 102, 0.52);
    transform: translateX(5px);
  }
}

@keyframes landingDashboardSweep {
  0%,
  36% {
    transform: translateX(-105%);
  }
  70%,
  100% {
    transform: translateX(105%);
  }
}

@keyframes landingAgentWake {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(0);
  }
  50% {
    border-color: rgba(232, 185, 102, 0.4);
    transform: translateY(-2px);
  }
}

@keyframes landingMessageFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes landingProgress {
  0%,
  100% {
    width: 34%;
  }
  50% {
    width: 92%;
  }
}

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(90deg, rgba(3, 12, 25, 0.95), rgba(3, 12, 25, 0.72), rgba(3, 12, 25, 0.92)),
    url("assets/landing-hero-renaissance-ai.jpg?v=20260725") center right / cover no-repeat,
    #061020;
  color: #fff;
}

.auth-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.62fr);
  gap: 24px;
  align-items: stretch;
}

.auth-copy,
.auth-card {
  border: 1px solid rgba(232, 185, 102, 0.28);
  background:
    linear-gradient(180deg, rgba(232, 185, 102, 0.08), transparent 36%),
    rgba(7, 23, 45, 0.78);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px);
}

.auth-copy {
  min-height: 620px;
  border-radius: 8px;
  padding: clamp(34px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
}

.auth-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 55% 44%, #000, transparent 62%);
  pointer-events: none;
}

.auth-logo {
  width: 150px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  margin-bottom: auto;
  box-shadow: none;
}

.auth-copy h1 {
  position: relative;
  margin: 18px 0 16px;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.94;
  letter-spacing: 0;
}

.auth-copy p {
  position: relative;
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 20px;
  line-height: 1.5;
}

.auth-card {
  border-radius: 8px;
  padding: 30px;
  align-self: center;
  display: grid;
  gap: 16px;
}

.auth-card h2 {
  margin: 0 0 6px;
  font-size: 34px;
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.auth-card input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(232, 185, 102, 0.24);
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: rgba(3, 12, 25, 0.62);
  font: inherit;
  outline: none;
}

.auth-card input:focus {
  border-color: rgba(232, 185, 102, 0.72);
  box-shadow: 0 0 0 4px rgba(232, 185, 102, 0.12);
}

.auth-card .primary-action,
.auth-card .ghost-button {
  width: 100%;
  justify-content: center;
}

.auth-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.5;
}

.auth-inline-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(220, 80, 80, 0.5);
  border-radius: 8px;
  background: rgba(220, 80, 80, 0.12);
  color: #ff9494;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  animation: auth-error-in 0.25s ease;
}

@keyframes auth-error-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 880px) {
  .landing-nav {
    position: relative;
    min-height: 64px;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 9px 16px;
    backdrop-filter: none;
  }

  .landing-nav-links {
    width: auto;
    margin-left: auto;
    overflow: visible;
    padding-bottom: 0;
    gap: 10px;
  }

  .landing-nav-links a {
    display: none;
  }

  .landing-nav-links button {
    min-height: 42px;
    padding: 0 18px;
  }

  .landing-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 30px 18px 40px;
    background:
      linear-gradient(90deg, rgba(3, 12, 25, 0.96) 0%, rgba(3, 12, 25, 0.78) 52%, rgba(3, 12, 25, 0.34) 100%),
      linear-gradient(180deg, rgba(3, 12, 25, 0.08), #061020 108%),
      url("assets/landing-hero-renaissance-ai.jpg?v=20260725") 58% top / auto 100% no-repeat,
      #061020;
  }

  .landing-hero-copy {
    max-width: 100%;
    padding: 0;
  }

  .landing-hero-system {
    display: none;
  }

  .landing-product-demo {
    grid-template-columns: 1fr;
  }

  .landing-demo-screen {
    min-height: auto;
  }

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

  .landing-roi-panel {
    grid-template-columns: 1fr;
  }

  .landing-roi-chart {
    grid-column: auto;
  }

  .landing-roi-numbers {
    grid-template-columns: 1fr;
  }

  .landing-demo-sidebar,
  .landing-demo-screen,
  .landing-demo-output,
  .landing-roi-control,
  .landing-roi-numbers,
  .landing-roi-chart,
  .landing-hero-metrics article {
    backdrop-filter: none;
  }

  .landing-reveal,
  .landing-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .landing-proof,
  .landing-two-col,
  .landing-problem,
  .landing-compare,
  .landing-plans,
  .landing-choice-grid {
    grid-template-columns: 1fr;
  }

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

  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-plan-card.featured {
    transform: none;
  }

  .landing-final {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-final .landing-primary {
    width: 100%;
  }

  .auth-gate {
    padding: 16px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .landing-nav {
    gap: 12px;
    padding: 8px 14px;
  }

  .landing-brand {
    gap: 8px;
  }

  .landing-brand span {
    font-size: 15px;
  }

  .landing-brand img {
    width: 42px;
    height: 32px;
  }

  .landing-nav-links {
    gap: 10px;
  }

  .landing-nav-links a,
  .landing-nav-links button {
    white-space: nowrap;
    font-size: 12px;
  }

  .landing-billing-toggle {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .landing-hero {
    padding: 24px 16px 34px;
    background:
      linear-gradient(90deg, rgba(3, 12, 25, 0.97) 0%, rgba(3, 12, 25, 0.82) 55%, rgba(3, 12, 25, 0.38) 100%),
      linear-gradient(180deg, rgba(3, 12, 25, 0.08), #061020 108%),
      url("assets/landing-hero-renaissance-ai.jpg?v=20260725") 61% top / auto 100% no-repeat,
      #061020;
  }

  .landing-hero h1 {
    max-width: 95%;
    font-size: clamp(38px, 12vw, 46px);
    line-height: 0.98;
  }

  .landing-hero p {
    max-width: 92%;
    margin-top: 15px;
    font-size: 15.5px;
    line-height: 1.46;
  }

  .landing-hero-detail {
    max-width: 90%;
    font-size: 14px;
  }

  .landing-kicker {
    margin-bottom: 12px;
  }

  .landing-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }

  .landing-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .landing-hero-metrics article {
    min-height: 70px;
    padding: 10px;
  }

  .landing-hero-metrics strong {
    font-size: 21px;
  }

  .landing-hero-metrics span {
    font-size: 10.5px;
    line-height: 1.25;
  }

  .landing-hero-detail {
    display: none;
  }

  .landing-primary,
  .landing-secondary,
  .landing-plan-card button {
    width: 100%;
  }

  .landing-proof,
  .landing-problem-grid,
  .landing-agents,
  .landing-system-grid {
    grid-template-columns: 1fr;
  }

  .landing-proof {
    gap: 8px;
    margin-top: 18px;
  }

  .landing-proof span {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
  }

  .landing-proof span:nth-child(n + 3) {
    display: none;
  }

  .landing-roi-chart div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .landing-agent-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
  }

  .landing-agent-portrait {
    width: 76px;
    height: 76px;
    min-height: 0;
    grid-row: 1 / span 2;
    border: 1px solid rgba(232, 185, 102, 0.5);
    border-radius: 50%;
    background: #061020;
  }

  .landing-agent-portrait img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: var(--agent-avatar-position, center 30%);
    transform: scale(var(--agent-avatar-scale, 1.42));
    transform-origin: var(--agent-avatar-origin, center center);
  }

  .landing-agent-card:hover .landing-agent-portrait img {
    transform: scale(var(--agent-avatar-scale, 1.42));
  }

  .landing-agent-mirella {
    --agent-avatar-position: 55% 30%;
    --agent-avatar-scale: 1.48;
    --agent-avatar-origin: 55% 45%;
  }

  .landing-agent-rafael {
    --agent-avatar-position: 59% 30%;
    --agent-avatar-scale: 1.5;
    --agent-avatar-origin: 60% 45%;
  }

  .landing-agent-clara {
    --agent-avatar-position: 55% 29%;
    --agent-avatar-scale: 1.48;
    --agent-avatar-origin: 55% 44%;
  }

  .landing-agent-marina {
    --agent-avatar-position: 57% 30%;
    --agent-avatar-scale: 1.48;
    --agent-avatar-origin: 57% 45%;
  }

  .landing-agent-otavio {
    --agent-avatar-position: 61% 30%;
    --agent-avatar-scale: 1.5;
    --agent-avatar-origin: 61% 45%;
  }

  .landing-agent-bianca {
    --agent-avatar-position: 52% 29%;
    --agent-avatar-scale: 1.46;
    --agent-avatar-origin: 52% 44%;
  }

  .landing-agent-helena {
    --agent-avatar-position: 60% 29%;
    --agent-avatar-scale: 1.5;
    --agent-avatar-origin: 60% 44%;
  }

  .landing-agent-portrait::after,
  .landing-agent-portrait span {
    display: none;
  }

  .landing-agent-copy {
    padding: 0;
  }

  .landing-agent-card strong {
    font-size: 25px;
  }

  .landing-agent-card p {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    display: block;
    overflow: visible;
    font-size: 13.5px;
    line-height: 1.45;
  }

  .landing-section {
    padding: 48px 16px;
  }

  .landing-section h2 {
    font-size: 36px;
  }

  .landing-hero-system {
    min-height: 360px;
  }

  .landing-orbit {
    width: 190px;
    height: 190px;
  }

  .landing-system-panel {
    padding: 18px;
  }

  .landing-system-panel h2 {
    font-size: 25px;
  }

  .landing-demo-board {
    grid-template-columns: 1fr;
  }

  .landing-demo-thread article {
    max-width: 100%;
  }

  .landing-demo-output h3 {
    font-size: 24px;
  }

  .auth-gate {
    padding: 12px;
  }

  .auth-copy,
  .auth-card {
    padding: 22px;
  }

  .auth-logo {
    width: 124px;
  }
}

.legal-card p {
  min-height: 120px;
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.legal-card small {
  color: var(--accent-2);
  font-weight: 800;
}

.legal-consent-list {
  display: grid;
  gap: 10px;
}

.legal-consent-row {
  min-height: 52px;
  padding: 12px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.legal-consent-row span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-2);
}

.legal-consent-row strong {
  color: var(--text-strong);
}

.legal-consent-row em {
  color: var(--muted);
  font-style: normal;
}

.settings-inline-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.automation-meeting-page {
  display: grid;
  gap: 18px;
}

.automation-hero {
  min-height: 300px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 72% 30%, rgba(105, 130, 190, 0.28), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.automation-hero h2 {
  max-width: 820px;
  margin: 8px 0 12px;
  color: var(--text-strong);
  font-size: clamp(34px, 4vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.automation-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.automation-hero aside {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 9, 14, 0.42);
  backdrop-filter: blur(18px);
}

.automation-hero aside strong,
.automation-side-panel strong {
  display: block;
  color: var(--text-strong);
  font-size: 22px;
  line-height: 1.2;
}

.automation-hero aside span {
  display: block;
  margin: 8px 0 12px;
  color: var(--accent-2);
}

.automation-proof-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.automation-proof-row span {
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
  font-weight: 760;
}

.automation-request-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.automation-request-form,
.automation-side-panel article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.automation-side-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.automation-request-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.automation-side-panel p,
.automation-hero aside p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 22px;
}

.welcome-panel,
.summary-panel,
.module-panel,
.tool-panel,
.settings-panel,
.empty-state {
  padding: 22px;
}

.welcome-panel h2 {
  max-width: 760px;
  margin: 10px 0 14px;
  color: var(--text-strong);
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: 0;
}

.welcome-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.summary-panel {
  display: grid;
  gap: 0;
}

.summary-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row span {
  color: var(--muted);
}

.summary-row strong {
  max-width: 55%;
  color: var(--text-strong);
  text-align: right;
}

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

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

.meeting-command,
.meeting-workspace,
.meeting-result {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.meeting-command {
  padding: 22px;
  position: sticky;
  top: 100px;
}

.meeting-command h2 {
  margin: 8px 0 12px;
  color: var(--text-strong);
  font-size: 32px;
  line-height: 1.05;
}

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

.meeting-advisors {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.meeting-advisors span {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.meeting-workspace {
  padding: 22px;
}

.meeting-form-header,
.meeting-result-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.meeting-form-header h2,
.meeting-result-header h2 {
  margin: 4px 0 0;
  color: var(--text-strong);
}

.meeting-audio {
  min-width: 128px;
}

.meeting-result {
  margin-top: 18px;
  padding: 20px;
}

.meeting-score {
  width: 104px;
  min-height: 84px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.meeting-score strong,
.meeting-score span {
  display: block;
}

.meeting-score strong {
  color: var(--text-strong);
  font-size: 34px;
  line-height: 1;
}

.meeting-score span {
  color: var(--muted);
  font-size: 12px;
}

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

.meeting-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.meeting-block h3 {
  margin: 0 0 10px;
  color: var(--text-strong);
}

.meeting-block ul {
  margin: 0;
  padding-left: 18px;
}

.meeting-block li {
  margin: 6px 0;
  color: var(--text);
  line-height: 1.45;
}

.mind-map div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mind-map span {
  min-height: 72px;
  padding: 12px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
}

.mind-map b {
  color: var(--text-strong);
}

.meeting-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.module-panel h2,
.tool-intro h2,
.form-section h2 {
  margin: 4px 0 10px;
  color: var(--text-strong);
}

.module-flow {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.module-flow span {
  min-height: 42px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
}

.module-flow b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-strong);
}

.tool-list {
  display: grid;
  gap: 8px;
}

.tool-select {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  transition: 0.16s ease;
}

.tool-select:hover,
.tool-select.active {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-strong);
}

[data-theme="light"] .tool-select {
  background: rgba(8, 11, 19, 0.035);
}

[data-theme="light"] .tool-select:hover,
[data-theme="light"] .tool-select.active {
  background: rgba(8, 11, 19, 0.08);
}

.tool-panel {
  min-height: 460px;
}

.tool-intro {
  margin-bottom: 18px;
}

.tool-outcome-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tool-outcome-strip span {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 800;
}

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

.tool-attachment-zone {
  margin-top: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.tool-attachment-zone strong {
  display: block;
  color: var(--text-strong);
}

.tool-attachment-zone p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.tool-attachment-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-attachment-list span {
  min-height: 34px;
  padding: 6px 8px 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
}

.tool-attachment-list small {
  color: var(--muted);
}

.tool-attachment-list button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--text-strong);
  font-weight: 750;
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: none;
}

[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea {
  background: rgba(255, 255, 255, 0.72);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.09);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.result-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.065);
}

.result-header h3 {
  margin: 3px 0 0;
  color: var(--text-strong);
}

.result-actions {
  display: flex;
  gap: 8px;
}

.result-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.result-block h4 {
  margin: 0 0 6px;
  color: var(--text-strong);
}

.result-block {
  animation: panelEnter 0.36s ease both;
}

.result-block p,
.result-block li {
  color: var(--text);
  line-height: 1.55;
}

.result-block p {
  margin: 0;
}

.result-block ul {
  margin: 0;
  padding-left: 20px;
}

.result-workflow ol {
  margin: 0;
  padding: 0;
  counter-reset: workflow;
  display: grid;
  gap: 9px;
}

.result-workflow li {
  min-height: 46px;
  padding: 11px 12px 11px 46px;
  position: relative;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.result-workflow li::before {
  counter-increment: workflow;
  content: counter(workflow);
  position: absolute;
  left: 12px;
  top: 10px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 900;
}

.result-funnel div,
.result-mindmap div {
  display: grid;
  gap: 10px;
}

.result-funnel span,
.result-mindmap span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  line-height: 1.45;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.result-funnel span:hover,
.result-mindmap span:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
}

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

.result-prompt pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.55;
  font-family: inherit;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.result-debate {
  border-left: 3px solid var(--warning);
  padding-left: 14px;
}

.result-next-steps {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.result-next-steps strong {
  display: block;
  margin: 6px 0;
  color: var(--text-strong);
}

.result-next-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.result-next-steps .ghost-button {
  margin-top: 12px;
}

.onboarding-form,
.settings-form {
  display: grid;
  gap: 18px;
}

.form-section {
  padding: 20px;
}

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

.filters input,
.filters select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.doc-card {
  min-height: 174px;
}

.doc-card footer {
  width: 100%;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.doc-meta {
  color: var(--muted);
  font-size: 13px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.daily-action-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.history-table th,
.history-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.history-table th {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.065);
  font-size: 13px;
}

.history-table tr:last-child td {
  border-bottom: 0;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  max-width: min(360px, calc(100vw - 44px));
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text-strong);
  font-size: 15px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.18s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px);
}

.tour-card {
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.tour-card img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.tour-card h2 {
  margin: 8px 0 10px;
  color: var(--text-strong);
  font-size: 28px;
  line-height: 1.08;
}

.tour-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.tour-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.compact-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
}

.history-detail {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

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

.conversation-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.conversation-log {
  display: grid;
  gap: 16px;
}

.conversation-day {
  padding: 18px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.conversation-day-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.conversation-day-heading strong {
  color: var(--text-strong);
}

.conversation-row {
  max-width: 860px;
  padding: 12px;
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.conversation-row.user {
  justify-self: end;
  background: rgba(255, 255, 255, 0.9);
  color: #080b13;
}

[data-theme="light"] .conversation-row.user {
  background: #080b13;
  color: #ffffff;
}

.conversation-row span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 850;
}

.conversation-row span em {
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-style: normal;
  font-weight: 760;
}

.conversation-row.user span {
  color: inherit;
  opacity: 0.72;
}

.conversation-row p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

.mirella-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.mirella-launcher {
  min-height: 48px;
  padding: 7px 14px 7px 7px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #080b13;
  font-weight: 800;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

[data-theme="light"] .mirella-launcher {
  background: #080b13;
  color: #ffffff;
}

.mirella-launcher img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  object-position: center 28%;
}

.mirella-panel {
  width: min(390px, calc(100vw - 32px));
  min-height: 470px;
  max-height: min(640px, calc(100vh - 112px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(12, 13, 18, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

[data-theme="light"] .mirella-panel {
  background: rgba(255, 255, 255, 0.94);
}

.mirella-panel header {
  min-height: 70px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.mirella-panel header strong {
  display: block;
  margin-top: 3px;
  color: var(--text-strong);
}

.mirella-collab-bar {
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.mirella-collab-bar .ghost-button {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 10px;
  font-size: 11px;
}

.mirella-thread {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.mirella-message {
  display: flex;
  flex-direction: column;
}

.mirella-message .mirella-text {
  max-width: 88%;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  line-height: 1.45;
  font-size: 14px;
}

.mirella-message.user {
  justify-content: flex-end;
  align-items: flex-end;
}

.mirella-message.assistant {
  align-items: flex-start;
}

.mirella-agent-label {
  width: fit-content;
  margin: 0 0 5px 4px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 800;
}

.mini-agent-clear {
  width: fit-content;
  min-height: 32px;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 11px;
  font-size: 12px;
}

.mirella-message.user .mirella-text {
  color: #080b13;
  background: #ffffff;
}

[data-theme="light"] .mirella-message.user .mirella-text {
  color: #ffffff;
  background: #080b13;
}

.mirella-form {
  padding: 12px;
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.audio-button {
  width: 54px;
  min-width: 54px;
  min-height: 54px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-strong);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mirella-form .audio-button {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 14px;
}

.audio-button:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.audio-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audio-button input {
  display: none;
}

.hidden-file-input {
  display: none !important;
}

.file-button {
  color: var(--accent-2);
}

.mirella-form .audio-button svg {
  width: 18px;
  height: 18px;
}

.audio-button.recording {
  color: #ffffff;
  border-color: rgba(255, 92, 92, 0.52);
  background: rgba(255, 92, 92, 0.14);
  box-shadow: 0 0 0 4px rgba(255, 92, 92, 0.08);
}

.recording-dot {
  width: 7px;
  height: 7px;
  position: absolute;
  top: 9px;
  right: 9px;
  border-radius: 999px;
  background: #ff5c5c;
  opacity: 0;
}

.audio-button.recording .recording-dot {
  opacity: 1;
  animation: micPulse 1s ease-in-out infinite;
}

@keyframes micPulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

.agenda-shell,
.tasks-shell {
  display: grid;
  gap: 18px;
}

.agenda-hero,
.tasks-hero {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 18px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.agenda-hero h2,
.tasks-hero h2 {
  max-width: 740px;
  margin: 8px 0;
  color: var(--text-strong);
  font-size: 32px;
  line-height: 1.1;
}

.agenda-hero p,
.tasks-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.agenda-quick-form,
.task-quick-form {
  display: grid;
  gap: 10px;
}

.agenda-quick-form input,
.agenda-quick-form textarea,
.task-quick-form input,
.task-quick-form select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: none;
}

.agenda-quick-form textarea {
  min-height: 82px;
  padding: 12px;
  resize: vertical;
}

.agenda-list {
  display: grid;
  gap: 10px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
}

.calendar-month,
.day-schedule {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.calendar-month {
  padding: 18px;
}

.calendar-header {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.calendar-header h3,
.day-schedule h3 {
  margin: 3px 0 0;
  color: var(--text-strong);
  text-transform: capitalize;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays span {
  padding: 8px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  position: relative;
  min-height: 98px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  transition: 0.16s ease;
}

.calendar-day:hover,
.calendar-day.selected {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.09);
}

.calendar-day.muted {
  opacity: 0.35;
}

.calendar-day.today span {
  color: #080b13;
  background: #ffffff;
}

[data-theme="light"] .calendar-day.today span {
  color: #ffffff;
  background: #080b13;
}

.calendar-day span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text-strong);
  font-weight: 800;
}

.calendar-day small {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 800;
}

.calendar-day.has-items::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.day-schedule {
  min-height: 560px;
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}

.schedule-list {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
}

.schedule-item {
  min-height: 82px;
  padding: 12px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.schedule-item time {
  color: var(--text-strong);
  font-weight: 900;
}

.schedule-item strong,
.schedule-empty strong {
  display: block;
  color: var(--text-strong);
}

.schedule-item p,
.schedule-empty p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.schedule-empty {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.agenda-card {
  min-height: 86px;
  padding: 14px;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.agenda-date {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.agenda-date strong,
.agenda-date span,
.agenda-card strong,
.agenda-card p {
  display: block;
}

.agenda-date strong,
.agenda-card strong {
  color: var(--text-strong);
}

.agenda-date span,
.agenda-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.task-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 14px;
  overflow-x: auto;
}

.task-column {
  min-height: 520px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.task-column header {
  padding: 8px 6px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-strong);
  font-weight: 800;
}

.task-card-list {
  display: grid;
  gap: 10px;
}

.task-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
}

.task-card strong {
  display: block;
  color: var(--text-strong);
}

.task-card p,
.task-empty {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.task-card footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.task-card select {
  min-height: 36px;
  max-width: 150px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.mirella-form input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: none;
}

.today-shell,
.goals-shell,
.pipeline-shell {
  display: grid;
  gap: 18px;
}

.today-hero,
.goals-hero,
.pipeline-hero {
  min-height: 240px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 68% 48%, rgba(45, 107, 255, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.today-hero h2,
.goals-hero h2,
.pipeline-hero h2 {
  max-width: 760px;
  margin: 8px 0 10px;
  color: var(--text-strong);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

.today-hero p,
.goals-hero p,
.pipeline-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.today-date-control {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.today-date-control strong {
  min-height: 44px;
  padding: 0 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
}

.today-date-control .primary-action {
  grid-column: 1 / -1;
}

.today-date-control button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.today-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.today-score {
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.today-score span,
.today-score small {
  display: block;
  color: var(--muted);
}

.today-score strong {
  display: block;
  margin: 8px 0;
  color: var(--text-strong);
  font-size: 34px;
  line-height: 1;
}

.compact-daily {
  min-height: auto;
}

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

.today-panel,
.goal-card,
.pipeline-column {
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.today-panel {
  min-height: 230px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.today-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.today-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.goal-form,
.pipeline-form {
  padding: 18px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .goal-form,
[data-theme="light"] .pipeline-form {
  background: rgba(255, 255, 255, 0.48);
}

.goal-form input,
.pipeline-form input,
.pipeline-form select,
.goal-inputs input,
.pipeline-card select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
}

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

.goal-card {
  min-height: 260px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.goal-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 18px;
}

.goal-card strong {
  color: var(--text-strong);
  font-size: 42px;
  line-height: 1;
}

.goal-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.goal-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--success));
}

.goal-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.goal-inputs label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.pipeline-board {
  min-height: 520px;
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pipeline-column {
  min-width: 220px;
  padding: 14px;
}

.pipeline-column header {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-strong);
  font-weight: 800;
}

.pipeline-column header strong {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
}

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

.pipeline-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .pipeline-card {
  background: rgba(255, 255, 255, 0.5);
}

.pipeline-card strong {
  display: block;
  color: var(--text-strong);
  line-height: 1.25;
}

.pipeline-card p {
  margin: 7px 0 0;
  color: var(--muted);
}

.pipeline-card footer {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}

@keyframes panelEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.52;
  }
  50% {
    opacity: 1;
  }
}

@keyframes dashboardSweep {
  0%,
  72% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

@keyframes typingPulse {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1180px) {
  .mirella-page,
  .calendar-layout,
  .dashboard-split,
  .os-hero,
  .os-split,
  .agenda-hero,
  .tasks-hero,
  .today-hero,
  .goals-hero,
  .pipeline-hero,
  .start-screen,
  .agent-dashboard,
  .studio-hero {
    grid-template-columns: 1fr;
  }

  .agent-dashboard .studio-core,
  .studio-core {
    order: -1;
    min-height: 330px;
  }

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

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

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

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

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

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

  .command-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .workspace {
    height: auto;
    min-height: 100vh;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(var(--sidebar-width), 88vw);
    z-index: 10;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .menu-toggle {
    display: inline-grid;
  }

  .hero-band,
  .meeting-studio,
  .module-layout {
    grid-template-columns: 1fr;
  }

  .meeting-command {
    position: static;
  }
}

@media (max-width: 780px) {
  .topbar {
    grid-template-columns: auto 1fr;
    padding: 14px 16px;
  }

  .topbar-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .content-view {
    width: min(100% - 28px, 1240px);
    padding-top: 18px;
  }

  .studio-hero,
  .agent-dashboard,
  .today-hero,
  .goals-hero,
  .pipeline-hero,
  .start-copy,
  .start-form,
  .workspace-section,
  .command-card {
    border-radius: 18px;
  }

  .agent-dashboard,
  .studio-hero,
  .today-hero,
  .goals-hero,
  .pipeline-hero {
    padding: 20px;
  }

  .agent-briefing h2,
  .start-copy h2,
  .studio-left h2,
  .today-hero h2,
  .goals-hero h2,
  .pipeline-hero h2 {
    font-size: 32px;
  }

  .agent-status {
    grid-template-columns: 1fr;
  }

  .daily-action-card {
    grid-template-columns: 1fr;
  }

  .company-map-grid {
    grid-template-columns: 1fr;
  }

  .os-layer-grid,
  .os-area-grid,
  .os-command-metrics {
    grid-template-columns: 1fr;
  }

  .os-hero-copy h2 {
    font-size: 34px;
  }

  .os-workflow-row {
    grid-template-columns: 1fr;
  }

  .os-card-footer {
    grid-template-columns: 1fr;
  }

  .automation-hero,
  .automation-request-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .automation-hero h2 {
    font-size: 34px;
  }

  .mini-row {
    grid-template-columns: 1fr;
  }

  .chat-composer {
    grid-template-columns: 1fr;
  }

  .mirella-widget {
    right: 14px;
    bottom: 14px;
  }

  .mirella-panel {
    min-height: 420px;
  }

  .mirella-form {
    grid-template-columns: 1fr;
  }

  .mirella-page-chat {
    min-height: 600px;
  }

  .mirella-page-header {
    grid-template-columns: 58px 1fr;
  }

  .mirella-page-header .ghost-button {
    grid-column: 1 / -1;
  }

  .mirella-page-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .mirella-page-form {
    grid-template-columns: 1fr;
  }

  .admin-hero,
  .pricing-hero,
  .billing-usage-panel,
  .dashboard-billing-card,
  .legal-hero,
  .settings-plan-card,
  .settings-inline-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .agenda-card {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: 76px;
    padding: 8px;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 5px;
  }

  .mirella-page-message .mirella-text {
    max-width: 92%;
  }

  .metric-ribbon {
    grid-template-columns: 1fr;
  }

  .conversation-metrics {
    grid-template-columns: 1fr;
  }

  .agent-dashboard .studio-core,
  .studio-core {
    min-height: 280px;
    transform: scale(0.86);
  }

  .quick-grid,
  .module-grid,
  .library-grid,
  .doc-grid,
  .intelligence-grid,
  .today-grid,
  .today-score-grid,
  .goals-grid,
  .result-mindmap div,
  .memory-qa-grid,
  .meeting-result-grid,
  .metric-grid,
  .suggestion-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .meeting-form-header,
  .meeting-result-header {
    flex-direction: column;
  }

  .mind-map div {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .result-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-table {
    display: block;
    overflow-x: auto;
  }
}
