:root {
  --bg: #111416;
  --surface: #1b2023;
  --accent: #c4ff48;
  --text: #eef0f7;
  --muted: #b3b9c9;
  --surface-text: #eef0f7;
  --surface-muted: #b3b9c9;
  --on-accent: #000;
  --accent-text: #c4ff48;
  --surface-accent: #c4ff48;
  --border: color-mix(in srgb, var(--surface-text) 22%, var(--surface));
  --tint: color-mix(in srgb, var(--accent) 7%, var(--surface));
  color-scheme: dark;
}
:root[data-mode='dark'] {
  color-scheme: dark;
}
:root[data-mode='light'] {
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px Inter,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
aside {
  width: 80px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--surface);
  color: var(--surface-text);
  border-inline-end: 1px solid var(--border);
  padding: 24px 6px;
  z-index: 2;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--surface-accent);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}
.brand span {
  font-size: 11px;
  color: var(--surface-text);
  margin-top: 7px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 42px;
}
nav a,
nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 66px;
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--surface-muted);
  text-decoration: none;
  font-size: 10px;
  border-radius: 10px;
  white-space: normal;
}
nav a:hover,
nav button:hover {
  background: var(--tint);
  color: var(--surface-text);
}
.nav-icon {
  font-size: 27px;
  line-height: 28px;
}
.aside-bottom {
  position: absolute;
  bottom: 24px;
  width: 68px;
  text-align: center;
  color: var(--surface-muted);
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent-text);
  border-radius: 50%;
  margin-inline-end: 6px;
}
main {
  margin-inline-start: 80px;
  padding: 0 46px;
  max-width: 1580px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 89px;
  font-size: 12px;
  color: var(--muted);
}
header b {
  font-weight: 500;
  color: var(--text);
}
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--surface-muted);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 10px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 42px 46px 38px;
  background: var(--surface);
  color: var(--surface-text);
  border: 1px solid var(--border);
  border-radius: 19px;
  min-height: 310px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: 2px;
}
.hero .eyebrow {
  color: var(--surface-accent);
}
.hero h1 {
  font-size: 51px;
  letter-spacing: -2px;
  line-height: 1.06;
  font-weight: 600;
  margin: 20px 0 18px;
}
.hero p:not(.eyebrow) {
  font-size: 15px;
  color: var(--surface-muted);
  line-height: 1.7;
}
.hero-tags {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.hero-tags span {
  font-size: 10px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--surface-muted);
}
.orb {
  position: absolute;
  right: 12%;
  top: 24px;
  font-size: 260px;
  line-height: 1.15;
  color: var(--surface-accent);
  opacity: 0.6;
  transform: rotate(-14deg);
  font-family: Georgia, serif;
}
.status-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}
section:not(.hero) {
  scroll-margin-top: 20px;
  margin-top: 40px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  font-weight: 600;
  margin: 9px 0;
}
h3 {
  font-size: 17px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.access {
  background: var(--surface);
  color: var(--surface-text);
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 15px;
}
.access summary {
  cursor: pointer;
  color: var(--surface-accent);
  min-height: 28px;
  padding: 4px 0;
}
.access p {
  font-size: 12px;
  color: var(--surface-muted);
  line-height: 1.6;
}
form {
  display: flex;
  gap: 12px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  color: var(--surface-text);
}
input::placeholder,
textarea::placeholder {
  color: var(--surface-muted);
  opacity: 1;
}
button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 18px;
  cursor: pointer;
  font-size: 12px;
}
button:hover {
  filter: brightness(0.96);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
label {
  display: block;
  color: inherit;
  font-size: 12px;
  line-height: 2.2;
}
.create {
  align-items: flex-end;
}
.create label:first-child {
  flex: 1;
}
.create label:nth-child(2) {
  width: 170px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.empty {
  grid-column: 1/-1;
  border: 1px dashed var(--border);
  padding: 28px;
  text-align: center;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
}
.project {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--surface-text);
  overflow-wrap: anywhere;
}
.project small,
.project p {
  color: var(--surface-muted);
  font-size: 11px;
}
.project h3 {
  margin: 14px 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.cards article {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--surface-text);
  padding: 25px;
}
.card-icon {
  display: grid;
  place-items: center;
  color: var(--surface-accent);
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 25px;
}
.cards p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--surface-muted);
  min-height: 64px;
}
.cards small {
  color: var(--surface-muted);
  font-size: 10px;
}
.cards small.active {
  color: var(--surface-accent);
}
.flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12px;
  color: var(--surface-muted);
}
.flow b {
  color: var(--surface-accent);
}
.document-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}
.editor {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--surface-text);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 12px;
}
.editor textarea {
  resize: vertical;
  line-height: 1.6;
  font-family: monospace;
}
.documents article {
  background: var(--surface);
  color: var(--surface-text);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.documents article h3 {
  margin-top: 0;
}
#notice {
  min-height: 16px;
  color: var(--accent-text);
  font-size: 12px;
}
footer {
  margin-top: 50px;
  padding: 25px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
/* Appearance changes the shell, never user documents or website previews. */
dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px;
  background: var(--surface);
  color: var(--surface-text);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 100px #0005;
  overflow: auto;
}
dialog::backdrop {
  background: #10182880;
  backdrop-filter: blur(5px);
}
dialog .eyebrow {
  color: var(--surface-accent);
}
.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.settings-description {
  color: var(--surface-muted);
  line-height: 1.7;
}
.secondary {
  background: var(--surface);
  color: var(--surface-text);
  border-color: var(--border);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0;
}
legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mode-switch button {
  background: var(--surface);
  color: var(--surface-text);
  border-color: var(--border);
}
.mode-switch button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--surface-text);
}
.color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.color-grid input {
  height: 48px;
  padding: 4px;
  cursor: pointer;
}
#custom-colors p,
#custom-colors small {
  font-size: 12px;
  color: var(--surface-muted);
  line-height: 1.7;
}
#appearance-preview {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  background: var(--bg);
  color: var(--text);
}
.preview-tag {
  color: var(--accent-text);
  font-size: 10px;
  letter-spacing: 1px;
}
#appearance-preview p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 12px;
}
.preview-action {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
}
#appearance-status {
  min-height: 34px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--surface-muted);
}
.settings-footer {
  display: flex;
  gap: 18px;
  align-items: center;
}
.settings-footer small {
  color: var(--surface-muted);
  font-size: 11px;
  line-height: 1.6;
}
:root[data-theme='editorial'] h1,
:root[data-theme='editorial'] h2 {
  font-family: Georgia, serif;
}
@media (min-width: 1500px) {
  main {
    margin-inline-end: auto;
  }
}
@media (max-width: 1050px) {
  main {
    padding: 0 24px;
  }
  .orb {
    right: 6%;
    font-size: 220px;
    top: 55px;
  }
  .hero {
    padding: 30px;
  }
  .cards {
    gap: 10px;
  }
  .cards article {
    padding: 18px;
  }
  .flow {
    font-size: 10px;
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  aside {
    position: static;
    width: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    border-inline-end: 0;
  }
  .brand {
    font-size: 27px;
  }
  .brand span {
    font-size: 9px;
  }
  .aside-bottom {
    display: none;
  }
  nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    flex: 1;
  }
  nav a,
  nav button {
    min-height: 60px;
    font-size: 9px;
    padding: 4px 2px;
  }
  .nav-icon {
    font-size: 24px;
  }
  main {
    margin: 0;
    padding: 0 18px;
  }
  header {
    height: 65px;
    font-size: 10px;
  }
  .pill {
    font-size: 9px;
  }
  .hero h1 {
    font-size: 39px;
  }
  .hero {
    min-height: 300px;
    padding: 24px;
  }
  .orb {
    right: -35px;
    top: 85px;
    font-size: 160px;
    opacity: 0.12;
  }
  .hero p,
  .hero h1,
  .hero-tags {
    position: relative;
    z-index: 1;
  }
  .status-strip {
    gap: 12px;
    font-size: 10px;
  }
  .section-title {
    align-items: flex-start;
  }
  .section-title > .muted {
    display: none;
  }
  h2 {
    font-size: 22px;
  }
  .cards,
  .project-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }
  .create {
    flex-wrap: wrap;
  }
  .create label:first-child {
    flex-basis: 100%;
  }
  .create label:nth-child(2) {
    flex: 1;
  }
  .flow {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
  }
  .cards p {
    min-height: 0;
  }
  footer {
    gap: 20px;
    line-height: 1.6;
  }
  .access form {
    flex-wrap: wrap;
  }
  dialog {
    padding: 20px;
  }
  .settings-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
