/* [project]/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --color-ink: #1a1a1f;
  --color-muted: #6b7280;
  --color-soft: #f4f1ea;
  --color-paper: #fff;
  --color-panel: #ffffffeb;
  --color-panel-strong: #fff;
  --color-line: #1a1a1f1a;
  --color-navy: #12243b;
  --color-gold: #d4a017;
  --color-gold-bright: #eab308;
  --color-sage: #16a34a;
  --color-coral: #d96c4a;
  --color-blue: #2563eb;
  --shadow-soft: 0 8px 32px #12243b14;
  --shadow-card: 0 4px 20px #12243b0f;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sidebar-width: 220px;
  --directory-width: 300px;
  --sidebar-bg: #121217;
  --sidebar-text: #e4e4e7;
  --sidebar-muted: #71717a;
  --sidebar-hover: #ffffff0f;
  --sidebar-active: var(--color-gold-bright);
  --directory-bg: #f5f0e8;
  --workspace-bg: #fff;
  --portal-elevated: #fff;
  --portal-subtle: #f8fafc;
  --portal-chip: #12243b0f;
  --portal-tool-bg: #f8fafc;
  --portal-tool-header: #eef2f7;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lightningcss-light: ;
    --lightningcss-dark: initial;
    color-scheme: dark;
    --color-ink: #f4f4f5;
    --color-muted: #a1a1aa;
    --color-soft: #18181b;
    --color-paper: #0f0f12;
    --color-panel: #18181beb;
    --color-panel-strong: #18181b;
    --color-line: #f4f4f51a;
    --color-navy: #93c5fd;
    --color-gold: #f1c66a;
    --color-gold-bright: #facc15;
    --color-sage: #4ade80;
    --color-coral: #f09a78;
    --color-blue: #60a5fa;
    --shadow-soft: 0 8px 32px #0000004d;
    --shadow-card: 0 4px 20px #00000040;
    --sidebar-bg: #09090b;
    --sidebar-text: #f4f4f5;
    --sidebar-muted: #a1a1aa;
    --sidebar-hover: #ffffff14;
    --directory-bg: #121217;
    --workspace-bg: #0f0f12;
    --portal-elevated: #18181b;
    --portal-subtle: #111827;
    --portal-chip: #ffffff12;
    --portal-tool-bg: #111827;
    --portal-tool-header: #1f2937;
  }
}

:root[data-theme="dark"] {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --color-ink: #f4f4f5;
  --color-muted: #a1a1aa;
  --color-soft: #18181b;
  --color-paper: #0f0f12;
  --color-panel: #18181beb;
  --color-panel-strong: #18181b;
  --color-line: #f4f4f51a;
  --color-navy: #93c5fd;
  --color-gold: #f1c66a;
  --color-gold-bright: #facc15;
  --color-sage: #4ade80;
  --color-coral: #f09a78;
  --color-blue: #60a5fa;
  --shadow-soft: 0 8px 32px #0000004d;
  --shadow-card: 0 4px 20px #00000040;
  --sidebar-bg: #09090b;
  --sidebar-text: #f4f4f5;
  --sidebar-muted: #a1a1aa;
  --sidebar-hover: #ffffff14;
  --directory-bg: #121217;
  --workspace-bg: #0f0f12;
  --portal-elevated: #18181b;
  --portal-subtle: #111827;
  --portal-chip: #ffffff12;
  --portal-tool-bg: #111827;
  --portal-tool-header: #1f2937;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-soft);
  min-height: 100vh;
  color: var(--color-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.site-shell {
  width: min(1140px, 100% - 48px);
  margin: 0 auto;
  padding: 24px 0 80px;
}

.site-header {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 8px 0 48px;
  display: flex;
}

.brand-lockup {
  align-items: center;
  gap: 12px;
  display: inline-flex;
}

.brand-lockup strong, .brand-lockup small {
  display: block;
}

.brand-lockup strong {
  letter-spacing: -.02em;
  font-size: .95rem;
  font-weight: 700;
}

.brand-lockup small {
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 1px;
  font-size: .72rem;
}

.brand-mark {
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-navy), #1e3a5f);
  width: 44px;
  height: 44px;
  color: var(--color-gold-bright);
  letter-spacing: .06em;
  place-items: center;
  font-size: .75rem;
  font-weight: 800;
  display: grid;
}

.nav-links {
  color: var(--color-muted);
  align-items: center;
  gap: 28px;
  font-size: .9rem;
  font-weight: 600;
  display: flex;
}

.nav-links a {
  transition: color .15s;
}

.nav-links a:hover {
  color: var(--color-ink);
}

.nav-login {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  box-shadow: var(--shadow-card);
  padding: 8px 18px;
  color: var(--color-ink) !important;
}

.hero-section {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: stretch;
  gap: 32px;
  display: grid;
}

.hero-copy, .hero-visual, .intro-panel, .process-card, .cta-panel, .login-card {
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
}

.eyebrow, .section-label, .card-kicker {
  color: var(--color-gold);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-size: .72rem;
  font-weight: 700;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  letter-spacing: -.04em;
  max-width: 640px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
}

h2 {
  letter-spacing: -.03em;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
}

h3 {
  letter-spacing: -.02em;
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-lede, .intro-panel p, .process-card p, .cta-panel p, .login-card p {
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-lede {
  max-width: 540px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  display: flex;
}

.primary-button, .secondary-button, .login-form button, .gold-btn {
  border-radius: var(--radius-pill);
  cursor: pointer;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: .9rem;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s;
  display: inline-flex;
}

.primary-button, .gold-btn {
  background: var(--color-gold-bright);
  color: #1a1a1f;
  border: none;
  box-shadow: 0 2px 8px #eab3084d;
}

.secondary-button, .ghost-btn {
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  color: var(--color-ink);
}

.primary-button:hover, .secondary-button:hover, .gold-btn:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.trust-strip {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  display: flex;
}

.trust-strip span {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-sage) 8%, var(--color-paper));
  color: var(--color-muted);
  padding: 6px 12px;
  font-size: .82rem;
  font-weight: 600;
}

.hero-visual {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #f8f6f0 0%, #ede8dc 100%);
  min-height: 440px;
  position: relative;
  overflow: hidden;
}

.orb {
  filter: blur(40px);
  opacity: .5;
  border-radius: 999px;
  position: absolute;
}

.orb-one {
  background: var(--color-gold-bright);
  width: 260px;
  height: 260px;
  top: -40px;
  right: -60px;
}

.orb-two {
  background: var(--color-blue);
  width: 220px;
  height: 220px;
  bottom: -50px;
  left: -50px;
}

.portfolio-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  box-shadow: var(--shadow-card);
  position: absolute;
}

.primary-card {
  padding: 28px;
  inset: auto 28px 28px;
}

.primary-card h2 {
  max-width: 300px;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.allocation-bars {
  gap: 10px;
  display: grid;
}

.allocation-bars span {
  width: var(--bar-size);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-sage), var(--color-gold-bright));
  height: 10px;
}

.floating-card {
  width: min(260px, 100% - 56px);
  padding: 14px 16px;
  top: 28px;
  left: 28px;
}

.floating-card p {
  color: var(--color-muted);
  margin: 6px 0 0;
  font-size: .85rem;
  font-weight: 600;
}

.signal-dot {
  background: var(--color-sage);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  display: block;
}

.intro-panel, .cta-panel {
  border-radius: var(--radius-lg);
  margin-top: 24px;
  padding: clamp(28px, 4vw, 48px);
}

.intro-panel {
  max-width: 720px;
}

.intro-panel h2 {
  margin-bottom: 16px;
}

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

.process-card {
  border-radius: var(--radius-md);
  padding: 24px;
}

.process-card span {
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-gold-bright) 15%, transparent);
  width: 36px;
  height: 36px;
  color: var(--color-gold);
  place-items: center;
  margin-bottom: 20px;
  font-size: .85rem;
  font-weight: 800;
  display: inline-grid;
}

.cta-panel {
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-navy) 6%, var(--color-paper)), var(--color-paper));
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  display: flex;
}

.cta-panel div {
  max-width: 600px;
}

.cta-panel h2 {
  margin-bottom: 12px;
}

.app-shell {
  background: var(--color-soft);
  place-items: center;
  min-height: 100vh;
  padding: 32px;
  display: grid;
}

.login-card {
  border-radius: var(--radius-lg);
  width: min(480px, 100%);
  padding: clamp(28px, 5vw, 48px);
}

.login-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.login-form {
  gap: 14px;
  margin-top: 24px;
  display: grid;
}

.login-form label {
  color: var(--color-muted);
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  display: grid;
}

.login-form input {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  width: 100%;
  color: var(--color-ink);
  padding: 11px 14px;
}

.login-form button {
  background: var(--color-gold-bright);
  color: #1a1a1f;
  cursor: pointer;
  border: none;
  margin-top: 4px;
}

.fine-print {
  margin-top: 18px;
  font-size: .85rem !important;
}

.auth-error {
  border: 1px solid color-mix(in srgb, var(--color-coral) 40%, var(--color-line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-coral) 10%, transparent);
  padding: 10px 12px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-coral) !important;
}

.auth-success {
  border: 1px solid color-mix(in srgb, var(--color-sage) 40%, var(--color-line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-sage) 10%, transparent);
  padding: 10px 12px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-sage) !important;
}

.password-card {
  width: min(560px, 100%);
}

.return-link {
  color: var(--color-muted);
  margin-top: 18px;
  font-weight: 700;
  display: inline-flex;
}

.return-link:hover {
  color: var(--color-ink);
}

.portal-shell {
  grid-template-columns: var(--sidebar-width) var(--directory-width) minmax(0, 1fr);
  background: var(--workspace-bg);
  min-height: 100vh;
  color: var(--color-ink);
  display: grid;
}

.portal-sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  border-right: 1px solid #ffffff0f;
  flex-direction: column;
  display: flex;
  overflow-y: auto;
}

.portal-sidebar-top {
  padding: 16px 14px 12px;
}

.portal-brand {
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  display: flex;
}

.portal-brand-mark {
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-gold-bright), var(--color-gold));
  color: #1a1a1f;
  letter-spacing: .04em;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: .65rem;
  font-weight: 900;
  display: grid;
}

.portal-brand strong {
  letter-spacing: -.01em;
  font-size: .88rem;
  font-weight: 700;
}

.portal-sidebar-search input {
  border-radius: var(--radius-sm);
  width: 100%;
  color: var(--sidebar-text);
  background: #ffffff0d;
  border: 1px solid #ffffff1a;
  padding: 7px 10px;
  font-size: .82rem;
}

.portal-sidebar-search input::placeholder {
  color: var(--sidebar-muted);
}

.portal-module-tabs {
  border-radius: var(--radius-sm);
  background: #ffffff0a;
  gap: 4px;
  margin-top: 12px;
  padding: 3px;
  display: flex;
}

.portal-module-tabs button {
  color: var(--sidebar-muted);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  flex: 1;
  padding: 5px 6px;
  font-size: .72rem;
  font-weight: 600;
}

.portal-module-tabs button.active {
  color: var(--sidebar-text);
  background: #ffffff1a;
}

.portal-main-nav {
  flex-direction: column;
  flex: 1;
  padding: 8px 10px;
  display: flex;
  overflow-y: auto;
}

.portal-main-nav a {
  border-radius: var(--radius-sm);
  color: var(--sidebar-muted);
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: .88rem;
  font-weight: 500;
  transition: background .12s, color .12s;
  display: flex;
}

.portal-main-nav a:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
}

.portal-main-nav a.active {
  color: var(--sidebar-active);
  font-weight: 600;
}

.portal-main-nav a.active svg {
  opacity: 1;
}

.portal-main-nav a svg {
  opacity: .4;
  flex-shrink: 0;
}

.portal-sidebar-footer {
  border-top: 1px solid #ffffff0f;
  padding: 12px 14px 16px;
}

.portal-user-card {
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  display: flex;
}

.portal-user-avatar {
  background: #ffffff1f;
  border-radius: 50%;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: .82rem;
  font-weight: 700;
  display: grid;
}

.portal-user-card strong {
  font-size: .82rem;
  font-weight: 600;
  display: block;
}

.portal-user-card small {
  color: var(--sidebar-muted);
  font-size: .72rem;
  display: block;
}

.portal-logout-btn {
  border-radius: var(--radius-sm);
  width: 100%;
  color: var(--sidebar-muted);
  cursor: pointer;
  background: none;
  border: 1px solid #ffffff1f;
  padding: 7px 10px;
  font-size: .82rem;
  font-weight: 600;
}

.portal-logout-btn:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
}

.portal-account-link {
  border-radius: var(--radius-sm);
  width: 100%;
  color: var(--sidebar-muted);
  text-align: center;
  border: 1px solid #ffffff1f;
  margin: 0 0 8px;
  padding: 7px 10px;
  font-size: .82rem;
  font-weight: 600;
  display: block;
}

.portal-account-link:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
}

.agent-directory-panel {
  background: var(--directory-bg);
  border-right: 1px solid var(--color-line);
  flex-direction: column;
  display: flex;
  overflow-y: auto;
}

.directory-header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 10px;
  display: flex;
}

.directory-header h1 {
  letter-spacing: -.02em;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.directory-header-actions {
  gap: 6px;
  display: flex;
}

.ghost-btn {
  border-radius: var(--radius-sm);
  cursor: pointer;
  justify-content: center;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-size: .78rem;
  text-decoration: none;
  display: inline-flex;
}

.gold-btn {
  border-radius: var(--radius-sm);
  justify-content: center;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-size: .78rem;
  text-decoration: none;
  display: inline-flex;
}

.directory-tabs {
  border-bottom: 1px solid var(--color-line);
  gap: 0;
  padding: 0 16px;
  display: flex;
}

.directory-tabs button {
  color: var(--color-muted);
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  margin-bottom: -1px;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 600;
}

.directory-tabs button.active {
  color: var(--color-ink);
  border-bottom-color: var(--color-ink);
}

.directory-search {
  padding: 12px 16px 8px;
  display: block;
}

.directory-search input {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  width: 100%;
  color: var(--color-ink);
  padding: 8px 10px;
  font-size: .82rem;
}

.directory-filters {
  flex-direction: column;
  gap: 6px;
  padding: 4px 16px 12px;
  display: flex;
}

.toggle-row {
  color: var(--color-muted);
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  display: flex;
}

.toggle-row.compact {
  justify-content: flex-start;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-switch {
  border-radius: var(--radius-pill);
  background: #d4d4d8;
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  transition: background .15s;
  position: relative;
}

.toggle-switch:after {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  transition: transform .15s;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px #00000026;
}

.toggle-input:checked + .toggle-switch {
  background: var(--color-sage);
}

.toggle-input:checked + .toggle-switch:after {
  transform: translateX(16px);
}

.agent-groups {
  flex: 1;
  padding: 0 10px 16px;
  overflow-y: auto;
}

.agent-group h2 {
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 12px 6px 6px;
  font-size: .68rem;
  font-weight: 700;
}

.agent-group-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-item {
  border-radius: var(--radius-sm);
  width: 100%;
  color: var(--color-ink);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  font-size: .84rem;
  text-decoration: none;
  transition: background .12s;
  display: flex;
}

.agent-item:hover {
  background: #0000000a;
}

.portal-shell[data-theme="dark"] .agent-item:hover, html[data-theme="dark"] .agent-item:hover {
  background: #ffffff0f;
}

.agent-item.selected {
  background: color-mix(in srgb, var(--color-gold-bright) 18%, var(--portal-elevated));
  font-weight: 600;
}

.agent-status-dot {
  background: var(--color-sage);
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.agent-item-name {
  flex: 1;
  min-width: 0;
}

.agent-schedule {
  color: var(--color-muted);
  background: var(--portal-chip);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: .68rem;
}

.agent-conversation-panel {
  background: var(--workspace-bg);
  flex-direction: column;
  min-width: 0;
  display: flex;
  overflow: hidden;
}

.conversation-topbar {
  border-bottom: 1px solid var(--color-line);
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  display: flex;
}

.global-search {
  flex: 1;
}

.global-search input {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--portal-elevated);
  width: 100%;
  color: var(--color-ink);
  padding: 8px 16px;
  font-size: .82rem;
}

.topbar-utilities {
  gap: 6px;
  display: flex;
}

.icon-btn {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--portal-elevated);
  width: 34px;
  height: 34px;
  color: var(--color-ink);
  cursor: pointer;
  place-items: center;
  font-size: .9rem;
  display: grid;
  position: relative;
}

.icon-btn.has-badge .badge {
  color: #fff;
  background: #ef4444;
  border-radius: 50%;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: .6rem;
  font-weight: 700;
  display: grid;
  position: absolute;
  top: -4px;
  right: -4px;
}

.conversation-header {
  border-bottom: 1px solid var(--color-line);
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px 10px;
  display: flex;
}

.conversation-agent-info h2 {
  letter-spacing: -.02em;
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
}

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

.meta-tag {
  color: var(--color-muted);
  background: var(--portal-chip);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .72rem;
}

.meta-status {
  color: var(--color-sage);
  font-size: .78rem;
  font-weight: 600;
}

.meta-time {
  color: var(--color-muted);
  font-size: .78rem;
}

.conversation-toolbar {
  flex-wrap: wrap;
  gap: 4px;
  display: flex;
}

.toolbar-btn {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--portal-elevated);
  color: var(--color-muted);
  cursor: pointer;
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 600;
}

.toolbar-btn.active {
  background: var(--color-gold-bright);
  border-color: var(--color-gold-bright);
  color: #1a1a1f;
}

.conversation-feed {
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 16px 20px;
  display: flex;
  overflow-y: auto;
}

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

.control-card, .agent-files-panel, .memory-panel, .upload-panel, .message-thread {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--portal-elevated);
  box-shadow: var(--shadow-soft);
}

.control-card {
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  display: flex;
}

.control-card h3, .section-heading h3 {
  letter-spacing: -.01em;
  margin: 0 0 4px;
  font-size: .95rem;
}

.control-card p, .section-heading p {
  color: var(--color-muted);
  margin: 0;
  font-size: .78rem;
  line-height: 1.5;
}

.form-row {
  grid-template-columns: minmax(120px, .55fr) minmax(180px, 1fr);
  gap: 10px;
  display: grid;
}

.control-card label, .memory-editor label {
  color: var(--color-muted);
  flex-direction: column;
  gap: 6px;
  font-size: .76rem;
  font-weight: 700;
  display: flex;
}

.control-card input, .control-card select, .control-card textarea, .memory-editor textarea, .upload-panel input[type="file"] {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--workspace-bg);
  width: 100%;
  color: var(--color-ink);
  font: inherit;
  padding: 8px 10px;
  font-size: .82rem;
}

.control-card textarea, .memory-editor textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.55;
}

.memory-panel, .agent-files-panel, .upload-panel, .message-thread {
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  display: flex;
}

.file-count {
  border-radius: var(--radius-pill);
  background: var(--portal-chip);
  color: var(--color-muted);
  flex-shrink: 0;
  padding: 4px 9px;
  font-size: .72rem;
  font-weight: 800;
}

.agent-file-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.agent-file-card, .message-file-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--workspace-bg);
  color: var(--color-ink);
  text-decoration: none;
}

.agent-file-card {
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  display: flex;
}

.agent-file-card > span:last-child {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.agent-file-card strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
  overflow: hidden;
}

.agent-file-card small {
  color: var(--color-muted);
  font-size: .72rem;
}

.agent-file-icon {
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-gold-bright) 22%, transparent);
  width: 38px;
  height: 38px;
  color: var(--color-ink);
  text-transform: uppercase;
  flex-shrink: 0;
  place-items: center;
  font-size: .68rem;
  font-weight: 900;
  display: grid;
}

.section-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.memory-editor {
  border-top: 1px solid var(--color-line);
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  display: flex;
}

.memory-editor textarea {
  min-height: 150px;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, monospace;
}

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

.attachment-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--workspace-bg);
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  display: flex;
}

.attachment-item strong {
  color: var(--color-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
  overflow: hidden;
}

.attachment-item span, .empty-state {
  color: var(--color-muted);
  font-size: .76rem;
}

.empty-state {
  margin: 0;
}

.feed-message {
  max-width: 820px;
}

.feed-message strong {
  margin-bottom: 4px;
  font-size: .82rem;
  display: block;
}

.feed-message strong a {
  color: var(--color-sage);
  text-decoration: none;
}

.feed-message strong a:hover {
  text-decoration: underline;
}

.feed-message-text {
  color: var(--color-ink);
  margin: 0;
  font-size: .9rem;
  line-height: 1.65;
}

.message-file-list {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  display: flex;
}

.message-file-card {
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  font-size: .78rem;
  font-weight: 700;
  display: inline-flex;
}

.message-file-card:before {
  content: "File";
  background: color-mix(in srgb, var(--color-gold-bright) 24%, transparent);
  text-transform: uppercase;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: .65rem;
}

.message-file-card span {
  color: var(--color-muted);
  font-weight: 600;
}

.feed-tool-block {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--portal-tool-bg);
  max-width: 820px;
  overflow: hidden;
}

.feed-tool-block header {
  background: var(--portal-tool-header);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-muted);
  padding: 6px 12px;
  font-size: .72rem;
  font-weight: 700;
}

.feed-tool-block code {
  color: var(--color-ink);
  white-space: pre-wrap;
  word-break: break-all;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, monospace;
  font-size: .82rem;
  display: block;
}

.feed-status {
  color: var(--color-muted);
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: .78rem;
  display: flex;
}

.feed-status-icon {
  color: var(--color-gold-bright);
  font-size: .65rem;
}

.conversation-composer {
  border-top: 1px solid var(--color-line);
  background: var(--workspace-bg);
  align-items: center;
  gap: 10px;
  padding: 12px 16px 16px;
  display: flex;
}

.composer-input-wrap {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--portal-elevated);
  flex: 1;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  display: flex;
}

.composer-icon {
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: .6;
  background: none;
  border: none;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: .9rem;
  display: grid;
}

.composer-input-wrap input {
  min-width: 0;
  color: var(--color-ink);
  background: none;
  border: none;
  outline: none;
  flex: 1;
  padding: 8px 4px;
  font-size: .88rem;
}

.composer-input-wrap:focus-within {
  border-color: color-mix(in srgb, var(--color-gold-bright) 62%, var(--color-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-gold-bright) 18%, transparent);
}

.composer-input-wrap input::placeholder {
  color: var(--color-muted);
}

.composer-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  display: flex;
}

.model-select {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--portal-elevated);
  color: var(--color-ink);
  max-width: 140px;
  padding: 6px 8px;
  font-size: .78rem;
}

.live-indicator {
  letter-spacing: .08em;
  color: var(--color-sage);
  font-size: .68rem;
  font-weight: 800;
}

.send-btn {
  background: var(--color-gold-bright);
  color: #1a1a1f;
  cursor: pointer;
  opacity: 1;
  border: none;
  border-radius: 50%;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 1rem;
  display: grid;
}

@media (max-width: 1100px) {
  .portal-shell {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .agent-directory-panel {
    border-right: none;
    border-bottom: 1px solid var(--color-line);
    grid-column: 1 / -1;
    max-height: 280px;
  }

  .agent-conversation-panel {
    grid-area: 2 / 2;
  }

  .portal-sidebar {
    grid-row: 1 / 3;
  }
}

@media (max-width: 900px) {
  .site-header, .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

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

  .hero-visual {
    min-height: 360px;
  }

  .agent-control-grid, .agent-file-list, .attachment-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .portal-shell {
    grid-template-rows: auto;
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    grid-row: auto;
    max-height: none;
  }

  .portal-main-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    display: grid;
  }

  .agent-directory-panel {
    grid-column: auto;
    max-height: 240px;
  }

  .agent-conversation-panel {
    grid-area: auto;
    min-height: 60vh;
  }

  .conversation-header {
    flex-direction: column;
  }

  .conversation-feed {
    padding: 12px;
  }

  .section-heading {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .conversation-composer {
    flex-direction: column;
    align-items: stretch;
  }

  .composer-actions {
    justify-content: space-between;
  }

  .site-shell {
    width: min(100% - 28px, 1140px);
  }
}

@media (max-width: 560px) {
  .brand-lockup span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-copy, .intro-panel, .cta-panel {
    padding: 24px;
  }

  .primary-card {
    padding: 20px;
    inset: auto 18px 18px;
  }

  .floating-card {
    width: calc(100% - 36px);
    top: 18px;
    left: 18px;
  }

  .portal-main-nav {
    grid-template-columns: 1fr;
  }

  .agent-directory-panel {
    max-height: 320px;
  }

  .message-file-list {
    flex-direction: column;
  }

  .message-file-card {
    justify-content: space-between;
  }
}

/*# sourceMappingURL=app_globals_0yg4wg8.css.map*/