/* Approved R7 extraction. Context stylesheet applies only to account/dashboard entry points. */
:root {
  --sans: "Anek Latin","Segoe UI",system-ui,sans-serif;
  --serif: "Source Serif 4",Georgia,"Times New Roman",serif;
  --mono: "JetBrains Mono",ui-monospace,Consolas,monospace;
  --identity-font: "Space Mono",monospace;
  --paper: #f3f1ea;
  --surface: #fbfaf7;
  --surface-alt: #f6f4ee;
  --surface-high: #fffefa;
  --ink: #242923;
  --ink-body: #373c35;
  --ink-soft: #646a62;
  --ink-faint: #666c64;
  --line: #dedfd5;
  --line-strong: #b9bfb1;
  --hover: #eeeee6;
  --ai: #18776b;
  --ai-soft: #e7f0eb;
  --ai-line: #bfd6cc;
  --human: #98533a;
  --human-soft: #f0e5dd;
  --human-line: #d9b4a0;
  --error: #a23e3a;
  --error-soft: #f6e8e4;
  --nav-bg: #fbfaf7;
  --radius: 3px;
  --fmt-red: #b23a2f;
  --fmt-blue: #3b6ea5;
  --fmt-violet: #6d5a8c;
  --fmt-slate: #52796f;
  --fmt-green: #4c7f3f;
  --fmt-ochre: #9a6217;
  --fmt-plum: #9a4a7a;
  --fmt-cyan: #2a7f8f;
  --popup-shadow: 0 16px 42px -12px #18201938;
  --label-size: 11px;
  color-scheme: light;
}

[data-theme=dark] {
  --paper: #101916;
  --surface: #17221d;
  --surface-alt: #1c2822;
  --surface-high: #223028;
  --ink: #e9e9df;
  --ink-body: #d3d9cf;
  --ink-soft: #a4b1a5;
  --ink-faint: #8d9d8f;
  --line: #304035;
  --line-strong: #4e6555;
  --hover: #25362b;
  --ai: #79bdac;
  --ai-soft: #1c332c;
  --ai-line: #345a4b;
  --human: #dda285;
  --human-soft: #332d25;
  --human-line: #6a4d3c;
  --error: #efa49c;
  --error-soft: #3b2925;
  --nav-bg: #17221d;
  --fmt-red: #d98a7d;
  --fmt-blue: #7fa8d0;
  --fmt-violet: #a08cc0;
  --fmt-slate: #8aa9a0;
  --fmt-green: #85b377;
  --fmt-ochre: #d2a054;
  --fmt-plum: #c489ae;
  --fmt-cyan: #6fb5c2;
  --popup-shadow: 0 16px 42px -12px #0009;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,input,select {
  font: inherit;
  color: inherit;
}

button,a,input {
  touch-action: manipulation;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

button:disabled {
  cursor: default;
  opacity: .5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,a {
  -webkit-tap-highlight-color: transparent;
}

button,a,input {
  transition: background-color .15s,border-color .15s,color .15s;
}

img,svg {
  display: block;
  max-width: 100%;
}

svg {
  flex-shrink: 0;
}

h1,h2,h3,p,blockquote,figure {
  margin: 0;
}

h1,h2,h3 {
  font: 400 28px/1.08 var(--serif);
  letter-spacing: -.049em;
  font-kerning: normal;
  font-optical-sizing: auto;
}

strong,b {
  font-weight: 500;
}

em {
  font-family: var(--serif);
  font-weight: 400;
}

::selection {
  background: var(--ai-line);
}

:focus-visible {
  outline: 2px solid var(--ai);
  outline-offset: 3px;
}

button:focus:not(:focus-visible),a:focus:not(:focus-visible) {
  outline: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.num {
  font: 400 11px/1.5 var(--mono);
  font-variant-numeric: tabular-nums;
}

.lbl,.eyebrow {
  font: 400 11px/1.6 var(--mono);
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 1000;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--ai);
}

.skip-link:focus {
  top: 12px;
}

.icon-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  font: 300 26px/1 var(--sans);
  border: 1px solid transparent;
  border-radius: 3px;
}

.icon-button:hover {
  background: var(--hover);
}

.study-trigger {
  position: fixed;
  bottom: 14px;
  right: 16px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 13px;
  color: var(--ink-soft);
  box-shadow: 0 2px 10px #1111;
}

.study-trigger:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}

.study-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--human);
}

dialog {
  border: 1px solid var(--line-strong);
  padding: 28px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--popup-shadow);
  border-radius: 4px;
  max-width: calc(100vw - 28px);
  width: 680px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

dialog::backdrop {
  background: rgb(10 20 15 / .5);
}

dialog h2 {
  font-size: 32px;
  line-height: 1.15;
  margin-top: 8px;
}

.dialog-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.dialog-lead {
  color: var(--ink-soft);
  margin: 18px 0 24px;
  font-size: 16px;
  max-width: 54ch;
}

.study-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proto-sep {
  height: 1px;
  background: var(--line);
}

.proto-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proto-group button {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 8px 12px;
  min-height: 38px;
  font-size: 14px;
}

.proto-group button[aria-pressed=true] {
  background: var(--ai-soft);
  color: var(--ai);
  border-color: var(--ai);
}

.study-bottom {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--ink-soft);
  font-size: 13px;
}

.study-bottom p {
  margin-top: 8px;
}

#detail-body {
  padding-top: 24px;
}

#detail-body p {
  margin-bottom: 16px;
  color: var(--ink-soft);
}

#detail-body .detail-value {
  color: var(--ink);
  font-size: 18px;
  overflow-wrap: anywhere;
}