nav a[aria-current='page'] {
  background: var(--tint);
  color: var(--surface-accent);
  box-shadow: inset 2px 0 var(--surface-accent);
}
.chat-page {
  max-width: 980px;
  margin: 6vh auto 0 !important;
  min-height: 65vh;
}
.chat-intro h1 {
  font-size: clamp(36px, 5vw, 64px);
  max-width: 650px;
  letter-spacing: -2px;
  line-height: 1.07;
  margin: 20px 0;
}
.chat-intro > p:last-child {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}
.composer {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--accent-text);
  background: var(--surface);
  color: var(--surface-text);
  border-radius: 14px;
  padding: 12px;
  margin-top: 30px;
}
.composer textarea {
  border: 0;
  background: transparent;
  resize: vertical;
  min-height: 92px;
  max-height: 320px;
}
.composer-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}
.composer-toolbar select {
  width: auto;
  max-width: 230px;
  padding: 8px;
  border-color: var(--border);
  font-size: 12px;
}
.icon-button {
  background: transparent;
  color: var(--surface-text);
  font-size: 25px;
  padding: 0;
  width: 44px;
}
#chat-send {
  margin-inline-start: auto;
  width: 44px;
  padding: 0;
  font-size: 25px;
}
#chat-status {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  min-height: 24px;
}
.quick-start {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.quick-start button {
  padding: 20px;
  text-align: start;
  background: var(--surface);
  color: var(--surface-text);
  border: 1px solid var(--border);
  white-space: normal;
}
.quick-start b {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin: 12px 0;
}
.quick-start small {
  display: block;
  color: var(--surface-muted);
  font-size: 12px;
  line-height: 1.6;
}
.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.attachment {
  background: var(--surface);
  color: var(--surface-text);
  border: 1px solid var(--border);
  overflow-wrap: anywhere;
  text-align: start;
  max-width: 100%;
}
main {
  min-height: 100dvh;
}
section[data-page] {
  min-height: 66vh;
}
footer {
  gap: 16px;
}
.settings-header {
  margin-bottom: 12px;
}
@media (max-width: 720px) {
  nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
  }
  aside {
    gap: 8px;
    padding: 10px;
  }
  .chat-page {
    margin-top: 24px !important;
  }
  .chat-intro h1 {
    letter-spacing: -1px;
  }
  .chat-intro > p:last-child {
    font-size: 14px;
  }
  .quick-start {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .quick-start button {
    padding: 16px;
  }
  .composer-toolbar select {
    max-width: 190px;
  }
  .chat-page {
    min-height: 65vh;
  }
  nav button,
  nav a {
    font-size: 9px;
  }
  footer {
    flex-direction: column;
  }
}
