.nova-app-frame {
  min-height: 820px;
  overflow: hidden;
  border: 1px solid #d5cfe6;
  border-radius: 28px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}
.nova-topbar {
  height: 64px;
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(260px, 1.1fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
}
.nova-wordmark { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nova-logo, .assistant-mark {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: var(--navy);
  color: white;
}
.nova-logo .icon, .assistant-mark .icon { width: 18px; height: 18px; }
.nova-wordmark div { display: grid; min-width: 0; }
.nova-wordmark strong { font-size: 13px; }
.nova-wordmark small { color: var(--muted); font-size: 9px; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  white-space: nowrap;
  border-radius: 999px;
  background: #f0eef5;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}
.badge-purple { background: var(--brand-soft); color: var(--brand-dark); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.nova-command {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #f5f3fa;
  padding: 0 12px;
  color: var(--muted);
  text-align: left;
}
.nova-command span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.nova-command kbd { border: 1px solid var(--border); border-radius: 6px; background: white; padding: 3px 5px; font-size: 9px; }
.nova-top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.classic-link { border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; }
.icon-button {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: white;
}
.icon-button i { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: #f05d45; }
.top-avatar, .rail-avatar { display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: 9px; font-weight: 800; }
.top-avatar { width: 34px; height: 34px; }

.nova-shell-grid { min-height: 756px; display: grid; grid-template-columns: 78px minmax(0, 1fr) 294px; }
.nova-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-soft);
  background: #fbfafd;
  padding: 14px 8px 12px;
}
.rail-items { display: grid; gap: 5px; }
.rail-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  padding: 9px 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}
.rail-item:hover, .rail-item.active { background: var(--brand-soft); color: var(--navy); }
.rail-icon { width: 26px; height: 24px; display: grid; place-items: center; }
.rail-icon .icon { width: 19px; height: 19px; }
.rail-item b { position: absolute; top: 5px; right: 8px; min-width: 16px; border-radius: 999px; background: var(--navy); color: white; padding: 2px 4px; font-size: 7px; }
.rail-foot { display: grid; justify-items: center; gap: 5px; color: var(--muted); font-size: 8px; }
.rail-avatar { width: 30px; height: 30px; }

.nova-workspace { min-width: 0; min-height: 756px; overflow: hidden; background: var(--page); }
.nova-assistant {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-soft);
  background: var(--surface);
}
.assistant-header { height: 62px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border-bottom: 1px solid var(--border-soft); }
.assistant-mark { width: 30px; height: 30px; border-radius: 10px; background: var(--brand); }
.assistant-header > div:nth-child(2) { display: grid; flex: 1; }
.assistant-header strong { font-size: 12px; }
.assistant-header span:not(.badge) { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.assistant-thread { flex: 1; overflow-y: auto; padding: 18px 15px; }
.assistant-eyebrow, .workspace-eyebrow {
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.assistant-thread h3 { margin: 8px 0; font-size: 17px; line-height: 1.25; letter-spacing: -0.02em; }
.assistant-thread > p { margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.assistant-compose { height: 58px; display: flex; align-items: center; gap: 8px; margin: 10px; border: 1px solid var(--border); border-radius: 17px; background: #faf9fd; padding: 0 8px 0 12px; }
.assistant-compose span { flex: 1; color: var(--muted); font-size: 9px; }
.assistant-compose button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--navy); color: white; }
.assistant-compose .icon { width: 14px; height: 14px; }
.assistant-user-message { margin: 14px 0 8px 28px; border-radius: 14px 14px 3px 14px; background: var(--brand-soft); padding: 9px 10px; color: var(--brand-dark); font-size: 9px; line-height: 1.4; }
.assistant-answer { border-left: 2px solid var(--brand); padding: 2px 0 2px 9px; }
.assistant-answer strong { font-size: 9px; }
.assistant-answer p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 22px 24px 14px; }
.workspace-heading h1 { margin: 5px 0 4px; font-size: 24px; line-height: 1.15; letter-spacing: -0.035em; }
.workspace-heading p { max-width: 680px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.workspace-actions { display: flex; align-items: center; gap: 8px; }
.primary-button, .secondary-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 9px;
  font-weight: 800;
}
.primary-button { border: 1px solid var(--navy); background: var(--navy); color: white; }
.secondary-button { border: 1px solid var(--border); background: white; color: var(--ink); }
.primary-button .icon, .secondary-button .icon { width: 14px; height: 14px; }
.text-button { border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; }
.mini-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); font-size: 10px; font-weight: 800; }
.mini-panel-heading button { border: 0; background: transparent; color: var(--brand); font-size: 9px; }
.focus-breadcrumb { display: flex; align-items: center; gap: 7px; padding: 15px 24px 0; color: var(--muted); font-size: 9px; }
.focus-breadcrumb button { border: 0; background: transparent; padding: 0; color: var(--muted); }
.focus-breadcrumb strong { color: var(--ink); }
.source-tag { display: inline-flex; align-items: center; gap: 5px; width: fit-content; border-radius: 999px; background: #f2f0f8; padding: 5px 7px; color: var(--muted); font-size: 8px; font-weight: 700; }
.source-tag .icon { width: 11px; height: 11px; }
.dotted-canvas { background-color: var(--page); background-image: radial-gradient(rgba(89, 53, 233, 0.14) 0.7px, transparent 0.7px); background-size: 16px 16px; }
