:root {
  --bg: #0a1019;
  --panel: #131d2a;
  --line: #ffffff12;
  --text: #eef1f7;
  --muted: #8e9aaf;
  --gold: #e8bf7c;
  --gold-bg: #c79c4e1b;
  --teal: #6dd4c0;
  --danger: #ff9d9d;
  --radius: 18px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 65% -10%, #1b34483b, transparent 50%), var(--bg);
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.6;
}
.dim {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 16px 20px;
  border-right: 1px solid var(--line);
  background: linear-gradient(160deg, #121d2ad9, #0b131ed9);
  display: flex;
  flex-direction: column;
  gap: 30px;
  backdrop-filter: blur(20px);
  z-index: 20;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 0 10px;
  color: var(--gold);
}
.brand-mark {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -7px;
  position: relative;
  width: 75px;
  height: 51px;
}
.brand-mark span {
  position: absolute;
  top: 15px;
  left: 27px;
}
.wordmark {
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 600;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  overflow-y: auto;
}
.context-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.context-url {
  color: var(--gold);
  overflow-wrap: anywhere;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.status {
  font-size: 12px;
  color: var(--gold);
}
.nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #aeb9ca;
  border: 1px solid transparent;
  background: none;
  border-radius: 11px;
  padding: 13px 14px;
  text-align: left;
}
.nav button:hover {
  color: var(--text);
  background: #ffffff05;
}
.nav button.active {
  color: var(--gold);
  border-color: #e0b36b55;
  background: linear-gradient(120deg, #dbb56829, #c99d4512);
  box-shadow: inset 0 1px 0 #ffffff08;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
}
.private {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  background: #ffffff04;
  border-radius: 9px;
  font-size: 11px;
  color: var(--muted);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  flex-shrink: 0;
}
.dot.gold {
  background: var(--gold);
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 30px;
  background: #111b2780;
  backdrop-filter: blur(14px);
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  background: #ffffff03;
  white-space: nowrap;
  font-size: 13px;
}
.search {
  max-width: 560px;
  flex: 1;
  position: relative;
}
.search .icon {
  position: absolute;
  left: 13px;
  top: 11px;
  color: var(--muted);
}
.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff05;
  color: var(--text);
  padding: 12px 15px 12px 42px;
  font-size: 13px;
}
.search input::placeholder {
  color: #6e7c91;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #222d40;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
}
.mobile-menu {
  display: none;
}
.content {
  padding: 28px 30px 40px;
  max-width: 1800px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}
.page-head p {
  margin-top: 6px;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #b1c0d333;
  border-radius: 10px;
  background: #ffffff04;
  color: var(--text);
  padding: 11px 16px;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: #ffffff0a;
}
.button.primary {
  background: linear-gradient(125deg, #f1ce94, #d8ad67);
  border-color: #f0cf96;
  color: #171b23;
  font-weight: 600;
  box-shadow: 0 4px 24px #e1b2680c;
}
.button.primary:hover {
  background: #f1cd91;
}
.button.gold {
  color: var(--gold);
}
.button.tiny {
  padding: 8px 11px;
  font-size: 12px;
}
.button.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.glass {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(125deg, #1825349e, #101a26b3);
  box-shadow: inset 0 1px 0 #ffffff03;
  backdrop-filter: blur(14px);
}
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: start;
}
.project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-row {
  display: grid;
  grid-template-columns: 66px minmax(180px, 1fr) 1.1fr auto;
  align-items: center;
  gap: 18px;
  padding: 17px 19px;
  transition: background 0.2s;
}
.project-row:hover {
  background: linear-gradient(125deg, #203044b0, #142130c0);
}
.project-cover {
  height: 66px;
  width: 66px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 29px;
  letter-spacing: -1.5px;
  color: #29271f;
  background: linear-gradient(135deg, #ede3d1, #b7ac9a);
  box-shadow: inset 0 0 0 1px #ffffff26;
}
.project-cover.news {
  font-family: inherit;
  font-size: 23px;
  background: linear-gradient(140deg, #395a53, #a7b9a1);
  color: #e4f3e9;
}
.project-cover.brand {
  background: linear-gradient(135deg, #16202b, #0c121a);
  color: var(--gold);
  border: 1px solid #ffffff19;
}
.project-cover.music {
  background: linear-gradient(135deg, #5c547a, #252337);
  color: #e2d9f4;
}
.project-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  overflow-wrap: anywhere;
}
.project-info {
  min-width: 0;
}
.project-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 11px;
  background: #ffffff07;
  border: 1px solid #ffffff0a;
  color: #b9c4d4;
  margin-top: 7px;
}
.pill.teal {
  background: #5dcdb10c;
  color: var(--teal);
  border-color: #5dcdb129;
}
.steps {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 0 4px;
}
.step {
  position: relative;
  text-align: center;
  color: #68798f;
  font-size: 10px;
  flex: 1;
}
.step:before {
  content: "";
  height: 1px;
  position: absolute;
  top: 7px;
  left: -50%;
  right: 50%;
  background: #344153;
}
.step:first-child:before {
  display: none;
}
.step span {
  display: block;
  position: relative;
  margin: 0 auto 10px;
  width: 14px;
  height: 14px;
  border: 1.5px solid #69788e;
  border-radius: 50%;
  background: #17212f;
}
.step.current {
  color: var(--gold);
}
.step.current span {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #e8bf7c12;
  background: var(--gold);
}
.inspector {
  padding: 22px;
}
.inspector h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.inspector p {
  color: #a0aec2;
  font-size: 13px;
  margin-bottom: 16px;
}
.inspector-action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff03;
  color: var(--text);
  text-align: left;
}
.inspector-action .icon {
  color: var(--gold);
}
.inspector-action strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
}
.inspector-action span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.inspector-action:hover {
  border-color: #e8bf7c55;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.panel {
  padding: 21px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.panel-title h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-title .icon {
  color: #a7b6cb;
}
.empty {
  border: 1px dashed #ffffff20;
  border-radius: 12px;
  min-height: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  flex-direction: column;
  gap: 9px;
}
.empty > .icon {
  width: 33px;
  height: 33px;
  color: #66758c;
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  max-width: 370px;
}
.connections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.connection {
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff03;
  min-width: 0;
}
.provider-icon {
  font-family: Georgia, serif;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: #162339;
  color: #86a8ff;
  margin-bottom: 12px;
}
.provider-icon.higgs {
  color: #e3d5ff;
  background: #26243a;
}
.provider-icon.suno {
  color: var(--gold);
  background: #272519;
}
.connection strong {
  font-size: 12px;
}
.connection p {
  margin: 10px 0 14px;
  min-height: 36px;
  font-size: 11px;
  color: var(--muted);
}
.connection .button {
  font-size: 10px;
  padding: 8px;
  width: 100%;
}
.connection .pill {
  font-size: 9px;
  padding: 3px 6px;
  white-space: nowrap;
}
.snapshot {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #6dd4c01b;
  border-radius: 12px;
  background: #6dd4c006;
}
.snapshot strong {
  font-size: 12px;
  display: block;
  margin-bottom: 6px;
}
.snapshot p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.tag {
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--muted);
  white-space: nowrap;
}
.section-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow: auto;
}
.tabs button {
  padding: 14px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  white-space: nowrap;
}
.tabs button.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.topic-head {
  display: flex;
  gap: 16px;
  align-items: center;
}
.topic-head .project-cover {
  width: 54px;
  height: 54px;
  font-size: 23px;
}
.topic-head h1 {
  font-size: 27px;
}
.topic-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
}
.messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.message {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #ffffff03;
}
.message-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.message-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.65;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: block;
  min-width: 0;
}
.field > span {
  display: block;
  color: #bac6d8;
  font-size: 12px;
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #0b131eb3;
  border: 1px solid #ffffff18;
  color: var(--text);
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
}
.field textarea {
  resize: vertical;
  min-height: 95px;
  line-height: 1.6;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}
