:root {
  --background: #030403;
  --surface: #0d100d;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --line: #303530;
  --accent: #4caf50;
  --accent-soft: #102713;
  --danger: #fca5a5;
  --focus: #83ee83;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
  font-size: 16px;
  color: var(--ink);
  background: var(--background);
}
* {
  box-sizing: border-box;
}
[hidden] {
  /* biome-ignore lint/complexity/noImportantStyles: Hidden controls must stay hidden at every breakpoint. */
  display: none !important;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 68% 18%, rgb(76 175 80 / 14%), transparent 26rem),
    radial-gradient(circle at 15% 12%, rgb(255 255 255 / 6%), transparent 18rem),
    linear-gradient(180deg, #050605 0%, #0a0d0a 48%, #020302 100%);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 72%);
}
button,
summary,
a,
input {
  scroll-margin-top: 11rem;
}
a {
  color: #83ee83;
  text-underline-offset: 0.2em;
}
a:hover {
  color: #d4ffd6;
}

button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  min-height: 44px;
  padding: 0.625rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  font-size: 0.8125rem;
}
button:hover {
  background: var(--accent-soft);
}
button:disabled,
button[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.6;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #030403;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-inline: 1.25rem 1.75rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
button.primary:hover {
  background: #83ee83;
}
button.quiet {
  background: transparent;
}
button.danger {
  color: #fff;
  background: #991b1b;
  border-color: #ef4444;
}
button.danger-text {
  color: var(--danger);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
button.primary:focus-visible {
  clip-path: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  overflow-wrap: anywhere;
  scroll-margin-top: 11rem;
  font-size: 2.5rem;
  letter-spacing: -0.04rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgb(76 175 80 / 22%);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
h2 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 1rem;
  margin: 0;
  overflow-wrap: anywhere;
}
p {
  line-height: 1.55;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--surface);
  color: var(--ink);
  font-weight: 400;
}
textarea {
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
}
input[type="file"] {
  padding: 0.5rem;
  font-size: 0.8125rem;
}
input::file-selector-button {
  padding: 0.5rem;
  margin-right: 0.5rem;
  border: 0;
  border-radius: 0.25rem;
  cursor: pointer;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.hint,
.meta {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}
.error:not(:empty),
.notice:not(:empty) {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}
.error:not(:empty) {
  color: var(--danger);
  background: #2d1212;
  border: 1px solid #713131;
}
.notice:not(:empty) {
  color: var(--accent);
  background: var(--accent-soft);
}
.error:empty,
.notice:empty {
  display: none;
}
.skip {
  position: fixed;
  top: -5rem;
  left: 1rem;
  padding: 0.75rem;
  background: var(--surface);
  color: var(--accent);
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}
.startup {
  margin: 3rem;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.075rem;
}
.brand img {
  object-fit: contain;
  flex-shrink: 0;
}
.brand span {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.login {
  width: min(100% - 2rem, 28rem);
  margin: 10vh auto;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--surface);
}
.login .brand {
  margin-bottom: 3rem;
}
.login h1 {
  font-size: 2rem;
}
:where(dialog) p {
  font-size: 0.9375rem;
  color: var(--muted);
}
.login > p {
  color: var(--muted);
  margin-bottom: 2rem;
}
.login button {
  width: 100%;
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: #1c251c;
  color: #b7d5b9;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}
.page-heading {
  margin-bottom: 2rem;
}
.page-heading > p:last-child {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 42rem;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.1rem;
  margin-bottom: 0.75rem;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  gap: 2rem;
  align-items: start;
}
.library {
  min-width: 0;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.count {
  font-size: 0.8125rem;
  color: var(--muted);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.toolbar input {
  font-size: 0.875rem;
}
.toolbar button {
  font-size: 0.8125rem;
}
.skill-list {
  border-top: 1px solid var(--line);
}
.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.skill-copy {
  min-width: 0;
}
.skill-copy > p {
  margin: 0.625rem 0;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.skill-copy > p.meta {
  margin-bottom: 0;
  font-size: 0.75rem;
}
.skill-row > button {
  flex-shrink: 0;
  font-size: 0.75rem;
}
.title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.import-panel {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}
.empty {
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}
dialog {
  width: min(100% - 2rem, 30rem);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--ink);
  background: var(--surface);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}
dialog::backdrop {
  background: rgb(0 0 0 / 75%);
}
dialog h2 {
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.session-toolbar,
.selection-bar,
.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.session-toolbar select {
  max-width: 20rem;
}
.selection-bar {
  justify-content: space-between;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.pagination {
  justify-content: center;
  margin-top: 2rem;
}
.session-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-block: 1.5rem;
}
.session-copy {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.session-copy h2 {
  font-size: 1rem;
  margin: 0;
}
.session-copy p {
  margin-block: 0.4rem;
}
input[type="checkbox"] {
  width: 1.25rem;
  min-height: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.check-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-direction: row;
}
.id-list {
  padding-left: 1.25rem;
  overflow-wrap: anywhere;
}
.id-list li {
  padding-block: 0.5rem;
}
.id-list .badge {
  margin-left: 0.75rem;
}
.cleanup-row {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.dialog-description {
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (max-width: 767px) {
  .primary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .session-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .session-row > button {
    margin-left: 2.25rem;
  }
  .session-copy {
    flex-basis: calc(100% - 2.25rem);
  }
}

.connection-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-block: 1.5rem;
}
.connection-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
.connection-copy h2 {
  font-size: 1rem;
  margin: 0;
}
.connection-copy p {
  margin-block: 0.5rem;
}
@media (max-width: 1100px) {
  .connection-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.provider-panel {
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem;
}
.provider-panel .actions {
  flex-wrap: wrap;
}
.provider-status {
  font-weight: 600;
}
.device-login:not(:empty) {
  margin-block: 1.5rem;
}
.device-code {
  font:
    600 1.5rem ui-monospace,
    monospace;
  letter-spacing: 0.1em;
  overflow-wrap: anywhere;
}

.chat-setup,
.chat-compose {
  max-width: 64rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
}
.chat-messages {
  max-width: 64rem;
  margin-block: 1.5rem;
}
.chat-message {
  border-left: 3px solid var(--line);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--surface);
}
.chat-user {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.chat-message h2 {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}
.chat-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.chat-compose textarea {
  font-family: inherit;
  font-size: 1rem;
}
.page-heading > .meta {
  overflow-wrap: anywhere;
}

.file-upload {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
}
.file-row {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.file-copy {
  overflow-wrap: anywhere;
}
.file-copy h2 {
  margin-bottom: 0.5rem;
}
.file-row .actions {
  justify-content: flex-start;
}

.chat-setup > select {
  margin-bottom: 1.25rem;
}

.job-form {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
}
.job-form select {
  margin-bottom: 1.25rem;
}
.jobs-grid {
  grid-template-columns: minmax(15rem, 1fr) minmax(0, 2fr);
}
.job-row,
.job-file-row {
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.job-row .meta {
  margin-top: 0.5rem;
}
.job-form .check-label {
  flex-direction: row;
  margin-block: 0.75rem;
}
.job-output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface);
  padding: 1rem;
  border: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.6;
}
@media (max-width: 1100px) {
  .jobs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.oauth-dialog .check-label {
  flex-direction: row;
  align-items: flex-start;
  overflow-wrap: anywhere;
}
.oauth-dialog p {
  overflow-wrap: anywhere;
}

.usage-content section {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  max-width: 52rem;
}
.usage-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
}
.usage-facts dt {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.usage-facts dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Shared Marc Meese shell; palette and angular accents match Video Animation Generator. */
.shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(3 4 3 / 94%);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgb(76 175 80 / 7%);
}
.header-inner,
.primary-nav,
main,
.footer-inner,
.footer-bottom {
  width: min(100%, 76rem);
  margin-inline: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
}
.header-inner .brand {
  font-size: 1.125rem;
  letter-spacing: 0;
}
.header-inner .brand span {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.private-access {
  color: var(--muted);
  font-size: 0.75rem;
}
.status-dot {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 0.5rem;
}
.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0 1.5rem 0.75rem;
}
.primary-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}
.primary-nav a:hover {
  color: #83ee83;
  background: var(--accent-soft);
}
.primary-nav a[aria-current] {
  color: #030403;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.primary-nav a:focus-visible {
  clip-path: none;
}
.menu-toggle {
  display: none;
}
main {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 1.5rem 4rem;
}
.page-heading {
  margin-bottom: 2rem;
}
.page-heading p {
  max-width: 46rem;
}
.eyebrow {
  color: #83ee83;
}
.app-footer {
  border-top: 1px solid var(--line);
  background: rgb(0 0 0 / 55%);
  padding: 1.75rem 1.5rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-inner,
.footer-bottom {
  max-width: 73rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-brand img {
  object-fit: contain;
}
.footer-brand strong {
  font-size: 0.875rem;
  font-weight: 900;
  text-transform: uppercase;
}
.footer-brand p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  max-width: 32rem;
}
.social-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  color: #d4d4d8;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
}
.social-links a:hover {
  border-color: var(--accent);
  color: #83ee83;
}
.footer-bottom {
  margin-top: 1rem;
  text-align: right;
  color: var(--muted);
  font-size: 0.6875rem;
}
.chat-setup {
  max-width: none;
  padding: 2rem;
}
.chat-options,
.chat-addons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1.5rem;
}
.option-card {
  padding: 1.25rem;
  background: rgb(0 0 0 / 25%);
  border: 1px solid var(--line);
  border-radius: 0.375rem;
}
.option-card .check-label {
  margin-bottom: 0.625rem;
}
.option-card > .hint {
  margin-bottom: 0.75rem;
}
.option-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.field-help {
  margin: 0.5rem 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
}
.field-help summary {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 36px;
  padding: 0.25rem 0.5rem;
  margin-left: -0.5rem;
  cursor: pointer;
  color: #a1a1aa;
  list-style: none;
}
.field-help summary::-webkit-details-marker {
  display: none;
}

.provider-manual {
  margin-block: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}
.provider-manual summary {
  cursor: pointer;
  padding-block: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.field-help summary:hover,
.field-help[open] summary {
  color: #83ee83;
}
.help-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}
.help-content {
  margin-top: 0.5rem;
  padding: 1rem;
  background: #141914;
  border-left: 2px solid var(--accent);
  color: #d4d4d8;
  overflow-wrap: anywhere;
}
.help-content strong {
  color: #f4f4f5;
}
.help-content p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}
.option-card .field-help {
  margin-bottom: 0;
}
.chat-addons > fieldset {
  border-top: 1px solid var(--line);
  padding-block: 1.25rem;
  margin-top: 0.5rem;
}
legend {
  font-size: 0.875rem;
  font-weight: 800;
  padding-right: 0.75rem;
}
.chat-setup > button.primary {
  margin-top: 1rem;
}
.chat-setup > [role="status"] {
  margin-top: 1rem;
  margin-bottom: 0;
}
pre,
code {
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .social-links {
    max-width: none;
    justify-content: flex-start;
  }
}
@media (max-width: 767px) {
  .field-help summary {
    min-height: 44px;
  }
  .brand {
    font-size: 1.5rem;
  }
  .header-inner {
    padding: 0.75rem 1rem;
  }
  .header-inner .brand {
    font-size: 1rem;
  }
  .header-inner .brand img {
    width: 36px;
    height: 36px;
  }
  .header-inner .brand span {
    display: none;
  }
  .header-actions {
    gap: 0.5rem;
  }
  .private-access {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .primary-nav {
    display: none;
    padding: 0 1rem 1rem;
    max-height: 65dvh;
    overflow-y: auto;
  }
  .nav-open .primary-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .primary-nav a {
    overflow-wrap: anywhere;
  }
  main {
    padding: 1.75rem 1rem 3rem;
  }
  h1 {
    font-size: 2rem;
  }
  .page-heading {
    margin-bottom: 1.5rem;
  }
  .chat-options,
  .chat-addons {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-setup,
  .import-panel,
  .provider-panel,
  .file-upload,
  .job-form {
    padding: 1.25rem;
  }
  .skill-row,
  .connection-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    flex-basis: 100%;
  }
  .login {
    padding: 1.5rem;
  }
  .social-links {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .social-links a {
    justify-content: center;
  }
  .app-footer {
    padding: 1.5rem 1rem;
  }
  .header-inner .brand {
    gap: 0.5rem;
  }
  dialog {
    padding: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
  }
}

.instance-task-create,
.instance-task-card {
  margin-block: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
}
.instance-service-url {
  overflow-wrap: anywhere;
}
.instance-task-card p:empty {
  display: none;
}
.instance-task-card details,
.instance-task-card .actions {
  margin-top: 1rem;
}
label.instance-task-toggle {
  flex-direction: row;
  align-items: center;
}
