:root {
  color-scheme: dark;
  --bg: #080713;
  --panel: #100e20;
  --raised: #171329;
  --border: #ffffff12;
  --text: #f4f0ff;
  --muted: #a8a6b7;
  --dim: #787486;
  --accent: #b1a1ff;
  --accent-bg: #9a80ff19;
  --radius: 16px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -1px;
}
h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
  font-weight: 500;
}
small,
.tiny {
  font-size: 11px;
}
.muted {
  color: var(--muted);
}
.dim {
  color: var(--dim);
}
.accent {
  color: var(--accent);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 500;
}
.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: #0c0a18;
  border-right: 1px solid var(--border);
  padding: 31px 18px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.wordmark {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 1px;
  white-space: nowrap;
}
.wordmark span {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--accent);
  border: 1px solid #b1a1ff33;
  padding: 3px 5px;
  border-radius: 5px;
  vertical-align: middle;
  margin-left: 3px;
}
.brand {
  padding: 0 10px 26px;
}
.brand small {
  display: block;
  margin-top: 8px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 1.5px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #797487;
  margin: 22px 12px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  color: #a5a0b5;
  font-size: 12px;
  border-radius: 5px;
  margin: 3px 0;
  transition: background 0.15s;
}
.nav-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.nav-item:hover {
  background: #ffffff05;
  color: var(--text);
}
.nav-item.active {
  background: linear-gradient(90deg, #9b84ff20, #9b84ff0a);
  color: #d6caff;
  box-shadow: inset 2px 0 var(--accent);
}
.nav-item .pill {
  margin-left: auto;
  font-size: 9px;
  padding: 1px 5px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.workspace-status {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 0 6px 17px;
  background: #ffffff02;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
}
.profile {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 10px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: #a38bff19;
  color: #cfbfff;
  border: 1px solid #a38bff26;
  border-radius: 50%;
  font-size: 10px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 75px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  color: var(--muted);
  font-size: 11px;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mode {
  color: #c1b4e6;
  border: 1px solid #a894ff2b;
  border-radius: 30px;
  padding: 5px 10px;
  background: #a894ff08;
  font-size: 10px;
}
.icon-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 5px;
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
.mobile-menu {
  display: none;
}
.content {
  max-width: 1610px;
  margin: 0 auto;
  padding: 33px 38px 40px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.page-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 5px;
  border: 1px solid #ffffff18;
  color: var(--text);
  background: #ffffff04;
  font-size: 11px;
  white-space: nowrap;
}
.btn svg {
  height: 14px;
  width: 14px;
}
.btn:hover {
  background: #ffffff0a;
}
.btn.primary {
  background: #c0afff;
  color: #1d1433;
  border-color: transparent;
  font-weight: 500;
}
.btn.primary:hover {
  background: #cfbfff;
}
.btn.soft {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: #9b84ff24;
}
.btn.small {
  padding: 6px 10px;
  min-height: 30px;
  font-size: 10px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(125deg, #121020, #0e0c1a);
  overflow: hidden;
}
.panel.pad {
  padding: 24px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
}
.panel-head p {
  font-size: 11px;
  color: var(--dim);
  margin-top: 5px;
}
.grid {
  display: grid;
  gap: 20px;
}
.grid.two {
  grid-template-columns: 1.45fr 1fr;
}
.grid.equal {
  grid-template-columns: 1fr 1fr;
}
.grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.grid.four {
  grid-template-columns: repeat(4, 1fr);
}
.space {
  margin-top: 23px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  padding: 4px 8px;
  border: 1px solid #ffffff16;
  border-radius: 30px;
  color: #b6afc9;
  white-space: nowrap;
}
.pill.purple {
  background: #ac92ff12;
  color: #c5b5ff;
  border-color: #ac92ff22;
}
.hero {
  padding: 28px 30px;
  min-height: 190px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 83% 70%, #38255670, transparent 52%),
    linear-gradient(110deg, #1b142d, #100d1d);
  border: 1px solid #bc9fff22;
  border-radius: 16px;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero h2 {
  font-size: 28px;
  line-height: 1.25;
  margin: 12px 0;
  letter-spacing: -0.8px;
}
.hero p {
  color: #aaa1bd;
  font-size: 12px;
  max-width: 400px;
}
.orb {
  position: absolute;
  right: 55px;
  width: 152px;
  height: 152px;
  border: 1px solid #cfbaff55;
  border-radius: 50%;
  background: radial-gradient(
    circle at 33% 23%,
    #bda6ff33,
    #35204c16 55%,
    #bd9bff21
  );
  box-shadow:
    inset -18px -12px 40px #c4a0ff12,
    0 0 60px #9760ff10;
}
.orb:before,
.orb:after {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid #bda3ff23;
  border-radius: 50%;
  transform: rotate(-28deg) scaleY(0.43);
}
.orb:after {
  inset: -40px;
  transform: rotate(30deg) scaleY(0.6);
}
.stat {
  padding: 21px 22px;
  min-height: 130px;
}
.stat .label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.stat .value {
  font-size: 28px;
  font-weight: 400;
  margin: 12px 0 3px;
  letter-spacing: -1px;
}
.stat .foot {
  font-size: 10px;
  color: var(--dim);
}
.stat svg {
  width: 15px;
  height: 15px;
  color: var(--dim);
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 15px;
}
.section-title span {
  font-size: 11px;
  color: var(--dim);
}
.workflow {
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  transition: border-color 0.2s;
}
.workflow:hover {
  border-color: #b1a1ff55;
}
.icon-square {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #a78bff13;
  border: 1px solid #b1a1ff22;
  border-radius: 9px;
  color: var(--accent);
  margin-bottom: 20px;
}
.icon-square svg {
  width: 18px;
  height: 18px;
}
.workflow p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 8px;
  max-width: 240px;
}
.workflow .link {
  color: var(--accent);
  font-size: 11px;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  border-top: 1px solid var(--border);
}
.row .grow {
  flex: 1;
}
.row p {
  font-size: 11px;
  color: var(--dim);
  margin-top: 3px;
}
.row .number {
  font-size: 11px;
  color: var(--dim);
  width: 20px;
}
.row h3 {
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow: auto;
}
.tab {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0 0 13px;
  font-size: 12px;
  white-space: nowrap;
}
.tab.active {
  color: #d2c3ff;
  border-bottom: 2px solid var(--accent);
}
.channel-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 13px 18px;
  background: #a18bff08;
  border: 1px solid #a18bff20;
  border-radius: 10px;
  font-size: 11px;
}
.channel-bar .grow {
  flex: 1;
}
.channel-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #baa5ff30;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--accent);
}
.channel-icon svg {
  height: 19px;
  width: 19px;
}
.notice {
  font-size: 11px;
  color: #b8aacd;
  background: #a18bff08;
  border: 1px solid #a18bff20;
  border-radius: 8px;
  padding: 11px 15px;
  line-height: 1.6;
}
.notice a {
  color: var(--accent);
}
.muted-box {
  border: 1px dashed #baa5ff25;
  border-radius: 12px;
  padding: 24px;
  color: var(--muted);
}
.inbox {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 410px;
}
.inbox-list {
  border-right: 1px solid var(--border);
}
.inbox-title {
  padding: 17px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.conversation {
  padding: 18px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.conversation.selected {
  background: #b19aff0c;
  border-left: 2px solid var(--accent);
}
.conversation h3 {
  font-size: 11px;
}
.conversation p {
  font-size: 10px;
  color: var(--dim);
  margin-top: 5px;
}
.conversation .time {
  margin-left: auto;
  font-size: 9px;
  color: var(--dim);
}
.chat-head {
  padding: 17px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-head h3 {
  font-size: 12px;
}
.chat-body {
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-date {
  text-align: center;
  color: var(--dim);
  font-size: 9px;
}
.bubble {
  max-width: 82%;
  background: #ffffff06;
  border: 1px solid #ffffff0a;
  padding: 14px 16px;
  border-radius: 12px 12px 12px 3px;
  font-size: 11px;
  line-height: 1.7;
}
.bubble.out {
  align-self: flex-end;
  background: #ac91ff12;
  border-color: #ac91ff1a;
  border-radius: 12px 12px 3px 12px;
}
.bubble small {
  display: block;
  text-align: right;
  color: var(--dim);
  font-size: 9px;
  margin-top: 5px;
}
.composer {
  margin: 15px 22px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.composer input {
  flex: 1;
  min-width: 0;
}
.bottom-meta {
  display: flex;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 14px;
}
label {
  display: block;
  color: #c6bfd5;
  font-size: 11px;
  margin-bottom: 16px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  background: #090713;
  border: 1px solid #ffffff16;
  color: #e5dfee;
  padding: 11px 12px;
  border-radius: 5px;
  margin-top: 7px;
  font-size: 12px;
  min-height: 40px;
}
textarea {
  resize: vertical;
  min-height: 85px;
}
input::placeholder,
textarea::placeholder {
  color: #6f687e;
}
input[type="checkbox"] {
  display: inline-block;
  width: 14px;
  min-height: 14px;
  margin: 0 8px 0 0;
  accent-color: #b1a1ff;
  vertical-align: middle;
}
input[type="number"] {
  max-width: 100%;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.help {
  font-size: 10px;
  color: var(--dim);
  line-height: 1.6;
}
.steps {
  display: flex;
  gap: 0;
  margin: 6px 0 27px;
  justify-content: space-between;
}
.step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: var(--dim);
}
.step span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff19;
  border-radius: 50%;
  font-size: 10px;
}
.step.active {
  color: #d3c5ff;
}
.step.active span {
  background: #ad90ff1a;
  border-color: #ad90ff66;
}
.form-section {
  font-size: 12px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.form-section i {
  font-style: normal;
  color: var(--accent);
  font-size: 10px;
}
.dropzone {
  padding: 21px;
  border: 1px dashed #bca6ff44;
  border-radius: 10px;
  text-align: center;
  background: #a18bff05;
  cursor: pointer;
}
.dropzone svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 8px;
}
.dropzone p {
  font-size: 11px;
}
.dropzone small {
  display: block;
  font-size: 9px;
  color: var(--dim);
  margin-top: 5px;
}
.dropzone input {
  border: 0;
  background: none;
  font-size: 10px;
  padding: 5px;
  margin: 7px auto 0;
  max-width: 270px;
}
.layout-options {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.choice {
  flex: 1;
  padding: 10px 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  font-size: 10px;
}
.choice.active {
  border-color: #b1a1ff77;
  background: #b1a1ff0d;
  color: #d6c7ff;
}
.preview-card {
  background: #f7f7f2;
  color: #24473d;
  border-radius: 12px;
  padding: 22px 22px 18px;
  aspect-ratio: 4/4.4;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.preview-card .caption {
  font-size: 8px;
  letter-spacing: 1.7px;
}
.preview-card h3 {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -1px;
  max-width: 220px;
  margin-top: 27px;
  font-weight: 500;
}
.preview-card .shape {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 24px solid #dce6dc;
  border-radius: 50%;
  right: -35px;
  bottom: 51px;
  transform: rotate(-25deg);
}
.preview-card .placeholder {
  margin-top: auto;
  position: relative;
  border: 1px dashed #24473d55;
  padding: 15px;
  width: 60%;
  font-size: 10px;
  color: #607269;
  border-radius: 5px;
}
.preview-card .caption-bottom {
  font-size: 8px;
  margin-top: 17px;
  color: #607269;
  position: relative;
}
.slide-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-top: 12px;
}
.slide-thumb {
  aspect-ratio: 1;
  background: #f7f7f2;
  border-radius: 5px;
  padding: 8px;
  color: #24473d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 7px;
}
.slide-thumb:nth-child(2n) {
  background: #dce6dc;
}
.slide-thumb:nth-child(3) {
  background: #24473d;
  color: #f7f7f2;
}
.slide-thumb b {
  font-size: 12px;
  font-weight: 400;
}
.check-item {
  display: flex;
  gap: 8px;
  padding: 9px 0;
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.check-item span {
  color: var(--accent);
}
.ai-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}
.segmented {
  display: flex;
  gap: 4px;
  background: #090713;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 22px;
}
.segmented button {
  flex: 1;
  background: none;
  border: 0;
  border-radius: 5px;
  padding: 9px 6px;
  color: var(--muted);
  font-size: 10px;
}
.segmented button.active {
  background: #a58aff20;
  color: #ddcfff;
}
.model-slot {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff02;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.model-slot h3 {
  font-size: 12px;
}
.model-slot p {
  font-size: 10px;
  color: var(--dim);
  margin-top: 4px;
}
.results-empty {
  min-height: 230px;
  padding: 26px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #a58aff26;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 40%, #a58aff0a, transparent 65%);
}
.results-empty .icon-square {
  width: 46px;
  height: 46px;
  margin-bottom: 17px;
}
.results-empty h3 {
  font-size: 14px;
}
.results-empty p {
  font-size: 11px;
  color: var(--dim);
  max-width: 300px;
  margin-top: 9px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.detail-row span {
  color: var(--muted);
}
.detail-row strong {
  font-weight: 400;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
th {
  font-size: 9px;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 13px 22px;
  background: #ffffff02;
}
td {
  padding: 17px 22px;
  border-top: 1px solid var(--border);
}
td small {
  display: block;
  font-size: 9px;
  color: var(--dim);
  margin-top: 4px;
}
.empty-number {
  font-size: 30px;
  color: #b0a5c5;
  font-weight: 400;
}
.progress-track {
  height: 4px;
  border-radius: 3px;
  background: #ffffff08;
  margin: 14px 0 5px;
}
.progress-track span {
  display: block;
  height: 100%;
  background: #a98aff;
  border-radius: 3px;
}
.link-button {
  color: var(--accent);
  font-size: 11px;
  border: 0;
  background: none;
  padding: 0;
}
.checklist {
  padding: 0 24px 15px;
}
.checklist .row {
  padding: 14px 0;
}
.square {
  border: 1px solid #a58aff3b;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 10px;
}
.tag-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.utm-result {
  border: 1px solid #a58aff30;
  border-radius: 10px;
  background: #a58aff09;
  padding: 18px;
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  color: #d3c4fa;
}
.empty-chart {
  height: 190px;
  position: relative;
  margin: 0 24px 15px;
  border-bottom: 1px solid #ffffff16;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 46px,
    #ffffff08 47px,
    transparent 48px
  );
  display: flex;
  justify-content: center;
  align-items: center;
}
.empty-chart span {
  padding: 12px 18px;
  background: #100e20;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
  color: var(--muted);
}
.footer {
  display: flex;
  justify-content: space-between;
  color: #676071;
  font-size: 9px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  z-index: 100;
  background: #231c37;
  border: 1px solid #bba6ff55;
  border-radius: 10px;
  padding: 14px 22px;
  color: #e0d5fc;
  font-size: 12px;
  box-shadow: 0 10px 50px #0007;
  transition: 0.2s;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 30%, #30204455, transparent 55%), #080713;
}
.login-panel {
  width: min(420px, 90vw);
  padding: 35px;
}
.login-panel .wordmark {
  margin-bottom: 65px;
}
.login-panel h1 {
  margin-top: 15px;
  font-size: 37px;
}
.login-panel p {
  font-size: 12px;
  margin: 19px 0 30px;
}
.login-panel .btn {
  width: 100%;
  justify-content: space-between;
  margin-top: 5px;
}
.login-panel .tiny {
  margin-top: 25px;
  text-align: center;
}
.subview {
  display: none;
}
.subview.active {
  display: block;
}
.code {
  font-family: ui-monospace, monospace;
}
.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1600px) {
  .content {
    padding: 40px 50px;
  }
  .topbar {
    padding: 0 50px;
  }
  .hero {
    min-height: 210px;
  }
}
@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 208px 1fr;
  }
  .sidebar {
    width: 208px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .wordmark {
    font-size: 16px;
  }
  .content {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .grid.two {
    grid-template-columns: 1.2fr 1fr;
  }
  .ai-layout {
    grid-template-columns: 1fr 275px;
  }
  .orb {
    right: 25px;
    opacity: 0.6;
  }
  .hero h2 {
    font-size: 24px;
  }
  .inbox {
    grid-template-columns: 220px 1fr;
  }
  .step {
    font-size: 9px;
    gap: 5px;
  }
}
@media (max-width: 960px) {
  .grid.four {
    grid-template-columns: 1fr 1fr;
  }
  .grid.two,
  .ai-layout {
    grid-template-columns: 1fr;
  }
  .grid.three {
    grid-template-columns: 1fr 1fr;
  }
  .page-head {
    align-items: flex-start;
  }
  .hero {
    min-height: 185px;
  }
  .preview-card {
    aspect-ratio: 1.6;
    max-height: 330px;
  }
  .orb {
    right: 40px;
  }
  .top-actions .muted {
    display: none;
  }
  .steps {
    gap: 9px;
    flex-wrap: wrap;
  }
  .step {
    font-size: 10px;
  }
  .inbox {
    grid-template-columns: 230px 1fr;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 236px;
    box-shadow: 20px 0 80px #0008;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-menu {
    display: flex;
  }
  .topbar {
    height: 61px;
    padding: 0 18px;
  }
  .breadcrumb {
    gap: 8px;
    font-size: 10px;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions .icon-button {
    display: none;
  }
  .mode {
    font-size: 8px;
    padding: 5px 7px;
  }
  .content {
    padding: 25px 18px;
  }
  .page-head {
    display: block;
    margin-bottom: 23px;
  }
  h1 {
    font-size: 28px;
  }
  .page-head p {
    font-size: 11px;
    line-height: 1.7;
  }
  .page-head > .actions,
  .page-head > .btn {
    margin-top: 16px;
  }
  .grid {
    gap: 12px;
  }
  .grid.three,
  .grid.equal {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 23px;
    min-height: 210px;
  }
  .hero h2 {
    font-size: 24px;
    max-width: 210px;
  }
  .hero p {
    max-width: 230px;
    font-size: 11px;
  }
  .orb {
    right: -55px;
    width: 140px;
    height: 140px;
    opacity: 0.5;
  }
  .stat {
    padding: 17px;
    min-height: 120px;
  }
  .stat .label {
    font-size: 10px;
  }
  .stat .value {
    font-size: 25px;
  }
  .stat .foot {
    font-size: 9px;
  }
  .section-title {
    margin-top: 23px;
  }
  .section-title h2 {
    font-size: 16px;
  }
  .section-title span {
    font-size: 9px;
  }
  .workflow {
    min-height: 160px;
    padding: 20px;
  }
  .workflow .icon-square {
    margin-bottom: 13px;
  }
  .workflow p {
    max-width: none;
  }
  .channel-bar {
    flex-wrap: wrap;
  }
  .channel-bar .btn {
    margin-left: 48px;
  }
  .tabs {
    gap: 20px;
  }
  .tab {
    font-size: 11px;
  }
  .inbox {
    display: block;
  }
  .inbox-list {
    border-right: 0;
  }
  .conversation:not(.selected) {
    display: none;
  }
  .conversation {
    padding: 14px;
  }
  .chat-head {
    padding: 15px;
  }
  .chat-body {
    padding: 18px 15px;
  }
  .bubble {
    max-width: 90%;
    font-size: 11px;
  }
  .composer {
    margin: 14px;
  }
  .bottom-meta {
    gap: 10px;
    flex-wrap: wrap;
  }
  .panel.pad {
    padding: 20px;
  }
  .panel-head {
    padding: 19px 20px 15px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 10px;
    margin-bottom: 22px;
  }
  .step {
    font-size: 9px;
  }
  .step span {
    width: 21px;
    height: 21px;
  }
  .step:not(.active) .step-label {
    display: none;
  }
  .preview-card {
    aspect-ratio: 1;
  }
  .ai-layout {
    gap: 12px;
  }
  .segmented button {
    font-size: 9px;
    padding: 9px 3px;
  }
  .row {
    padding: 15px 20px;
  }
  .footer {
    gap: 20px;
    font-size: 8px;
  }
  .footer span:last-child {
    max-width: 110px;
    text-align: right;
  }
  .notice {
    font-size: 10px;
  }
  .channel-bar .grow {
    min-width: 170px;
  }
  .login-panel {
    padding: 20px;
  }
}
/* Keep long native controls inside their grid tracks. */
.grid > *,
.ai-layout > *,
.form-grid > * {
  min-width: 0;
}
select,
input,
textarea {
  max-width: 100%;
}
.panel.pad > .channel-bar {
  flex-wrap: wrap;
}
.panel.pad > .channel-bar .grow {
  min-width: 190px;
}
.panel.pad > .channel-bar > .pill {
  margin-left: 48px;
}
* {
  scrollbar-color: #393044 #0b0916;
  scrollbar-width: thin;
}
@media (max-width: 700px) {
  .breadcrumb > a,
  .breadcrumb > .dim {
    display: none;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .mode {
    white-space: nowrap;
  }
  .grid.two,
  .grid.equal,
  .grid.three,
  .ai-layout,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dropzone input {
    max-width: 100%;
    min-width: 0;
  }
  .actions {
    flex-wrap: wrap;
  }
  .tabs {
    scrollbar-width: none;
  }
  .btn,
  .choice,
  .segmented button {
    min-height: 44px;
  }
  .panel.pad > .channel-bar .grow {
    min-width: 150px;
  }
  .sidebar:not(.open) {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
}
/* Content Factory: visual concept, reusing the Hub's tokens and surfaces. */
.sidebar nav {
  overflow-y: auto;
  min-height: 0;
}
.sidebar-bottom {
  flex-shrink: 0;
}
.factory-disclaimer {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  padding: 10px 0 20px;
}
.factory-tabs {
  gap: 23px;
}
.factory-tabs .tab {
  font-size: 11px;
}
.factory-hero {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 29px 34px;
  height: 226px;
  border: 1px solid #b2a1ff24;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 85% 40%, #70518e22, transparent 65%), #151021;
  overflow: hidden;
}
.factory-hero h2 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.7px;
  margin: 12px 0;
}
.factory-hero p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.format-stack {
  width: 420px;
  position: relative;
  flex-shrink: 0;
  align-self: stretch;
}
.format-tile {
  position: absolute;
  top: 5px;
  width: 135px;
  height: 190px;
  border-radius: 9px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px #0003;
}
.format-tile span {
  font-size: 7px;
  letter-spacing: 1.2px;
}
.format-tile b {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  margin-top: 24px;
  letter-spacing: -0.7px;
}
.format-tile i {
  font-size: 8px;
  font-style: normal;
  margin-top: auto;
  opacity: 0.7;
}
.tile-back {
  background: #dce6dc;
  color: #24473d;
  right: 4px;
  transform: rotate(10deg);
  top: 19px;
}
.tile-mid {
  background: #24473d;
  color: #f7f7f2;
  right: 125px;
  transform: rotate(1deg);
  top: 0;
}
.tile-front {
  background: #f7f7f2;
  color: #24473d;
  right: 250px;
  transform: rotate(-8deg);
  top: 19px;
}
.play-symbol {
  position: absolute;
  right: 18px;
  bottom: 35px;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 1px solid #24473d33;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.factory-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.factory-kpi-grid .stat {
  min-height: 107px;
  padding: 17px 20px;
}
.factory-kpi-grid .stat .value {
  font-size: 23px;
  margin-top: 9px;
}
.factory-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.factory-column {
  padding: 13px;
  background: #ffffff02;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 270px;
  min-width: 0;
}
.factory-column-head {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.factory-column-head .pill {
  font-size: 8px;
  padding: 2px 5px;
}
.factory-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 15px;
  background: #171225;
  border: 1px solid #ffffff12;
  border-radius: 9px;
  color: var(--text);
  margin-top: 10px;
}
.factory-card.featured {
  border-color: #b69cff55;
  background: linear-gradient(135deg, #a688ff13, #141020);
}
.factory-card:hover {
  border-color: #b1a1ff99;
}
.factory-card-code {
  font-size: 8px;
  color: #a493bd;
  letter-spacing: 0.8px;
  display: flex;
  justify-content: space-between;
}
.factory-card h3 {
  font-size: 13px;
  line-height: 1.5;
  margin: 13px 0;
}
.factory-card .pill {
  font-size: 8px;
  padding: 3px 5px;
}
.factory-card-foot {
  font-size: 9px;
  color: #93889e;
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.factory-board-note {
  padding: 22px 8px;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.8;
}
.factory-board-empty {
  height: 203px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px dashed #b29eff1e;
  border-radius: 8px;
  padding: 18px;
}
.factory-board-empty svg {
  width: 21px;
  height: 21px;
  color: #827594;
  margin-bottom: 17px;
}
.factory-board-empty h3 {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.factory-board-empty p {
  font-size: 9px;
  color: var(--dim);
  line-height: 1.7;
  margin-top: 10px;
}
.factory-reuse {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 10px;
  border: 1px solid var(--border);
  padding: 15px 20px;
  border-radius: 10px;
  flex-wrap: wrap;
}
.factory-reuse a {
  color: var(--accent);
}
.factory-material-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 0 0 23px;
}
.factory-material-title h2 {
  font-size: 23px;
  margin: 9px 0;
}
.factory-material-title p {
  font-size: 11px;
  color: var(--muted);
}
.factory-local-tabs {
  display: flex;
  width: 560px;
  max-width: 100%;
  gap: 8px;
  margin-bottom: 22px;
}
.factory-local-tabs .choice {
  min-height: 38px;
}
.factory-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}
.factory-panel-heading h2 {
  font-size: 16px;
}
.factory-source {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.factory-source .square {
  flex-shrink: 0;
}
.factory-source h3 {
  font-size: 12px;
}
.factory-source p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 10px;
  line-height: 1.7;
}
.factory-inline-note {
  font-size: 10px;
  color: var(--dim);
  line-height: 1.7;
}
.factory-video-placeholder {
  height: 415px;
  max-width: 300px;
  margin: 0 auto;
  padding: 23px;
  background: #e6ecdf;
  color: #24473d;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.factory-video-placeholder:before {
  content: "";
  width: 190px;
  height: 190px;
  border: 28px solid #24473d0b;
  border-radius: 50%;
  position: absolute;
  right: -100px;
  top: 110px;
}
.factory-video-placeholder > .eyebrow {
  color: #486556;
  font-size: 7px;
  letter-spacing: 1px;
}
.factory-frame-number {
  font-size: 10px;
  letter-spacing: 3px;
  color: #536a5b;
  margin-bottom: 23px;
}
.factory-video-placeholder h2 {
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -1px;
}
.factory-video-placeholder p {
  font-size: 11px;
  color: #627969;
  margin-top: 20px;
}
.factory-video-placeholder > span:last-child {
  font-size: 8px;
  letter-spacing: 1px;
}
.factory-video-play {
  width: 43px;
  height: 43px;
  border: 1px solid #24473d33;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 23px;
  margin-top: 20px;
}
.factory-scene {
  display: flex;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
}
.factory-scene > span {
  font-size: 10px;
  color: var(--accent);
  white-space: nowrap;
}
.factory-scene h3 {
  font-size: 12px;
}
.factory-scene p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.factory-variant h2 {
  font-size: 19px;
  margin: 18px 0;
}
.factory-variant > p {
  min-height: 90px;
  font-size: 14px;
  line-height: 1.7;
  color: #ccc1df;
}
.factory-variant > .btn {
  margin-top: 20px;
}
.factory-version {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  flex-wrap: wrap;
}
.factory-version h3 {
  font-size: 12px;
}
.factory-version p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.factory-person-art {
  height: 164px;
  background:
    radial-gradient(circle at 50% 45%, #b1a1ff19, transparent 65%), #151023;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}
.factory-person-art > span {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--dim);
}
.factory-person-monogram {
  width: 70px;
  height: 70px;
  border: 1px solid #b1a1ff33;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 400;
  color: #bfacd9;
  background: #b1a1ff06;
}
.factory-person-monogram svg {
  height: 28px;
  width: 28px;
}
.factory-person-art.alternate {
  background:
    radial-gradient(circle at 50% 45%, #a690aa26, transparent 65%), #151023;
}
.factory-person-art.footage {
  background:
    radial-gradient(circle at 50% 45%, #8eaa9022, transparent 65%), #151023;
}
.factory-person-info {
  padding: 21px;
}
.factory-person-info h2 {
  font-size: 16px;
}
.factory-person-info > p {
  font-size: 11px;
  min-height: 55px;
  color: var(--muted);
  margin: 10px 0 17px;
}
.factory-person-info .detail-row {
  font-size: 10px;
  gap: 10px;
}
.factory-person-info .btn {
  width: 100%;
  margin-top: 20px;
}
.factory-job-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.factory-job-line h3 {
  font-size: 12px;
}
.factory-job-line p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.factory-gates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.factory-gate {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff02;
}
.factory-gate > span {
  font-size: 10px;
  color: var(--dim);
}
.factory-gate p {
  font-size: 11px;
  color: var(--muted);
}
.factory-gate.current {
  background: #b1a1ff10;
  border-color: #b1a1ff44;
}
.factory-gate.current > span,
.factory-gate.current p {
  color: #d1c1ef;
}
.factory-package-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.factory-package-row > span {
  display: grid;
  place-items: center;
  background: #b1a1ff0b;
  border: 1px solid #b1a1ff22;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  font-size: 9px;
  color: var(--accent);
  flex-shrink: 0;
}
.factory-package-row > div {
  flex: 1;
}
.factory-package-row h3 {
  font-size: 12px;
}
.factory-package-row p {
  font-size: 10px;
  color: var(--dim);
  margin-top: 3px;
}
.factory-package-row > svg {
  width: 15px;
  height: 15px;
  color: var(--dim);
}
.factory-publication h3 {
  font-size: 11px;
}
.factory-publication p {
  font-size: 10px;
  color: var(--dim);
  margin-top: 5px;
}
.factory-integration {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.factory-integration .icon-square {
  margin: 0;
  flex-shrink: 0;
}
.factory-integration > div:nth-child(2) {
  flex: 1;
}
.factory-integration h3 {
  font-size: 12px;
}
.factory-integration p {
  font-size: 10px;
  color: var(--dim);
  margin-top: 4px;
}
@media (max-width: 1100px) {
  .factory-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .format-stack {
    width: 320px;
  }
  .format-tile {
    width: 110px;
    height: 175px;
  }
  .tile-front {
    right: 205px;
  }
  .tile-mid {
    right: 100px;
  }
  .format-tile b {
    font-size: 20px;
  }
  .factory-hero {
    padding: 25px;
  }
  .factory-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .factory-tabs {
    gap: 18px;
  }
}
@media (max-width: 700px) {
  .factory-disclaimer {
    align-items: flex-start;
    font-size: 9px;
    gap: 9px;
  }
  .factory-hero {
    height: auto;
    min-height: 380px;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }
  .factory-hero h2 {
    font-size: 27px;
  }
  .format-stack {
    height: 165px;
    width: 100%;
    max-width: 315px;
    align-self: center;
  }
  .format-tile {
    width: 98px;
    height: 145px;
    padding: 12px;
  }
  .format-tile b {
    font-size: 18px;
    margin-top: 16px;
  }
  .format-tile span {
    font-size: 6px;
  }
  .format-tile i {
    font-size: 7px;
  }
  .tile-front {
    right: 190px;
    top: 12px;
  }
  .tile-mid {
    right: 94px;
  }
  .tile-back {
    right: 0;
    top: 12px;
  }
  .play-symbol {
    width: 25px;
    height: 25px;
    font-size: 15px;
    bottom: 26px;
    right: 12px;
  }
  .factory-board {
    grid-template-columns: minmax(0, 1fr);
  }
  .factory-column {
    min-height: 200px;
  }
  .factory-kpi-grid {
    gap: 10px;
  }
  .factory-kpi-grid .stat {
    padding: 15px;
  }
  .factory-kpi-grid .label {
    font-size: 10px;
  }
  .factory-material-title {
    display: block;
  }
  .factory-material-title h2 {
    font-size: 22px;
  }
  .factory-material-title > .tag-list,
  .factory-material-title > .pill {
    margin-top: 15px;
  }
  .factory-local-tabs .choice {
    font-size: 9px;
    min-height: 44px;
  }
  .factory-gates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .factory-gate {
    padding: 12px 10px;
  }
  .factory-gate p {
    font-size: 10px;
  }
  .factory-variant > p {
    min-height: 60px;
  }
  .factory-reuse {
    gap: 15px;
  }
  .factory-reuse > span {
    width: 100%;
  }
  .factory-video-placeholder {
    width: 100%;
    max-width: 300px;
  }
  .factory-panel-heading {
    flex-wrap: wrap;
  }
  .factory-person-info > p {
    min-height: auto;
  }
  .factory-tabs .tab {
    min-height: 44px;
  }
  .factory-integration > .link-button {
    margin-left: 46px;
  }
}
/* Live workspace */
.work-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
}
.work-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  width: 100%;
  margin: 0;
}
.work-search svg {
  width: 18px;
  flex: none;
}
.work-search input {
  margin: 0;
}
.work-empty {
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.work-empty p {
  color: var(--dim);
  max-width: 370px;
}
.work-empty .icon-square {
  margin-bottom: 8px;
}
.work-loading {
  padding: 60px;
  color: var(--dim);
}
.work-list-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
}
.work-list-row:last-child {
  border: 0;
}
.work-list-row h3 {
  margin: 4px 0;
}
.work-list-row a.grow {
  min-width: 0;
  overflow-wrap: anywhere;
}
.work-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.work-column {
  background: #ffffff02;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 300px;
  padding: 14px;
}
.work-column-head {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
}
.work-column-head h3 {
  font-size: 12px;
  color: var(--muted);
}
.work-column-head span {
  font-size: 11px;
  color: var(--dim);
}
.work-column-empty {
  border: 1px dashed var(--border);
  border-radius: 9px;
  padding: 45px 0;
  text-align: center;
  color: var(--dim);
  font-size: 12px;
}
.work-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.work-card:hover {
  border-color: #b1a1ff55;
}
.work-card h3 {
  font-size: 14px;
  margin: 10px 0 22px;
}
.work-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.work-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.work-editor fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.work-editor input,
.work-editor select,
.work-editor textarea {
  width: 100%;
}
.work-editor input[type="checkbox"] {
  width: 16px;
  margin: 0;
  accent-color: var(--accent);
  flex: none;
}
.work-savebar {
  display: flex;
  gap: 20px;
  align-items: center;
  position: sticky;
  bottom: 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 20px 0 0;
  margin-top: 24px;
}
.work-sources {
  display: grid;
  gap: 12px;
}
.work-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
  color: var(--muted);
  font-size: 12px;
}
.work-check small {
  display: block;
  color: var(--dim);
  margin-top: 4px;
}
.work-check input {
  margin-top: 2px !important;
}
.work-details {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  margin-top: 14px;
}
.work-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}
.work-details[open] summary {
  margin-bottom: 14px;
}
.work-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.work-actions .btn {
  justify-content: center;
}
.work-comment {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.work-comment small {
  display: block;
  color: var(--dim);
  margin-top: 8px;
  font-size: 10px;
}
.work-file {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.work-upload {
  width: max-content;
  margin: 16px 0 8px;
}
.work-trash {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  padding: 12px 4px;
}
.work-trash svg {
  width: 16px;
  height: 16px;
}
.work-trash span {
  margin-left: auto;
}
.work-dialog {
  background: var(--panel);
  border: 1px solid #b1a1ff44;
  border-radius: 18px;
  color: var(--text);
  padding: 28px;
  width: min(600px, calc(100vw - 32px));
  max-height: 88vh;
  overflow: auto;
}
.work-dialog::backdrop {
  background: #03020bc9;
  backdrop-filter: blur(5px);
}
.work-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.work-dialog .icon-button {
  font-size: 25px;
}
.work-result {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--bg);
  padding: 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.7;
  max-height: 450px;
  overflow: auto;
}
.work-mono {
  font-family: monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.work-narrow {
  max-width: 600px;
}
.work-aside .panel-head {
  padding: 0 0 16px;
}
.work-aside svg {
  width: 16px;
  height: 16px;
}
.top-actions form {
  margin: 0;
}
.work-editor label {
  margin-bottom: 18px;
}
.work-editor .work-check {
  margin: 10px 0;
}
.work-dialog label {
  display: block;
  margin-bottom: 16px;
}
.work-dialog input,
.work-dialog textarea {
  width: 100%;
}
.work-dialog .actions {
  flex-wrap: wrap;
}
.work-dialog .help a,
.work-sources a {
  color: var(--accent);
}
@media (max-width: 1150px) {
  .work-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .work-editor {
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr);
  }
}
@media (max-width: 780px) {
  .work-board {
    grid-template-columns: 1fr 1fr;
  }
  .work-editor {
    grid-template-columns: 1fr;
  }
  .work-editor-head .actions {
    gap: 8px;
  }
  .work-list-row {
    padding: 18px 16px;
    gap: 10px;
  }
  .work-list-row .pill {
    max-width: 100px;
    white-space: normal;
  }
  .work-savebar {
    gap: 12px;
  }
  .work-toolbar {
    flex-wrap: wrap;
  }
  .work-dialog {
    padding: 20px;
  }
  .work-column {
    min-height: 190px;
  }
  .work-column-head {
    min-height: 50px;
  }
  .work-editor input,
  .work-editor select {
    min-width: 0;
  }
  .work-search input {
    min-width: 0;
  }
}
@media (max-width: 450px) {
  .work-board {
    grid-template-columns: 1fr;
  }
  .work-column {
    min-height: 160px;
  }
  .work-column-empty {
    padding: 20px;
  }
  .work-savebar .help {
    font-size: 10px;
  }
  .work-editor-head {
    align-items: flex-start;
  }
  .work-dialog .form-grid {
    grid-template-columns: 1fr;
  }
}