.field input::placeholder,
.field textarea::placeholder {
  color: #5f6f86;
}
.field.full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
}
.arc {
  padding: 19px;
  border: 1px solid var(--line);
  background: #ffffff03;
  border-radius: 12px;
  margin-bottom: 12px;
}
.arc h3 {
  margin-bottom: 8px;
}
.arc p {
  font-size: 13px;
  color: #aebace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.arc-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 13px;
  font-size: 11px;
  color: var(--muted);
}
.history-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.callout {
  padding: 14px;
  border: 1px solid #e8bf7c25;
  background: #e8bf7c07;
  border-radius: 12px;
  color: #c4b18d;
  font-size: 12px;
  line-height: 1.6;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.module-card {
  padding: 24px;
}
.module-card .icon {
  color: var(--gold);
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
}
.module-card p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}
dialog {
  background: #141f2d;
  color: var(--text);
  border: 1px solid #ffffff20;
  border-radius: 20px;
  box-shadow: 0 35px 120px #0009;
  width: min(570px, calc(100vw - 32px));
  padding: 25px;
  max-height: 90vh;
}
dialog::backdrop {
  background: #030710bd;
  backdrop-filter: blur(7px);
}
dialog .form-grid {
  margin-top: 22px;
}
dialog h2 {
  padding-right: 26px;
}
dialog .close {
  position: absolute;
  right: 17px;
  top: 13px;
  font-size: 23px;
  color: var(--muted);
  border: 0;
  background: none;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 20px;
  border: 1px solid #e8bf7c55;
  border-radius: 12px;
  background: #1a2635f5;
  box-shadow: 0 8px 40px #0006;
  color: var(--text);
  z-index: 100;
  max-width: calc(100vw - 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#toast.show {
  opacity: 1;
}
#toast.error {
  border-color: #ff9d9d66;
  color: var(--danger);
}
.loading {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 25px;
  color: var(--gold);
}
.login {
  max-width: 420px;
  margin: 12vh auto;
  padding: 30px;
}
.login h1 {
  font-size: 25px;
  margin-bottom: 14px;
}
.login .field {
  margin-top: 20px;
}
.login .button {
  width: 100%;
  margin-top: 22px;
}
.back-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 18px;
}
.stack {
  display: grid;
  gap: 16px;
}
.count {
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.hidden {
  display: none !important;
}
@media (min-width: 1600px) {
  .content {
    padding: 34px 42px;
  }
  .main-grid,
  .topic-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .project-row {
    padding: 21px;
  }
  .project-cover {
    width: 73px;
    height: 73px;
  }
  .project-row {
    grid-template-columns: 73px minmax(190px, 1fr) 1.2fr auto;
  }
}
@media (max-width: 1250px) {
  .project-row {
    grid-template-columns: 60px minmax(0, 1fr) auto;
  }
  .project-row > .project-cover {
    grid-column: 1;
    grid-row: 1;
  }
  .project-row > .project-info {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  .project-row > .steps {
    display: flex;
    grid-column: 2 / -1;
    grid-row: 2;
    min-width: 0;
    padding-top: 8px;
  }
  .project-row > .button {
    grid-column: 3;
    grid-row: 1;
  }
  .project-cover {
    height: 60px;
    width: 60px;
  }
  .content {
    padding: 25px 24px;
  }
  .topbar {
    padding: 0 24px;
    gap: 14px;
  }
  .main-grid,
  .topic-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .connections {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .sidebar {
    padding: 22px 10px;
  }
  .main-grid,
  .topic-layout {
    grid-template-columns: 1fr;
  }
  .inspector {
    display: none;
  }
  .module-grid {
    grid-template-columns: 1fr 1fr;
  }
  .workspace {
    font-size: 12px;
    padding: 10px;
  }
  .project-row {
    padding: 17px;
  }
  .topbar {
    gap: 12px;
  }
  .top-right .tag {
    display: none;
  }
}
@media (max-width: 700px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: -240px;
    width: 218px;
    transition: left 0.2s;
    background: #101925;
    box-shadow: 10px 0 80px #0008;
  }
  .sidebar.open {
    left: 0;
  }
  .topbar {
    padding: 0 16px;
    height: 64px;
    gap: 12px;
  }
  .mobile-menu {
    display: inline-flex;
    padding: 6px;
    border: 0;
    background: none;
    color: var(--muted);
  }
  .workspace {
    border: 0;
    padding: 0;
    background: none;
  }
  .workspace .icon {
    display: none;
  }
  .search {
    display: none;
  }
  .content {
    padding: 23px 16px 35px;
  }
  .page-head {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .page-head p {
    font-size: 12px;
    max-width: 210px;
  }
  .page-head .button {
    font-size: 11px;
    padding: 10px;
  }
  .page-head .button .icon {
    display: none;
  }
  .project-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
  }
  .project-cover {
    width: 48px;
    height: 48px;
    font-size: 24px;
    border-radius: 10px;
  }
  .project-name {
    font-size: 15px;
  }
  .project-meta {
    font-size: 10px;
  }
  .project-row > .steps {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .project-row > .button {
    grid-column: 1/-1;
    grid-row: 3;
    padding: 9px;
    font-size: 11px;
  }
  .pill {
    font-size: 10px;
  }
  .connections {
    grid-template-columns: 1fr;
  }
  .connection {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    align-items: center;
  }
  .connection .provider-icon {
    margin: 0;
  }
  .connection .pill {
    margin: 4px 0 0;
  }
  .connection p {
    display: none;
  }
  .connection .button {
    width: auto;
    font-size: 10px;
  }
  .panel {
    padding: 18px;
  }
  .panel-title h3 {
    font-size: 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .topic-head h1 {
    font-size: 25px;
  }
  .topic-head .project-cover {
    display: none;
  }
  .tabs button {
    padding: 13px 11px;
    font-size: 12px;
  }
  .module-grid {
    grid-template-columns: 1fr;
  }
  .bottom-grid {
    gap: 14px;
  }
  .empty {
    min-height: 150px;
  }
  .login {
    margin: 9vh 16px;
  }
  .arc-footer {
    flex-wrap: wrap;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions .dim {
    font-size: 11px;
  }
  h1,
  h2,
  h3 {
    overflow-wrap: anywhere;
  }
}