#detail-body .local-path {
  padding: 12px;
  background: var(--paper);
  font: 12px/1.6 var(--mono);
  overflow-wrap: anywhere;
}

#detail-body .detail-label {
  margin-top: 16px;
  font: 11px/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

#toast {
  position: fixed;
  bottom: 64px;
  right: 16px;
  max-width: min(360px,calc(100vw - 32px));
  padding: 12px 16px;
  z-index: 150;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--popup-shadow);
  font-size: 14px;
}

.wrap {
  width: calc(100% - 88px);
  max-width: 1504px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  line-height: 1;
}

.wordmark {
  font: 400 36px/1 var(--serif);
  letter-spacing: -.055em;
}

.wordmark .plus {
  color: var(--human);
  font-weight: 400;
  letter-spacing: 0;
}

.step-progress {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-soft);
}

.step-progress b {
  font: 11px var(--mono);
  margin-right: 7px;
}

.step-progress [aria-current] {
  color: var(--ai);
  font-weight: 450;
}

.step-line {
  height: 1px;
  width: 27px;
  background: var(--line-strong);
}

.form-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.field-link {
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
}

.field-link:hover {
  color: var(--human);
}

.btn-arrow {
  font-size: 23px;
  line-height: 1;
}

.verify-demo {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.study-window {
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.window-head,.window-foot {
  padding: 12px 14px;
  background: var(--paper);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.window-head .lbl {
  font-size: 10px;
}

.art-frame {
  position: relative;
}

.art-frame>svg {
  width: 100%;
  height: auto;
}

.frame-label {
  position: absolute;
  left: 12px;
  top: 12px;
  font: 11px var(--mono);
  padding: 4px 7px;
  background: #25372f;
  color: #f7f5ed;
}

.window-foot {
  font-size: 12px;
  line-height: 1.4;
}

.organization {
  position: relative;
  flex: 0 1 240px;
  min-width: 130px;
}

.selected-mark {
  margin-left: auto;
  color: var(--ai);
}

[aria-checked=false] .selected-mark {
  display: none;
}

.menu-foot {
  padding: 10px 9px 6px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

.go {
  font: 10px var(--mono);
  color: var(--ink-soft);
  margin-left: auto;
}

.chip {
  display: inline-flex;
  font: 10px/1.5 var(--mono);
  letter-spacing: .025em;
  color: var(--ink-soft);
}

.chip.is-available,.chip.is-canary {
  color: var(--ai);
}

.hero-thesis {
  font: 250 22px/1.5 var(--sans);
  letter-spacing: -.014em;
  color: var(--ink-soft);
  margin-top: 16px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}

.text-link:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 14px;
  background: transparent;
  line-height: 1.4;
}

.btn:hover:not(:disabled) {
  background: var(--hover);
}

.btn.primary {
  font-weight: 400;
}

.import-row {
  display: grid;
  grid-template-columns: 16px minmax(0,1fr) auto;
  gap: 11px;
  align-items: center;
  margin-top: 12px;
}

.import-row-ic {
  color: var(--ai);
}

.import-row-title {
  display: block;
  font: 400 19px/1.35 var(--serif);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.import-row-stage {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 5px;
}

#section-studios {
  margin-bottom: 46px;
}

#section-soundbox {
  margin-top: 22px;
  border-top: 1px solid var(--line-strong);
  padding-top: 21px;
}

#section-soundbox h2 {
  font-size: 23px;
}

#section-log {
  margin-bottom: 35px;
}

.file-ic-md {
  --fc: var(--ai);
}

.file-ic-fountain {
  --fc: var(--fmt-ochre);
}

.file-ic-vtt {
  --fc: var(--fmt-cyan);
}

.file-ic-mp4 {
  --fc: var(--fmt-blue);
}

.file-ic-png {
  --fc: var(--fmt-plum);
}

.file-ic-mp3 {
  --fc: var(--fmt-cyan);
}

.file-ic-pdf {
  --fc: var(--fmt-red);
}

.skeleton {
  display: block;
  height: 13px;
  margin: 18px 0;
  background: var(--line);
  width: 85%;
  border-radius: 2px;
}

.sk-list .skeleton:nth-child(2n) {
  width: 60%;
}

.seal {
  width: 6px;
  height: 6px;
  background: var(--ai);
  border-radius: 50%;
}

@media (max-width:1250px) {
  .organization {
    flex-basis: 186px;
  }
}

@media (max-width:1050px) {
  .organization {
    flex-basis: 167px;
  }
}

@media (max-width:900px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .organization {
    flex-basis: 220px;
    max-width: 240px;
  }
  .hero-thesis {
    font-size: 20px;
  }
}

@media (max-width:680px) {
  .organization {
    max-width: none;
    flex: 1;
    min-width: 130px;
  }
  .org-menu {
    width: 280px;
    left: auto;
    right: 0;
    max-width: calc(100vw - 28px);
  }
  .hero-thesis {
    font-size: 19px;
    max-width: 28ch;
    margin-top: 13px;
  }
  .import-row {
    grid-template-columns: 14px minmax(0,1fr);
    gap: 8px;
  }
  .import-row>.btn {
    grid-column: 2;
    justify-self: start;
    margin-top: 5px;
  }
  #section-studios {
    margin-bottom: 34px;
  }
  .study-trigger {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width:400px) {
  .wordmark {
    font-size: 32px;
  }
  .organization {
    min-width: 125px;
  }
  dialog {
    padding: 22px 19px;
  }
  dialog h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*:before,*:after {
    transition: none !important;
    animation: none !important;
  }
}