:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #222239;
  background: #f5f5fa;
  font-synthesis: none;
  --purple: #5140d9;
  --line: #e4e4ee;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
aside {
  width: 244px;
  background: #18182c;
  color: white;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 38px;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -3px;
  color: #c8f279;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand span {
  font-size: 17px;
  letter-spacing: -0.4px;
  color: white;
  font-weight: 600;
}
.workspace {
  font-size: 10px;
  color: #9292b0;
  letter-spacing: 1.8px;
  margin: 42px 10px 18px;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  background: transparent;
  color: #8d8da9;
  border: 0;
  text-align: left;
  padding: 14px 12px;
  font-size: 11px;
}
nav button span {
  font-size: 13px;
  font-weight: 550;
  margin-left: 9px;
  color: #c4c4d4;
}
nav button.active {
  background: #34304f;
  color: #d8fb92;
}
nav button.active span {
  color: white;
}
.aside-bottom {
  margin-top: auto;
}
.aside-bottom select {
  background: #25253c;
  color: white;
  border-color: #42415c;
}
.aside-bottom p {
  color: #8f8fa9;
  font-size: 11px;
  line-height: 1.9;
}
main {
  margin-left: 244px;
  padding: 0 48px;
  max-width: 1750px;
}
header {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 1px;
  color: #79798d;
}
.view {
  padding: 42px 0 24px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 750;
  color: var(--purple);
  margin-bottom: 15px;
}
h1 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 680;
  letter-spacing: -1.7px;
  margin: 0 0 14px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  font-weight: 650;
  margin: 0 0 22px;
}
.intro {
  font-size: 14px;
  color: #77778c;
  max-width: 760px;
  line-height: 1.8;
  margin: 0 0 28px;
}
.badge {
  font-size: 10px;
  letter-spacing: 0.4px;
  background: #ecebf6;
  color: #625a8b;
  padding: 7px 11px;
  border-radius: 20px;
  white-space: nowrap;
}
.pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ecebf5;
  border: 1px solid #e0deef;
  border-radius: 12px;
  padding: 24px;
  gap: 14px;
  margin: 30px 0;
}
.pipeline div {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 4px 10px;
}
.pipeline b {
  grid-row: span 2;
  background: white;
  color: var(--purple);
  font-size: 10px;
  align-self: start;
  padding: 7px 5px;
  border-radius: 6px;
}
.pipeline strong {
  font-size: 12px;
}
.pipeline small {
  font-size: 10px;
  color: #7f7b98;
}
.pipeline > span {
  color: #a3a0b9;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 22px;
  min-width: 0;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.panel-title h2 {
  margin: 0;
}
label {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
  color: #74748b;
  margin: 16px 0 9px;
}
input,
select {
  border: 1px solid #dcdce7;
  background: #fcfcfe;
  border-radius: 6px;
  width: 100%;
  padding: 12px;
  font: inherit;
  font-size: 12px;
  color: inherit;
  min-width: 0;
}
input:focus,
select:focus {
  outline: 2px solid #b7aff5;
  outline-offset: 1px;
}
button {
  cursor: pointer;
  border: 1px solid #dcdce8;
  background: white;
  border-radius: 6px;
  padding: 11px 16px;
  color: #4b465f;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: #f0eefb;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}
.primary:hover {
  background: #3e2ec2;
}
#extract,
#prepare,
#load,
#get-guide,
#sync-gorse,
#get-recommendations {
  margin-top: 18px;
}
.primary span {
  float: right;
}
.text-button {
  border: 0;
  background: none;
  color: var(--purple);
  padding: 7px 0;
  font-size: 11px;
}
#examples {
  display: block;
  margin-top: 10px;
}
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.muted {
  color: #848498;
  font-size: 12px;
  line-height: 1.8;
}
.divider {
  font-size: 9px;
  color: #9996ad;
  margin: 26px 0 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  letter-spacing: 1px;
}
.empty {
  padding: 45px 16px;
  text-align: center;
  color: #55516f;
  font-size: 14px;
}
.empty p {
  font-size: 12px;
  color: #9591aa;
  line-height: 1.9;
  max-width: 300px;
  margin: 12px auto;
}
.metrics {
  display: flex;
  gap: 18px;
  margin: 15px 0;
}
.metrics div {
  font-size: 11px;
  color: #8b879e;
}
.metrics strong {
  display: block;
  font-size: 26px;
  color: #353047;
}
pre {
  font-size: 11px;
  line-height: 1.7;
  background: #f7f7fc;
  border: 1px solid #ebebf3;
  padding: 14px;
  border-radius: 6px;
  overflow: auto;
  max-height: 330px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
}
th,
td {
  text-align: left;
  padding: 12px 9px;
  border-bottom: 1px solid #ededf5;
  vertical-align: top;
}
th {
  color: #9a96aa;
  font-size: 9px;
  letter-spacing: 0.6px;
  font-weight: 600;
}
td button {
  font-size: 10px;
  padding: 5px 9px;
}
.search {
  display: flex;
  gap: 10px;
}
.search input {
  background: white;
  padding: 17px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 15px 0 24px;
}
.chips button {
  font-size: 11px;
  border-radius: 20px;
  padding: 8px 15px;
  background: #edeaf9;
  border-color: #e4dff6;
  color: #65559a;
}
.chips label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f2f0f9;
  padding: 10px;
  border-radius: 6px;
}
.chips input {
  width: auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.asset-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  min-height: 200px;
}
.asset-card:hover {
  border-color: #b3a9eb;
  background: white;
  box-shadow: 0 8px 20px #342c6510;
}
.asset-card .kind {
  font-size: 9px;
  letter-spacing: 1.1px;
  color: #8a78bc;
  text-transform: uppercase;
}
.asset-card h3 {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 650;
  margin: 0;
}
.asset-card p {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
  color: #8c879c;
  margin: 0;
}
.asset-card .evidence {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: auto;
  font-size: 10px;
  color: #6753a0;
  font-weight: 400;
}
.model-split {
  grid-template-columns: 290px 1fr;
}
#entities {
  max-height: 590px;
  overflow: auto;
  margin-top: 20px;
}
.entity-button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 4px;
  text-align: left;
  font-family: monospace;
  font-size: 10px;
  padding: 12px;
}
.entity-button.selected {
  background: #eeeafb;
  color: var(--purple);
}
#fields table td:first-child {
  font-family: monospace;
  color: #615294;
}
#fields table td:last-child {
  font-size: 11px;
  line-height: 1.8;
  color: #777186;
}
details {
  font-size: 12px;
  margin-top: 20px;
}
summary {
  cursor: pointer;
}
#gorse-dashboard {
  margin-left: 20px;
  font-size: 12px;
}
a {
  color: var(--purple);
}
.guide-channel {
  margin: 30px 0;
}
.broadcast {
  display: grid;
  grid-template-columns: 100px 1fr 130px;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.broadcast time {
  color: var(--purple);
  font-weight: 650;
}
.broadcast h3 {
  margin: 0 0 5px;
  font-size: 15px;
}
.broadcast p {
  margin: 0;
  color: #898298;
  font-size: 12px;
  line-height: 1.8;
}
#notice {
  position: sticky;
  top: 10px;
  z-index: 2;
  background: #ede8ff;
  border: 1px solid #c7bdf1;
  padding: 13px 17px;
  border-radius: 7px;
  font-size: 12px;
  box-shadow: 0 5px 18px #2920390d;
}
#notice.error {
  background: #fff0ee;
  border-color: #ecc3bc;
  color: #8a3c31;
}
footer {
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #9a95aa;
  padding: 25px 0;
  margin-top: 35px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 740px;
  width: 90%;
  padding: 36px;
  color: inherit;
  max-height: 85vh;
}
dialog::backdrop {
  background: #17122b99;
  backdrop-filter: blur(3px);
}
#close-detail {
  float: right;
  font-size: 22px;
  border: 0;
  padding: 0 8px;
}
dialog h2 {
  font-size: 28px;
  margin-top: 20px;
}
dialog h3 {
  font-size: 13px;
  margin-top: 25px;
}
dialog p,
dialog li {
  font-size: 13px;
  line-height: 1.9;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1150px) {
  main {
    padding: 0 28px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pipeline {
    flex-wrap: wrap;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .model-split {
    grid-template-columns: 240px 1fr;
  }
}
@media (max-width: 760px) {
  aside {
    position: relative;
    width: auto;
    padding: 20px;
  }
  .brand {
    font-size: 28px;
  }
  .workspace,
  .aside-bottom p {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 20px;
  }
  nav button {
    white-space: nowrap;
    padding: 9px;
  }
  nav button span {
    font-size: 11px;
    margin-left: 4px;
  }
  .aside-bottom {
    margin-top: 15px;
  }
  .aside-bottom label {
    color: #aaa;
  }
  main {
    margin: 0;
    padding: 0 20px;
  }
  .cards,
  .model-split {
    grid-template-columns: 1fr;
  }
  header {
    height: 60px;
  }
  .view {
    padding-top: 28px;
  }
  .pipeline > span {
    display: none;
  }
  .pipeline {
    gap: 20px;
  }
  .broadcast {
    grid-template-columns: 80px 1fr;
  }
  .broadcast > button {
    grid-column: 2;
  }
  h1 {
    letter-spacing: -1px;
  }
}

@media (max-width: 760px) {
  .twocol {
    grid-template-columns: minmax(0, 1fr);
  }
  .twocol > div {
    min-width: 0;
  }
  nav {
    max-width: 100%;
  }
  input[type="datetime-local"] {
    max-width: 100%;
  }
}

.asset-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  color: #8b839d;
  font-size: 12px;
}
.hierarchy-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line);
  background: #faf9fe;
  padding: 12px 14px;
  min-width: 0;
}
.hierarchy-link strong {
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.hierarchy-link small {
  color: #8b78ac;
  font-size: 10px;
}
.asset-breadcrumbs .hierarchy-link {
  border: 0;
  background: transparent;
  color: var(--purple);
  padding: 4px 0;
}
.asset-breadcrumbs .hierarchy-link small {
  display: none;
}
.hierarchy-list {
  display: grid;
  gap: 8px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}
.check-label input {
  width: auto;
}

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
}
.login-panel {
  margin: 24px;
  max-width: 480px;
  padding: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.login-panel h1 {
  font-size: 2.4rem;
}
.login-panel form {
  display: grid;
  gap: 14px;
  margin-block: 24px;
}
.login-panel input {
  width: 100%;
  box-sizing: border-box;
}

.artwork {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #24263e, #5140a3);
  color: #e2ddff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.artwork img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artwork-initials {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: 3px;
}
.artwork-status {
  position: absolute;
  bottom: 12px;
  font-size: 10px;
  color: #d3cbf6;
}
.artwork-detail {
  max-height: 360px;
  margin-bottom: 20px;
}
.artwork-detail img {
  object-fit: contain;
  background: #191b2e;
}
