/* The black Plans panel sets the surface for the ONE interface. */
:root {
  --one-surface: #000;
  --one-surface-border: #262626;
  --one-surface-text: #fff;
  --one-surface-muted: #b6b6b6;
  --one-surface-control: #191919;
  --one-surface-hover: #292929;
  --one-surface-shadow: 0 24px 70px -32px rgba(0, 0, 0, .8);
}

:root[lang] :is(
  .plansSheet, .dialog, .signinCard, .githubProject, .panel, .scnForm,
  .scnOut, .compareColumn, .card, .stage, .sharedItem, .shareBar,
  .installBlock, .installBrowser, .vitPanel, .legalContent, .editorPanel,
  .editorStage, .videoStage, .timeline, .editorNote, .findBlock
) {
  --mist: var(--one-surface-muted);
  --line: var(--one-surface-border);
  --tint: var(--one-surface-control);
  --tint-hover: var(--one-surface-hover);
  background-color: var(--one-surface);
  border-color: var(--one-surface-border);
  color: var(--one-surface-text);
  box-shadow: inset 0 0 0 1px var(--one-surface-border), var(--one-surface-shadow);
}

:root[lang] .frame .composer {
  --pane-ink: var(--one-surface-text);
  --pane-muted: var(--one-surface-muted);
  --mist: var(--one-surface-muted);
  --soft: var(--one-surface-control);
  --soft-hover: var(--one-surface-hover);
  background: var(--one-surface);
  color: var(--one-surface-text);
  box-shadow: inset 0 0 0 1px var(--one-surface-border), var(--one-surface-shadow);
}

:root[lang] .frame .composer:focus-within {
  background: var(--one-surface);
  box-shadow: inset 0 0 0 1px #636363, var(--one-surface-shadow);
}

:root[lang] .composer .modelButton,
:root[lang] .composer .projectMark:not(.isStatic) {
  background: var(--one-surface-control);
  box-shadow: inset 0 0 0 1px var(--one-surface-border);
}

:root[lang] .composer .modelButton:hover,
:root[lang] .composer .projectMarkClear:hover {
  background: var(--one-surface-hover);
}

:root[lang] .composer select.option {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b6b6b6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
}

:root[lang] select.option option { background: var(--one-surface-control); }
:root[lang] .mode[aria-checked="true"],
:root[lang] .composer .generate:not(:disabled) {
  background: #fff;
  color: #141414;
  box-shadow: none;
}
:root[lang] .composer .generate:hover:not(:disabled) { background: #e6e6e6; }
:root[lang] .composer .generate:disabled {
  background: var(--one-surface-control);
  color: var(--one-surface-muted);
}

:root[lang] .composerNote:not(.isError),
:root[lang] .templates .chip {
  background: var(--one-surface);
  color: var(--one-surface-text);
  box-shadow: inset 0 0 0 1px var(--one-surface-border);
}
:root[lang] .templates .chip:hover { background: var(--one-surface-control); }
:root[lang] .barEnd {
  background: var(--one-surface);
  box-shadow: inset 0 0 0 1px var(--one-surface-border);
}
:root[lang] .barEnd :is(.plansLink, .languageButton, .statusButton, .themeButton) {
  color: var(--one-surface-muted);
}
:root[lang] .barEnd .plansLink[aria-current="page"] { color: var(--one-surface-text); }
:root[lang] .downloadSize { color: #474747; }
.frame:has(main[data-view="home"]) .learnFooter a { color: #141414; }
.frame:has(main[data-view="home"]) .learnFooter a:focus-visible { outline-color: #141414; }
.frame:has(main[data-view="home"]) .footerTheme { color: #141414; }
.frame:has(main[data-view="home"]) .footerTheme:focus-visible { outline-color: #141414; }

@media (prefers-contrast: more) {
  :root { --one-surface-border: #888; --one-surface-muted: #eee; }
}
