
  /* Fullscreen watermark */
.fullscreen-watermark {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}

:fullscreen .fullscreen-watermark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-watermark::after {
  content: "TRACE";
  position: absolute;
  font-family: Arial, sans-serif;
  font-size: clamp(30px, 5vw, 75px);
  font-weight: 700;
  letter-spacing: 8px;
  color: rgba(60, 70, 60, 0.12);
  transform: rotate(-30deg);
  white-space: nowrap;
  user-select: none;
}
:root {
  font-family: Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
}

#root {
  min-height: 100vh;
}


:root {
  --navy: #101b31;
  --navy-deep: #0c1527;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-light: #eff6ff;
  --background: #f5f7fa;
  --surface: #ffffff;
  --border: #e5eaf0;
  --text: #17243b;
  --muted: #64748b;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.app {
  min-height: 100vh;
  display: flex;
  background: var(--background);
}

/* SIDEBAR */

.sidebar {
  width: 292px;
  min-width: 292px;
  min-height: 100vh;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 26px 17px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 5px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-description {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.brand-name {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.7px;
  white-space: nowrap;
}

.brand-name span {
  font-weight: 400;
}

.brand-tagline {
  font-size: 9px;
  letter-spacing: 1.45px;
  color: #aebbd0;
  white-space: nowrap;
}

.sidebar-divider {
  height: 1px;
  background: #2b3950;
  margin: 27px 4px;
}

.sidebar-section-label,
.sidebar-questions-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.65px;
  color: #91a3bd;
  padding: 0 12px;
}

.module {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 14px 12px;
  background: #1a2b46;
  border: 1px solid #30415a;
  border-radius: 10px;
}

.module-icon {
  color: #60a5fa;
  font-size: 22px;
}

.module div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.module strong {
  font-size: 13px;
  font-weight: 650;
}

.module div span {
  font-size: 11px;
  color: #aebbd0;
}

.sidebar-questions-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 34px;
  margin-bottom: 13px;
}

.question-count {
  background: #253753;
  border-radius: 5px;
  padding: 4px 7px;
  color: #cbd5e1;
  letter-spacing: 0;
}

.questions-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.question {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: #b6c2d4;
  padding: 12px 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.question:hover {
  background: #1c2d49;
  color: white;
}

.question.active {
  background: #243c62;
  color: white;
  border-color: #3b6194;
}

.question-number {
  color: #7990af;
  font-size: 10px;
  font-weight: 700;
  min-width: 20px;
}

.question.active .question-number {
  color: #93c5fd;
}

.question-name {
  flex: 1;
}

.available-dot {
  width: 6px;
  height: 6px;
  background: #60a5fa;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 26px 12px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-bottom-line {
  height: 1px;
  background: #2b3950;
  margin-bottom: 10px;
}

.sidebar-bottom > span {
  color: #94a3b8;
  font-size: 9px;
  letter-spacing: 1.1px;
}

.sidebar-bottom small {
  color: #64748b;
  font-size: 11px;
}

/* MAIN */

.main {
  flex: 1;
  min-width: 0;
  max-width: 1600px;
  margin: 0 auto;
  padding: 36px 42px 20px;
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.35px;
}

.breadcrumb-separator {
  margin: 0 11px;
  color: #a8b4c6;
}

.header h1 {
  margin: 0;
  font-size: clamp(23px, 2.4vw, 34px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -1.2px;
  color: var(--navy);
}

.header-description {
  color: var(--muted);
  font-size: 13px;
  margin: 11px 0 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 13px;
  background: var(--blue-light);
  border: 1px solid #dbeafe;
  border-radius: 30px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 650;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* CARDS */

.explanation,
.workspace {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 3px 18px rgba(16, 27, 49, 0.025);
  overflow: hidden;
}

.explanation {
  padding: 25px 28px;
  margin-bottom: 22px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.section-icon {
  width: 30px;
  height: 30px;
  background: var(--blue-light);
  border-radius: 7px;
  color: var(--blue);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: 750;
  flex-shrink: 0;
}

.section-heading h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.question-text {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: #475569;
}

/* DRAWING WORKSPACE */

.workspace {
  margin-bottom: 22px;
}

.canvas-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.canvas-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #334155;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.15px;
}

.canvas-indicator {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
}

.canvas-options {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
}

.toggle-label input {
  width: 14px;
  height: 14px;
  accent-color: var(--blue);
  cursor: pointer;
}

.drawing-container {
  background: #fff;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.coming-soon {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.coming-soon-symbol {
  color: #cbd5e1;
  font-size: 42px;
}

.coming-soon h3 {
  color: var(--navy);
  font-size: 17px;
  margin-bottom: 0;
}

.coming-soon p {
  color: var(--muted);
  font-size: 13px;
}

.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  border-top: 1px solid var(--border);
  color: #94a3b8;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1px;
}

/* CONSTRUCTION GUIDE */

.guide-heading {
  justify-content: space-between;
}

.guide-heading-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.step-badge {
  background: #f1f5f9;
  border-radius: 6px;
  color: #64748b;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.5px;
}

.guide-content {
  padding: 24px 0 10px;
}

.guide-content h3 {
  margin: 0 0 9px;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.guide-content p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.progress-heading {
  margin: 20px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #475569;
  font-size: 12px;
  font-weight: 650;
}

.progress-heading strong {
  color: var(--blue);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #e9eef5;
  border-radius: 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.control-button {
  background: #fff;
  color: #334155;
  border: 1px solid #dbe2eb;
  border-radius: 7px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 650;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.control-button:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #b8c7d8;
}

.control-button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.control-button.primary:hover:not(:disabled) {
  background: var(--blue-hover);
}

.control-button:disabled {
  opacity: 0.4;
}

/* FOOTER */

.developer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 23px 0;
  border-top: 1px solid #dfe6ef;
}

.footer-brand,
.footer-developer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand strong {
  color: var(--navy);
  font-size: 13px;
}

.footer-brand span {
  color: #94a3b8;
  font-size: 11px;
}

.footer-developer {
  text-align: right;
  align-items: flex-end;
}

.footer-developer p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.footer-developer p strong {
  color: var(--navy);
}

.footer-developer a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.footer-developer a:hover {
  text-decoration: underline;
}

/* MOBILE NAVIGATION */

.mobile-topbar {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 1050px) {
  .sidebar {
    width: 255px;
    min-width: 255px;
  }

  .main {
    padding: 30px 25px;
  }
}

@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    max-width: 85vw;
    height: 100dvh;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.2);
  }

  .sidebar.sidebar-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    background: rgba(12, 21, 39, 0.5);
  }

  .main {
    width: 100%;
    padding: 0 15px 20px;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 65px;
    margin: 0 -15px 24px;
    padding: 0 17px;
    background: var(--navy);
    color: white;
  }

  .mobile-menu-button {
    background: transparent;
    color: white;
    border: 0;
    font-size: 22px;
    padding: 6px;
  }

  .mobile-brand {
    font-size: 17px;
    font-weight: 700;
  }

  .header {
    flex-direction: column;
    gap: 15px;
  }

  .header h1 {
    font-size: 25px;
  }

  .explanation {
    padding: 20px;
  }

  .canvas-header {
    padding: 14px;
  }

  .workspace-footer {
    padding: 12px 14px;
    font-size: 8px;
  }

  .controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .control-button {
    padding: 12px 9px;
  }

  .developer-footer {
    flex-direction: column;
    text-align: center;
    gap: 17px;
  }

  .footer-developer {
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 400px) {
  .controls {
    grid-template-columns: 1fr;
  }

  .canvas-options {
    gap: 12px;
  }
}

/* Trace — Mobile usability layer.
   CSS and touch handling only; PDF vectors, drawing coordinates and
   construction order are not modified. */
@media (max-width: 760px) {
  html, body, #root { width: 100%; max-width: 100%; }
  body { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
  .app, .main { min-width: 0; }
  .sidebar {
    padding-top: calc(22px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .question { min-height: 44px; }
  .mobile-topbar {
    height: 60px;
    padding-left: max(13px, env(safe-area-inset-left, 0px));
    padding-right: max(13px, env(safe-area-inset-right, 0px));
  }
  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    touch-action: manipulation;
  }
  .main { padding-left: 12px; padding-right: 12px; }
  .header { margin-bottom: 15px; }
  .header h1 { font-size: clamp(20px, 5.8vw, 25px); line-height: 1.25; overflow-wrap: anywhere; }
  .header-description { margin-top: 8px; line-height: 1.55; }
  .eyebrow { font-size: 9px; line-height: 1.7; margin-bottom: 9px; }
  .breadcrumb-separator { margin: 0 6px; }
  .status { padding: 7px 11px; }
  .explanation { padding: 16px; margin-bottom: 14px; }
  .question-text { margin-top: 10px; font-size: 13px; line-height: 1.65; }
  .workspace { margin-bottom: 14px; }
  .canvas-header { padding: 12px; gap: 9px; }
  .canvas-options { width: 100%; gap: 12px; justify-content: flex-start; }
  .toggle-label { min-height: 36px; font-size: 12px; gap: 8px; touch-action: manipulation; }
  .toggle-label input { width: 17px; height: 17px; }
  .eg-viewer-viewport:not(:fullscreen) { min-height: 220px !important; height: clamp(220px, 42svh, 360px) !important; }
  .eg-viewer-toolbar { gap: 8px !important; padding: 9px 10px 0; margin-bottom: 8px !important; }
  .eg-viewer-toolbar-actions { min-width: 0; }
  .eg-viewer-toolbar-actions button,
  .eg-viewer-step-actions button { min-height: 44px; touch-action: manipulation; }
  .controls { gap: 8px; margin-top: 16px; }
  .control-button { min-height: 44px; line-height: 1.35; touch-action: manipulation; }
  .guide-content { padding-top: 15px; }
  .guide-content h3 { font-size: 16px; }
  .guide-content p { font-size: 12px; }
  .workspace-footer { flex-wrap: wrap; line-height: 1.5; gap: 4px 12px; }
  .developer-footer { margin-top: 20px; }
  .eg-viewer-fullscreen { padding: 6px !important; padding-top: max(6px, env(safe-area-inset-top, 0px)) !important; padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)) !important; }
  .eg-viewer-fullscreen .eg-viewer-toolbar { padding: 0 2px; margin-bottom: 5px !important; }
  .eg-viewer-fullscreen .eg-viewer-toolbar > strong { font-size: 12px !important; }
  .eg-viewer-fullscreen .eg-viewer-toolbar-actions {
    width: 100%; display: grid !important;
    grid-template-columns: 44px 46px 44px minmax(0,1fr);
    gap: 6px !important;
  }
  .eg-viewer-fullscreen .eg-viewer-toolbar-actions > button {
    min-width: 0; min-height: 38px; padding: 6px 5px !important;
    font-size: 11px !important; overflow-wrap: anywhere; white-space: normal !important;
  }
  .eg-viewer-fullscreen .eg-viewer-toolbar-actions > button:last-child { grid-column: 1 / -1; }
  .eg-viewer-fullscreen .eg-viewer-toolbar-actions > span { align-self: center; justify-self: center; font-size: 12px !important; min-width: 0 !important; }
  .eg-viewer-fullscreen .eg-viewer-question {
    padding: 6px 9px !important; margin-bottom: 5px !important;
    max-height: 64px; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .eg-viewer-fullscreen .eg-viewer-question strong { font-size: 10px !important; margin-bottom: 2px !important; }
  .eg-viewer-fullscreen .eg-viewer-question p { font-size: 11px !important; line-height: 1.35 !important; }
  .eg-viewer-fullscreen .eg-viewer-viewport { min-height: 95px !important; flex: 1 1 0 !important; height: auto !important; }
  .eg-viewer-fullscreen .eg-viewer-step-panel { padding: 6px 2px 0 !important; }
  .eg-viewer-fullscreen .eg-viewer-step-panel > div:first-child { gap: 6px !important; margin-bottom: 4px !important; }
  .eg-viewer-fullscreen .eg-viewer-step-panel > div:first-child strong { font-size: 12px !important; }
  .eg-viewer-fullscreen .eg-viewer-step-panel > div:first-child span { font-size: 11px !important; }
  .eg-viewer-fullscreen .eg-viewer-step-panel > p {
    margin-bottom: 5px !important; font-size: 11px !important;
    line-height: 1.3 !important; max-height: 40px; overflow-y: auto;
  }
  .eg-viewer-fullscreen .eg-viewer-step-panel > div:nth-last-child(2) { height: 4px !important; margin-bottom: 7px !important; }
  .eg-viewer-fullscreen .eg-viewer-step-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px !important; }
  .eg-viewer-fullscreen .eg-viewer-step-actions button {
    white-space: normal !important; min-width: 0; min-height: 42px;
    padding: 6px 7px !important; font-size: 11px !important; line-height: 1.2 !important;
  }
  .eg-viewer-fullscreen .eg-viewer-attribution {
    margin-top: 4px !important; padding: 4px 5px 0 !important;
    font-size: 9px !important; line-height: 1.3 !important;
  }
  .eg-premium-watermark-title { font-size: clamp(26px, 7vw, 42px); }
  .eg-premium-watermark-credit { font-size: clamp(8px, 1.8vw, 11px); }
  .eg-viewer-fullscreen .eg-premium-watermark-mark { transform: rotate(-25deg) scale(1) !important; }
}
@media (max-width: 370px) {
  .mobile-brand { font-size: 16px; }
  .main { padding-left: 10px; padding-right: 10px; }
  .controls { grid-template-columns: 1fr 1fr; }
  .canvas-options { gap: 8px; }
}
@media (max-width: 760px) and (orientation: landscape) and (max-height: 540px) {
  .eg-viewer-fullscreen .eg-viewer-toolbar { gap: 3px !important; }
  .eg-viewer-fullscreen .eg-viewer-question { max-height: 38px; }
  .eg-viewer-fullscreen .eg-viewer-step-panel > p { max-height: 22px; }
  .eg-viewer-fullscreen .eg-viewer-step-actions button { min-height: 34px; }
  .eg-viewer-fullscreen .eg-viewer-viewport { min-height: 70px !important; }
  .eg-viewer-fullscreen .eg-viewer-attribution { display: none !important; }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 540px) and (max-width: 950px) {
  .sidebar { position: fixed; top: 0; left: 0; width: 280px; max-width: 85vw; height: 100dvh; min-height: 0; transform: translateX(-100%); transition: transform .25s ease; z-index: 30; }
  .sidebar.sidebar-open { transform: translateX(0); }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 25; border: 0; background: rgba(12,21,39,.5); }
  .main { width: 100%; padding: 0 15px 16px; }
  .mobile-topbar { display: flex; align-items: center; gap: 12px; height: 52px; margin: 0 -15px 15px; padding: 0 16px; background: var(--navy); color: white; }
  .mobile-menu-button { background: transparent; color: white; border: 0; font-size: 22px; min-width: 44px; min-height: 44px; }
  .mobile-brand { font-size: 16px; font-weight: 700; }
  .header { margin-bottom: 12px; }
  .explanation { padding: 12px 16px; margin-bottom: 12px; }
  .eg-viewer-fullscreen { padding: 4px !important; }
  .eg-viewer-fullscreen .eg-viewer-toolbar { gap: 8px !important; margin-bottom: 3px !important; }
  .eg-viewer-fullscreen .eg-viewer-toolbar-actions { gap: 5px !important; }
  .eg-viewer-fullscreen .eg-viewer-toolbar-actions button { min-height: 34px; padding: 5px 9px !important; }
  .eg-viewer-fullscreen .eg-viewer-question { max-height: 40px; overflow-y: auto; margin-bottom: 3px !important; padding: 4px 8px !important; }
  .eg-viewer-fullscreen .eg-viewer-question strong { display: none !important; }
  .eg-viewer-fullscreen .eg-viewer-question p { font-size: 11px !important; line-height: 1.3 !important; }
  .eg-viewer-fullscreen .eg-viewer-viewport { flex: 1 1 0 !important; min-height: 70px !important; }
  .eg-viewer-fullscreen .eg-viewer-step-panel { padding: 4px 2px 0 !important; }
  .eg-viewer-fullscreen .eg-viewer-step-panel > div:first-child { margin-bottom: 3px !important; }
  .eg-viewer-fullscreen .eg-viewer-step-panel > p { max-height: 18px; overflow-y: auto; font-size: 11px !important; margin: 0 0 4px !important; }
  .eg-viewer-fullscreen .eg-viewer-step-panel > div:nth-last-child(2) { height: 3px !important; margin-bottom: 5px !important; }
  .eg-viewer-fullscreen .eg-viewer-step-actions { display: flex !important; flex-wrap: nowrap !important; gap: 5px !important; }
  .eg-viewer-fullscreen .eg-viewer-step-actions button { min-height: 34px; padding: 4px 7px !important; font-size: 11px !important; }
  .eg-viewer-fullscreen .eg-viewer-attribution { display: none !important; }
}
.eg-viewer-pseudo-fullscreen {
  position: fixed !important; inset: 0 !important; z-index: 999 !important;
  width: 100vw !important; height: 100dvh !important;
  background: white !important;
}
.eg-viewer-pseudo-fullscreen .eg-premium-watermark-mark {
  transform: rotate(-25deg) scale(1) !important;
}


/* Trace premium icon-only action buttons. Questions retain readable names. */
button.eg-icon-only {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  flex: 0 0 42px !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  border-radius: 10px !important;
  touch-action: manipulation;
}
button.eg-icon-only::before {
  content: "" !important;
  display: block !important;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-color: currentColor;
  -webkit-mask: var(--eg-button-icon) center / contain no-repeat;
  mask: var(--eg-button-icon) center / contain no-repeat;
}
button.eg-icon-only:focus-visible {
  outline: 3px solid #C6D3AC !important;
  outline-offset: 3px !important;
}
button.eg-icon-only:disabled {
  cursor: not-allowed !important;
}
.eg-spotify-toggle.eg-icon-only > span {
  display: none !important;
}
.eg-spotify-panel button.eg-icon-only {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  flex-basis: 38px !important;
}
.eg-viewer-toolbar-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px !important;
}
.eg-viewer-fullscreen .eg-viewer-toolbar-actions,
.eg-viewer-pseudo-fullscreen .eg-viewer-toolbar-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
  max-width: 100% !important;
  gap: 7px !important;
}
.eg-viewer-fullscreen .eg-viewer-toolbar-actions > button.eg-icon-only,
.eg-viewer-pseudo-fullscreen .eg-viewer-toolbar-actions > button.eg-icon-only {
  grid-column: auto !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  padding: 0 !important;
  flex: 0 0 42px !important;
}
.eg-viewer-fullscreen .eg-viewer-toolbar-actions > span,
.eg-viewer-pseudo-fullscreen .eg-viewer-toolbar-actions > span {
  align-self: center !important;
  justify-self: auto !important;
}
.eg-viewer-step-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
@media (max-width: 768px) {
  .controls {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 9px !important;
  }
  .eg-viewer-fullscreen .eg-viewer-toolbar,
  .eg-viewer-pseudo-fullscreen .eg-viewer-toolbar {
    flex-wrap: wrap !important;
  }
  .eg-viewer-fullscreen .eg-viewer-toolbar-actions,
  .eg-viewer-pseudo-fullscreen .eg-viewer-toolbar-actions {
    width: 100% !important;
    justify-content: center !important;
    gap: 5px !important;
  }
  .eg-viewer-fullscreen .eg-viewer-toolbar-actions > button.eg-icon-only,
  .eg-viewer-pseudo-fullscreen .eg-viewer-toolbar-actions > button.eg-icon-only {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    flex-basis: 40px !important;
  }
}

button.eg-icon-only[data-eg-icon="reset"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2011a9%209%200%201%201%202.8%206.4%22%2F%3E%3Cpath%20d%3D%22M3%203v8h8%22%2F%3E%3C%2Fsvg%3E"); }

button.eg-icon-only[data-eg-icon="previous"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M19%2012H5%22%2F%3E%3Cpath%20d%3D%22m12%2019-7-7%207-7%22%2F%3E%3C%2Fsvg%3E"); }

button.eg-icon-only[data-eg-icon="next"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012h14%22%2F%3E%3Cpath%20d%3D%22m12%205%207%207-7%207%22%2F%3E%3C%2Fsvg%3E"); }

button.eg-icon-only[data-eg-icon="complete"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22m8%2012%203%203%205-6%22%2F%3E%3C%2Fsvg%3E"); }

button.eg-icon-only[data-eg-icon="fullscreen"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%203H5a2%202%200%200%200-2%202v3%22%2F%3E%3Cpath%20d%3D%22M16%203h3a2%202%200%200%201%202%202v3%22%2F%3E%3Cpath%20d%3D%22M21%2016v3a2%202%200%200%201-2%202h-3%22%2F%3E%3Cpath%20d%3D%22M3%2016v3a2%202%200%200%200%202%202h3%22%2F%3E%3C%2Fsvg%3E"); }

button.eg-icon-only[data-eg-icon="exit-fullscreen"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%203v5H3%22%2F%3E%3Cpath%20d%3D%22M16%203v5h5%22%2F%3E%3Cpath%20d%3D%22M8%2021v-5H3%22%2F%3E%3Cpath%20d%3D%22M16%2021v-5h5%22%2F%3E%3C%2Fsvg%3E"); }

button.eg-icon-only[data-eg-icon="zoom-in"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210.5%22%20cy%3D%2210.5%22%20r%3D%227.5%22%2F%3E%3Cpath%20d%3D%22M8%2010.5h5%22%2F%3E%3Cpath%20d%3D%22M10.5%208v5%22%2F%3E%3Cpath%20d%3D%22m16%2016%205%205%22%2F%3E%3C%2Fsvg%3E"); }

button.eg-icon-only[data-eg-icon="zoom-out"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210.5%22%20cy%3D%2210.5%22%20r%3D%227.5%22%2F%3E%3Cpath%20d%3D%22M8%2010.5h5%22%2F%3E%3Cpath%20d%3D%22m16%2016%205%205%22%2F%3E%3C%2Fsvg%3E"); }

button.eg-icon-only[data-eg-icon="fit"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%208V4h4%22%2F%3E%3Cpath%20d%3D%22M16%204h4v4%22%2F%3E%3Cpath%20d%3D%22M20%2016v4h-4%22%2F%3E%3Cpath%20d%3D%22M8%2020H4v-4%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E"); }

button.eg-icon-only[data-eg-icon="download"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v12%22%2F%3E%3Cpath%20d%3D%22m7%2010%205%205%205-5%22%2F%3E%3Cpath%20d%3D%22M5%2017v3h14v-3%22%2F%3E%3C%2Fsvg%3E"); }

button.eg-icon-only[data-eg-icon="music"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2018V5l12-2v13%22%2F%3E%3Cpath%20d%3D%22M9%209l12-2%22%2F%3E%3Cellipse%20cx%3D%226%22%20cy%3D%2218%22%20rx%3D%223%22%20ry%3D%222%22%2F%3E%3Cellipse%20cx%3D%2218%22%20cy%3D%2216%22%20rx%3D%223%22%20ry%3D%222%22%2F%3E%3C%2Fsvg%3E"); }

button.eg-icon-only[data-eg-icon="close"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M18%206%206%2018%22%2F%3E%3Cpath%20d%3D%22m6%206%2012%2012%22%2F%3E%3C%2Fsvg%3E"); }

button.eg-icon-only[data-eg-icon="load"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012h14%22%2F%3E%3Cpath%20d%3D%22m12%205%207%207-7%207%22%2F%3E%3C%2Fsvg%3E"); }

button.eg-icon-only[data-eg-icon="menu"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%206h16%22%2F%3E%3Cpath%20d%3D%22M4%2012h16%22%2F%3E%3Cpath%20d%3D%22M4%2018h16%22%2F%3E%3C%2Fsvg%3E"); }

/* Higher specificity than the original mobile fullscreen button typography. */
html body .eg-viewer button.eg-icon-only.eg-icon-only,
html body .controls button.eg-icon-only.eg-icon-only,
html body .eg-spotify-panel button.eg-icon-only.eg-icon-only,
html body button.mobile-menu-button.eg-icon-only.eg-icon-only {
  font-size: 0 !important;
  line-height: 0 !important;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  overflow: hidden !important;
}

/* Keep the four step icons together instead of the old two-column text grid. */
.eg-viewer.eg-viewer-fullscreen .eg-viewer-step-actions,
.eg-viewer.eg-viewer-pseudo-fullscreen .eg-viewer-step-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
}


/* ==========================================================================
   Trace — Atelier interface
   Interface-only stylesheet. It never targets the drawing SVG, its paths,
   labels, transforms, the viewport's size/zoom logic or the watermark overlay.
   Palette: Egg Nog #FBEDC3 · Mustard #CCB363 · Dust #6F7D7B
            Copper #C27E35 · Garnet #76290B · Velvet Forest #1E3226
   ========================================================================== */
:root {
  --egg: #FBEDC3;
  --egg-light: #FEF8E1;
  --egg-paper: #FFFCF2;
  --egg-deep: #F4E3AC;
  --mustard: #CCB363;
  --dust: #6F7D7B;
  --copper: #C27E35;
  --garnet: #76290B;
  --forest: #1E3226;
  --forest-2: #2B4535;
  --forest-3: #142319;
  --ink: #1E3226;
  --ink-soft: #44544E;
  --copper-ink: #96591A;
  --rule: rgba(30, 50, 38, .2);
  --rule-soft: rgba(30, 50, 38, .11);
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Manrope, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* legacy tokens used by the base stylesheet */
  --navy: #1E3226;
  --navy-deep: #142319;
  --blue: #1E3226;
  --blue-hover: #2B4535;
  --blue-light: #F4E3AC;
  --background: #FBEDC3;
  --surface: #FEF8E1;
  --border: rgba(30, 50, 38, .2);
  --text: #1E3226;
  --muted: #44544E;
  --radius: 3px;
}

html { background: var(--egg); scrollbar-color: #B79F55 var(--egg); }
body {
  background: var(--egg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}
::selection { background: var(--mustard); color: var(--forest); }
.app { background: var(--egg); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.sidebar :focus-visible, .mobile-topbar :focus-visible { outline-color: var(--mustard); }

/* --------------------------------------------------------------------------
   Opening sequence — one orchestrated moment, interface only.
   Uses `backwards` fill so nothing lingers once an animation has finished
   (no stray transforms that could affect fixed-position fullscreen layers).
   -------------------------------------------------------------------------- */
@keyframes egFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes egRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes egSlideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

.sidebar { animation: egFade .6s var(--ease) backwards; }
.sidebar .brand { animation: egFade .8s var(--ease) .16s backwards; }
.sidebar .sidebar-section-label,
.sidebar .module { animation: egSlideIn .6s var(--ease) .32s backwards; }
.sidebar .sidebar-questions-heading { animation: egSlideIn .6s var(--ease) .4s backwards; }
.sidebar .question { animation: egSlideIn .55s var(--ease) backwards; }
.sidebar .question:nth-child(1) { animation-delay: .44s; }
.sidebar .question:nth-child(2) { animation-delay: .49s; }
.sidebar .question:nth-child(3) { animation-delay: .54s; }
.sidebar .question:nth-child(4) { animation-delay: .59s; }
.sidebar .question:nth-child(5) { animation-delay: .64s; }
.sidebar .question:nth-child(6) { animation-delay: .69s; }
.sidebar .question:nth-child(7) { animation-delay: .74s; }
.sidebar .question:nth-child(8) { animation-delay: .79s; }
.sidebar .question:nth-child(9) { animation-delay: .84s; }
.sidebar .question:nth-child(10) { animation-delay: .89s; }
.sidebar .sidebar-bottom { animation: egFade .8s var(--ease) .9s backwards; }
.mobile-topbar { animation: egFade .6s var(--ease) backwards; }
.header .eyebrow { animation: egRise .7s var(--ease) .26s backwards; }
.header h1 { animation: egRise .9s var(--ease) .34s backwards; }
.header .header-description { animation: egRise .8s var(--ease) .46s backwards; }
.header .status { animation: egFade .8s var(--ease) .56s backwards; }
.question-card { animation: egRise .8s var(--ease) .5s backwards; }
.workspace { animation: egRise .9s var(--ease) .62s backwards; }
.guide-card { animation: egRise .8s var(--ease) .78s backwards; }
.developer-footer { animation: egFade .8s var(--ease) .95s backwards; }

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
  width: 304px;
  min-width: 304px;
  height: 100vh;
  height: 100dvh;
  background: var(--forest);
  color: var(--egg);
  padding: 40px 24px 26px;
  border-right: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 237, 195, .28) transparent;
}
.sidebar .brand { padding: 0 2px; gap: 14px; align-items: center; }
.sidebar .brand-mark {
  width: 46px; height: 46px;
  border-radius: 3px;
  background: var(--egg);
  border: 0;
  box-shadow: none;
}
.sidebar .brand-description { gap: 7px; }
.sidebar .brand-name {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--egg);
}
.sidebar .brand-name span { font-weight: 400; font-style: italic; }
.sidebar .brand-tagline {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--mustard);
}
.sidebar-divider, .sidebar-bottom-line { background: rgba(111, 125, 123, .55); }
.sidebar-divider { margin: 32px 2px 30px; }
.sidebar-section-label, .sidebar-questions-heading {
  padding: 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(251, 237, 195, .66);
}
.sidebar .module {
  margin-top: 14px;
  padding: 2px 0 2px 14px;
  gap: 12px;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--copper);
  border-radius: 0;
}
.sidebar .module-icon { color: var(--mustard); font-size: 15px; }
.sidebar .module strong {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--egg);
}
.sidebar .module div { gap: 3px; }
.sidebar .module div span { font-size: 12px; color: rgba(251, 237, 195, .74); }
.sidebar-questions-heading { margin-top: 36px; margin-bottom: 14px; }
.sidebar .question-count {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--mustard);
}
.sidebar .questions-nav { gap: 0; border-top: 1px solid rgba(251, 237, 195, .14); }
.sidebar .question {
  position: relative;
  min-height: 52px;
  padding: 12px 12px 12px 16px;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid rgba(251, 237, 195, .1);
  border-radius: 0;
  background: transparent;
  color: rgba(251, 237, 195, .8);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.sidebar .question::before {
  content: "";
  position: absolute;
  left: 0; top: 7px; bottom: 7px;
  width: 3px;
  background: var(--mustard);
  transform: scaleY(0);
  transition: transform .38s var(--ease);
}
.sidebar .question:hover { background: rgba(251, 237, 195, .06); color: var(--egg); border-color: rgba(251, 237, 195, .1); box-shadow: none; }
.sidebar .question.active {
  background: rgba(204, 179, 99, .16);
  color: var(--egg);
  font-weight: 600;
  border-color: rgba(251, 237, 195, .1);
  box-shadow: none;
}
.sidebar .question.active::before { transform: scaleY(1); }
.sidebar .question-number {
  min-width: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  color: rgba(204, 179, 99, .78);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.sidebar .question:hover .question-number { transform: translateX(2px); }
.sidebar .question.active .question-number { color: var(--mustard); }
.sidebar .available-dot { width: 5px; height: 5px; background: var(--copper); }
.sidebar .question.active .available-dot { background: var(--mustard); }
.sidebar-bottom { gap: 8px; padding: 30px 2px 4px; }
.sidebar-bottom > span { font-size: 9.5px; font-weight: 600; letter-spacing: .2em; color: rgba(251, 237, 195, .66); }
.sidebar-bottom small { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--mustard); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.main { max-width: 1480px; padding: 58px clamp(24px, 4.6vw, 80px) 28px; }
.header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px 32px;
  margin: 0 0 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.header .eyebrow {
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--copper-ink);
}
.header .breadcrumb-separator { margin: 0 12px; color: var(--dust); font-weight: 400; }
.header h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.018em;
  color: var(--forest);
}
.header-description {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
  color: var(--ink-soft);
}
.status {
  gap: 10px;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid rgba(30, 50, 38, .32);
  border-radius: 2px;
  color: var(--forest);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.status-dot { width: 6px; height: 6px; background: var(--copper); box-shadow: none; border-radius: 50%; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.explanation, .workspace {
  background: var(--egg-light);
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: 0 18px 34px -28px rgba(30, 50, 38, .45);
}
.explanation { margin-bottom: 28px; padding: 36px 40px; }
.section-heading { gap: 14px; }
.section-icon {
  width: auto; height: auto;
  background: none;
  border: 0;
  border-radius: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  color: var(--copper);
}
.section-heading h2 {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.question-card {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  column-gap: 44px;
  align-items: start;
}
.question-card .section-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--forest);
}
.question-text {
  margin: 0;
  max-width: 62ch;
  font-family: var(--serif);
  font-size: clamp(20px, 1.75vw, 25px);
  line-height: 1.42;
  letter-spacing: .002em;
  color: var(--forest);
}

/* --------------------------------------------------------------------------
   Drawing workspace — a drafting-table frame around an untouched white sheet
   -------------------------------------------------------------------------- */
.workspace { margin-bottom: 28px; }
.canvas-header {
  position: relative;
  padding: 17px 22px 21px;
  background: rgba(204, 179, 99, .16);
  border-bottom: 1px solid var(--rule);
}
.canvas-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(30, 50, 38, .34) 0 1px, transparent 1px 60px) bottom / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, rgba(30, 50, 38, .2) 0 1px, transparent 1px 12px) bottom / 100% 3px no-repeat;
}
.canvas-heading {
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--forest);
}
.canvas-indicator { width: 6px; height: 6px; border-radius: 0; background: var(--copper); }
.canvas-options { gap: 24px; }
.toggle-label { gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.toggle-label input {
  appearance: none; -webkit-appearance: none;
  display: inline-grid; place-content: center;
  width: 18px; height: 18px; margin: 0;
  border: 1.5px solid var(--forest);
  border-radius: 2px;
  background: var(--egg-paper);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.toggle-label input::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--egg);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transition: transform .2s var(--ease);
}
.toggle-label input:checked { background: var(--forest); }
.toggle-label input:checked::before { transform: scale(1); }

.drawing-container { background: #FFFFFF; }
/* Viewer chrome (the sheet itself keeps its white background and geometry) */
.eg-viewer:not(.eg-viewer-fullscreen):not(.eg-viewer-pseudo-fullscreen) { background: var(--egg-paper) !important; }
.eg-viewer:not(.eg-viewer-fullscreen):not(.eg-viewer-pseudo-fullscreen) .eg-viewer-toolbar {
  padding: 12px 18px !important;
  margin-bottom: 0 !important;
  background: var(--egg-paper) !important;
  border-bottom: 1px solid var(--rule);
}
.eg-viewer:not(.eg-viewer-fullscreen):not(.eg-viewer-pseudo-fullscreen) .eg-viewer-viewport {
  border-color: var(--rule) !important;
  border-radius: 0 !important;
}
.eg-viewer-toolbar > strong {
  font-family: var(--serif) !important;
  font-size: 21px !important;
  font-weight: 400 !important;
  letter-spacing: .005em;
  color: var(--forest) !important;
}
.eg-viewer-toolbar-actions > span {
  font-family: var(--sans);
  font-size: 12.5px !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft) !important;
}
.workspace-footer {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  padding: 0;
  background: var(--egg-deep);
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}
.workspace-footer span { padding: 12px 22px; }
.workspace-footer span:last-child { border-left: 1px solid var(--rule); color: var(--forest); }

/* --------------------------------------------------------------------------
   Construction guide
   -------------------------------------------------------------------------- */
.guide-heading { align-items: center; flex-wrap: wrap; row-gap: 14px; }
.guide-heading-left { align-items: baseline; gap: 14px; }
.step-badge {
  padding: 7px 12px;
  background: transparent;
  border: 1px solid rgba(118, 41, 11, .55);
  border-radius: 2px;
  color: var(--garnet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.guide-content {
  margin-top: 26px;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--mustard);
}
.guide-content h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.005em;
  color: var(--forest);
}
.guide-content p {
  max-width: 64ch;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.progress-heading {
  margin: 32px 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.progress-heading strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  color: var(--forest);
}
.progress-track { height: 4px; border-radius: 0; background: rgba(30, 50, 38, .14); }
.progress-fill { background: var(--copper); border-radius: 0; transition: width .7s var(--ease); }
.controls {
  gap: 10px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--rule-soft);
}

/* --------------------------------------------------------------------------
   Icon buttons — one consistent system (44 × 44, 1.5 px strokes)
   Selectors are deliberately specific so they replace the earlier
   !important rules. `display` is never set here, so the fullscreen-only
   availability of Study Music and the desktop-only download are unchanged.
   -------------------------------------------------------------------------- */
html body button.eg-icon-only.eg-icon-only.eg-icon-only {
  width: 44px !important; height: 44px !important;
  min-width: 44px !important; min-height: 44px !important; max-width: 44px !important;
  flex: 0 0 44px !important;
  overflow: visible !important;
  border: 1px solid var(--dust) !important;
  border-radius: 3px !important;
  background: var(--egg-paper) !important;
  color: var(--forest) !important;
  box-shadow: none !important;
  transition: background-color .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease), transform .16s var(--ease), opacity .24s var(--ease) !important;
}
html body button.eg-icon-only.eg-icon-only.eg-icon-only::before { width: 20px; height: 20px; flex-basis: 20px; }
html body button.eg-icon-only.eg-icon-only.eg-icon-only:focus-visible {
  outline: 2px solid var(--copper) !important;
  outline-offset: 3px !important;
}
html body button.eg-icon-only.eg-icon-only.eg-icon-only:active:not(:disabled) { transform: scale(.94); }
html body button.eg-icon-only.eg-icon-only.eg-icon-only:disabled { opacity: .36; box-shadow: none !important; }
@media (hover: hover) {
  html body button.eg-icon-only.eg-icon-only.eg-icon-only:hover:not(:disabled) {
    background: var(--egg-deep) !important;
    border-color: var(--forest) !important;
    box-shadow: none !important;
  }
}
/* primary actions */
html body button.eg-icon-only.eg-icon-only[data-eg-icon="next"],
html body button.eg-icon-only.eg-icon-only[data-eg-icon="fullscreen"],
html body button.eg-icon-only.eg-icon-only[data-eg-icon="download"],
html body button.eg-icon-only.eg-icon-only[data-eg-icon="load"],
html body button.eg-icon-only.eg-icon-only.eg-spotify-toggle[aria-expanded="true"] {
  background: var(--forest) !important;
  border-color: var(--forest) !important;
  color: var(--egg) !important;
}
@media (hover: hover) {
  html body button.eg-icon-only.eg-icon-only[data-eg-icon="next"]:hover:not(:disabled),
  html body button.eg-icon-only.eg-icon-only[data-eg-icon="fullscreen"]:hover:not(:disabled),
  html body button.eg-icon-only.eg-icon-only[data-eg-icon="download"]:hover:not(:disabled),
  html body button.eg-icon-only.eg-icon-only[data-eg-icon="load"]:hover:not(:disabled),
  html body button.eg-icon-only.eg-icon-only.eg-spotify-toggle[aria-expanded="true"]:hover:not(:disabled) {
    background: var(--forest-2) !important;
    border-color: var(--forest-2) !important;
    color: var(--egg) !important;
  }
}
html body button.eg-icon-only.eg-icon-only[data-eg-icon="exit-fullscreen"] {
  background: var(--garnet) !important;
  border-color: var(--garnet) !important;
  color: var(--egg-paper) !important;
}
@media (hover: hover) {
  html body button.eg-icon-only.eg-icon-only[data-eg-icon="exit-fullscreen"]:hover:not(:disabled) {
    background: #8C3410 !important;
    border-color: #8C3410 !important;
    color: var(--egg-paper) !important;
  }
}
/* smaller controls inside the music panel */
html body .eg-spotify-panel button.eg-icon-only.eg-icon-only {
  width: 40px !important; height: 40px !important;
  min-width: 40px !important; min-height: 40px !important; max-width: 40px !important;
  flex-basis: 40px !important;
}
/* icon set — same glyphs, finer 1.5 px stroke */
html body button.eg-icon-only.eg-icon-only[data-eg-icon="reset"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2011a9%209%200%201%201%202.8%206.4%22%2F%3E%3Cpath%20d%3D%22M3%203v8h8%22%2F%3E%3C%2Fsvg%3E"); }
html body button.eg-icon-only.eg-icon-only[data-eg-icon="previous"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M19%2012H5%22%2F%3E%3Cpath%20d%3D%22m12%2019-7-7%207-7%22%2F%3E%3C%2Fsvg%3E"); }
html body button.eg-icon-only.eg-icon-only[data-eg-icon="next"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012h14%22%2F%3E%3Cpath%20d%3D%22m12%205%207%207-7%207%22%2F%3E%3C%2Fsvg%3E"); }
html body button.eg-icon-only.eg-icon-only[data-eg-icon="complete"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22m8%2012%203%203%205-6%22%2F%3E%3C%2Fsvg%3E"); }
html body button.eg-icon-only.eg-icon-only[data-eg-icon="fullscreen"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%203H5a2%202%200%200%200-2%202v3%22%2F%3E%3Cpath%20d%3D%22M16%203h3a2%202%200%200%201%202%202v3%22%2F%3E%3Cpath%20d%3D%22M21%2016v3a2%202%200%200%201-2%202h-3%22%2F%3E%3Cpath%20d%3D%22M3%2016v3a2%202%200%200%200%202%202h3%22%2F%3E%3C%2Fsvg%3E"); }
html body button.eg-icon-only.eg-icon-only[data-eg-icon="exit-fullscreen"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%203v5H3%22%2F%3E%3Cpath%20d%3D%22M16%203v5h5%22%2F%3E%3Cpath%20d%3D%22M8%2021v-5H3%22%2F%3E%3Cpath%20d%3D%22M16%2021v-5h5%22%2F%3E%3C%2Fsvg%3E"); }
html body button.eg-icon-only.eg-icon-only[data-eg-icon="zoom-in"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210.5%22%20cy%3D%2210.5%22%20r%3D%227.5%22%2F%3E%3Cpath%20d%3D%22M8%2010.5h5%22%2F%3E%3Cpath%20d%3D%22M10.5%208v5%22%2F%3E%3Cpath%20d%3D%22m16%2016%205%205%22%2F%3E%3C%2Fsvg%3E"); }
html body button.eg-icon-only.eg-icon-only[data-eg-icon="zoom-out"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210.5%22%20cy%3D%2210.5%22%20r%3D%227.5%22%2F%3E%3Cpath%20d%3D%22M8%2010.5h5%22%2F%3E%3Cpath%20d%3D%22m16%2016%205%205%22%2F%3E%3C%2Fsvg%3E"); }
html body button.eg-icon-only.eg-icon-only[data-eg-icon="fit"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%208V4h4%22%2F%3E%3Cpath%20d%3D%22M16%204h4v4%22%2F%3E%3Cpath%20d%3D%22M20%2016v4h-4%22%2F%3E%3Cpath%20d%3D%22M8%2020H4v-4%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E"); }
html body button.eg-icon-only.eg-icon-only[data-eg-icon="download"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v12%22%2F%3E%3Cpath%20d%3D%22m7%2010%205%205%205-5%22%2F%3E%3Cpath%20d%3D%22M5%2017v3h14v-3%22%2F%3E%3C%2Fsvg%3E"); }
html body button.eg-icon-only.eg-icon-only[data-eg-icon="music"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2018V5l12-2v13%22%2F%3E%3Cpath%20d%3D%22M9%209l12-2%22%2F%3E%3Cellipse%20cx%3D%226%22%20cy%3D%2218%22%20rx%3D%223%22%20ry%3D%222%22%2F%3E%3Cellipse%20cx%3D%2218%22%20cy%3D%2216%22%20rx%3D%223%22%20ry%3D%222%22%2F%3E%3C%2Fsvg%3E"); }
html body button.eg-icon-only.eg-icon-only[data-eg-icon="close"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M18%206%206%2018%22%2F%3E%3Cpath%20d%3D%22m6%206%2012%2012%22%2F%3E%3C%2Fsvg%3E"); }
html body button.eg-icon-only.eg-icon-only[data-eg-icon="load"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012h14%22%2F%3E%3Cpath%20d%3D%22m12%205%207%207-7%207%22%2F%3E%3C%2Fsvg%3E"); }
html body button.eg-icon-only.eg-icon-only[data-eg-icon="menu"] { --eg-button-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%206h16%22%2F%3E%3Cpath%20d%3D%22M4%2012h16%22%2F%3E%3Cpath%20d%3D%22M4%2018h16%22%2F%3E%3C%2Fsvg%3E"); }

/* --------------------------------------------------------------------------
   Fullscreen chrome (the drawing viewport stays white)
   -------------------------------------------------------------------------- */
.eg-viewer-fullscreen, .eg-viewer-pseudo-fullscreen {
  background: var(--egg) !important;
  color: var(--ink);
  font-family: var(--sans);
}
.eg-viewer-fullscreen .eg-viewer-toolbar, .eg-viewer-pseudo-fullscreen .eg-viewer-toolbar { background: transparent !important; }
.eg-viewer-fullscreen .eg-viewer-viewport, .eg-viewer-pseudo-fullscreen .eg-viewer-viewport {
  border-color: rgba(30, 50, 38, .3) !important;
  border-radius: 2px !important;
}
.eg-viewer-fullscreen .eg-viewer-question, .eg-viewer-pseudo-fullscreen .eg-viewer-question {
  background: var(--egg-light) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 3px !important;
}
.eg-viewer-fullscreen .eg-viewer-question strong, .eg-viewer-pseudo-fullscreen .eg-viewer-question strong {
  color: var(--copper-ink) !important;
  letter-spacing: .18em;
  font-weight: 700;
}
.eg-viewer-fullscreen .eg-viewer-question p, .eg-viewer-pseudo-fullscreen .eg-viewer-question p { color: var(--forest) !important; font-family: var(--sans); }
.eg-viewer-fullscreen .eg-viewer-step-panel, .eg-viewer-pseudo-fullscreen .eg-viewer-step-panel { border-top-color: var(--rule) !important; }
.eg-viewer-fullscreen .eg-viewer-step-panel > div:first-child strong,
.eg-viewer-pseudo-fullscreen .eg-viewer-step-panel > div:first-child strong {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--forest) !important;
}
.eg-viewer-fullscreen .eg-viewer-step-panel > div:first-child span,
.eg-viewer-pseudo-fullscreen .eg-viewer-step-panel > div:first-child span {
  color: var(--garnet) !important;
  font-weight: 700;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.eg-viewer-fullscreen .eg-viewer-step-panel > p,
.eg-viewer-pseudo-fullscreen .eg-viewer-step-panel > p { color: var(--ink-soft) !important; }
.eg-viewer-fullscreen .eg-viewer-step-panel > div:nth-last-child(2),
.eg-viewer-pseudo-fullscreen .eg-viewer-step-panel > div:nth-last-child(2) {
  background: rgba(30, 50, 38, .14) !important;
  border-radius: 0 !important;
}
.eg-viewer-fullscreen .eg-viewer-step-panel > div:nth-last-child(2) > div,
.eg-viewer-pseudo-fullscreen .eg-viewer-step-panel > div:nth-last-child(2) > div {
  background: var(--copper) !important;
  transition: width .7s var(--ease) !important;
}
.eg-viewer-attribution { border-top-color: var(--rule) !important; color: var(--ink-soft) !important; font-family: var(--sans) !important; }
@media (min-width: 761px) {
  .eg-viewer-fullscreen .eg-viewer-toolbar > strong, .eg-viewer-pseudo-fullscreen .eg-viewer-toolbar > strong { font-size: 24px !important; }
  .eg-viewer-fullscreen .eg-viewer-step-panel > div:first-child strong,
  .eg-viewer-pseudo-fullscreen .eg-viewer-step-panel > div:first-child strong { font-size: 24px !important; }
}
/* very short landscape phones: slightly smaller controls so the sheet keeps its room */
@media (max-height: 540px) and (pointer: coarse) {
  html body .eg-viewer-fullscreen button.eg-icon-only.eg-icon-only.eg-icon-only,
  html body .eg-viewer-pseudo-fullscreen button.eg-icon-only.eg-icon-only.eg-icon-only {
    width: 40px !important; height: 40px !important;
    min-width: 40px !important; min-height: 40px !important; max-width: 40px !important;
    flex-basis: 40px !important;
  }
}

/* --------------------------------------------------------------------------
   Study Music panel (visible only in fullscreen — availability unchanged)
   -------------------------------------------------------------------------- */
html body .eg-spotify-panel.eg-spotify-panel {
  background: var(--egg-light) !important;
  color: var(--forest) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 3px !important;
  box-shadow: 0 22px 44px -20px rgba(30, 50, 38, .5) !important;
  font-family: var(--sans);
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility .32s !important;
}
.eg-spotify-heading { align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--rule-soft); }
.eg-spotify-heading strong { font-family: var(--serif) !important; font-size: 28px !important; font-weight: 400 !important; letter-spacing: 0 !important; line-height: 1.1; }
.eg-spotify-heading span { font-size: 10px !important; font-weight: 700; letter-spacing: .2em !important; color: var(--copper-ink) !important; }
.eg-spotify-subtitle { color: var(--ink-soft) !important; font-size: 12.5px; line-height: 1.6; margin-top: 12px !important; }
.eg-spotify-embed { border-radius: 3px !important; background: rgba(111, 125, 123, .25) !important; }
.eg-spotify-input {
  border: 1px solid var(--dust) !important;
  border-radius: 3px !important;
  background: var(--egg-paper) !important;
  color: var(--forest) !important;
  font-family: var(--sans);
  transition: border-color .2s var(--ease);
}
.eg-spotify-input::placeholder { color: #6A7773; }
.eg-spotify-input:focus-visible { outline: 2px solid var(--copper) !important; outline-offset: 1px !important; border-color: var(--forest) !important; }
.eg-spotify-foot a { color: var(--forest) !important; text-decoration-color: var(--copper); }
.eg-spotify-foot small { color: var(--ink-soft) !important; }
.eg-spotify-status { color: #A02B14 !important; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.developer-footer { margin-top: 40px; padding: 28px 0 8px; border-top: 1px solid var(--rule); }
.footer-brand strong {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  color: var(--forest);
}
.footer-brand span, .footer-developer p { font-size: 12.5px; color: var(--ink-soft); }
.footer-developer p strong { font-weight: 700; color: var(--forest); }
.footer-developer a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.footer-developer a:hover { color: var(--copper-ink); text-decoration: underline; }
.coming-soon h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--forest); }
.coming-soon p { color: var(--ink-soft); }
.coming-soon-symbol { color: var(--dust); }

/* --------------------------------------------------------------------------
   Tablet / narrow desktop
   -------------------------------------------------------------------------- */
@media (max-width: 1050px) {
  .sidebar { width: 264px; min-width: 264px; padding: 36px 18px 22px; }
  .main { padding: 44px 28px 24px; }
}
@media (max-width: 900px) {
  .question-card { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .question-card .section-heading { flex-direction: row; align-items: baseline; gap: 14px; }
}

/* --------------------------------------------------------------------------
   Drawer navigation: phones, and touch devices in short landscape
   -------------------------------------------------------------------------- */
@media (max-width: 760px), (pointer: coarse) and (orientation: landscape) and (max-height: 540px) and (max-width: 950px) {
  .sidebar {
    position: fixed; top: 0; left: 0;
    width: min(88vw, 332px); min-width: 0; max-width: 88vw;
    height: 100dvh;
    padding: calc(30px + env(safe-area-inset-top, 0px)) 22px calc(22px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px));
    visibility: hidden;
    transform: translateX(-100%);
    box-shadow: none;
    transition: transform .42s var(--ease), visibility 0s linear .42s;
  }
  .sidebar.sidebar-open {
    visibility: visible;
    transform: translateX(0);
    box-shadow: 28px 0 60px -24px rgba(10, 20, 14, .55);
    transition: transform .42s var(--ease), visibility 0s;
  }
  .sidebar-backdrop {
    background: rgba(20, 35, 25, .55);
    animation: egFade .35s var(--ease) both;
  }
  .sidebar .question { min-height: 52px; }
  .main { width: 100%; padding: 0 18px 24px; }
  .mobile-topbar {
    position: sticky; top: 0; z-index: 20;
    box-sizing: border-box;
    height: calc(62px + env(safe-area-inset-top, 0px));
    margin: 0 -18px 28px;
    padding: env(safe-area-inset-top, 0px) max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px));
    gap: 12px;
    background: var(--forest);
    color: var(--egg);
    border-bottom: 1px solid rgba(251, 237, 195, .14);
    box-shadow: none;
  }
  .mobile-brand {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -.005em;
    line-height: 1;
    color: var(--egg);
  }
  html body .mobile-topbar button.mobile-menu-button.eg-icon-only.eg-icon-only {
    background: transparent !important;
    border-color: rgba(251, 237, 195, .38) !important;
    color: var(--egg) !important;
  }
  html body .mobile-topbar button.mobile-menu-button.eg-icon-only.eg-icon-only:active { background: rgba(251, 237, 195, .12) !important; }
}

/* --------------------------------------------------------------------------
   Phones
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .header { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 26px; padding-bottom: 24px; }
  .header .eyebrow { margin-bottom: 16px; font-size: 10px; letter-spacing: .16em; line-height: 1.8; }
  .header .breadcrumb-separator { margin: 0 7px; }
  .header h1 { font-size: clamp(34px, 10.5vw, 46px); line-height: 1.02; letter-spacing: -.015em; }
  .header-description { margin-top: 14px; font-size: 18px; line-height: 1.35; }
  .status { justify-self: start; }
  .explanation { padding: 24px 20px; margin-bottom: 20px; border-radius: 3px; }
  .question-text { font-size: 20px; line-height: 1.42; margin: 0; }
  .workspace { margin-bottom: 20px; border-radius: 3px; }
  .canvas-header { padding: 14px 16px 18px; gap: 6px 14px; }
  .canvas-options { gap: 4px 20px; }
  .toggle-label { min-height: 44px; font-size: 13px; }
  .eg-viewer:not(.eg-viewer-fullscreen):not(.eg-viewer-pseudo-fullscreen) .eg-viewer-toolbar { padding: 10px 14px !important; }
  .eg-viewer-toolbar > strong { font-size: 19px !important; }
  .workspace-footer { font-size: 9px; letter-spacing: .16em; }
  .workspace-footer span { padding: 11px 14px; }
  .guide-heading { gap: 12px; }
  .guide-content { margin-top: 20px; padding-left: 18px; }
  .guide-content h3 { font-size: 27px; }
  .guide-content p { font-size: 15px; line-height: 1.7; }
  .progress-heading { margin-top: 26px; }
  .controls { margin-top: 24px; padding-top: 22px; gap: 10px; }
  .developer-footer { margin-top: 28px; padding-top: 24px; }
  .footer-brand { align-items: center; }
}
@media (max-width: 520px) {
  .workspace-footer { flex-direction: column; }
  .workspace-footer span:last-child { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 370px) {
  .main { padding-left: 14px; padding-right: 14px; }
  .mobile-topbar { margin-left: -14px; margin-right: -14px; }
  .explanation { padding: 22px 16px; }
  .guide-heading-left { gap: 10px; }
  .section-icon { font-size: 30px; }
}
@media (pointer: coarse) {
  .toggle-label { min-height: 44px; }
}

/* --------------------------------------------------------------------------
   Reduced motion — interface only. The drawing's own zoom/step transitions
   are deliberately left exactly as they were.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .sidebar, .sidebar *, .mobile-topbar, .mobile-topbar *, .sidebar-backdrop,
  .header, .header *, .question-card, .question-card *,
  .workspace, .canvas-header, .canvas-header *, .eg-viewer-toolbar, .eg-viewer-toolbar *,
  .workspace-footer, .guide-card, .guide-card *, .developer-footer, .developer-footer *,
  .eg-spotify-panel, .eg-spotify-panel *, .eg-viewer-step-panel, .eg-viewer-step-panel *,
  html body button.eg-icon-only.eg-icon-only.eg-icon-only {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}



/* Trace: video-style step playback. Does not modify original drawing geometry. */
.eg-construction-player {
  display: flex; align-items: center; gap: 13px;
  min-width: 0; padding: 12px 15px; margin: 10px 0 0;
  border: 1px solid #d9d8c9; background: #fefbf0;
  border-radius: 10px; flex: 0 0 auto;
  font-family: Manrope, Inter, sans-serif;
  box-sizing: border-box;
}
.eg-player-play {
  flex: 0 0 43px; width: 43px; height: 43px; min-width: 43px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #1e3226; border-radius: 9px;
  background: #1e3226; color: #FBEDC3;
  padding: 0; cursor: pointer; transition: background .2s, transform .2s, border-color .2s;
}
.eg-player-play:hover { background: #365243; border-color: #365243; transform: translateY(-1px); }
.eg-player-play:active { transform: translateY(0) scale(.98); }
.eg-player-play:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.eg-player-timeline-wrap { min-width: 0; flex: 1 1 auto; }
.eg-player-timeline {
  width: 100%; height: 22px; display: block; margin: 0;
  cursor: pointer; accent-color: #76290B; touch-action: pan-x;
}
.eg-player-timeline:disabled { cursor: not-allowed; opacity: .45; }
.eg-player-timeline-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 10px; font-variant-numeric: tabular-nums;
  letter-spacing: .055em; font-weight: 650; color: #6F7D7B;
  white-space: nowrap; margin-top: 1px;
}
.eg-player-speed-wrap { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; }
.eg-player-speed-label { font-size: 9px; letter-spacing: .13em; font-weight: 750; color: #6F7D7B; }
.eg-player-speed {
  min-height: 35px; width: 77px; border-radius: 7px; border: 1px solid #d9d8c9;
  padding: 5px 9px; color: #1E3226; background: #fffdf8;
  font: 700 12px Manrope, Inter, sans-serif; cursor: pointer;
}
.eg-player-play:focus-visible, .eg-player-timeline:focus-visible, .eg-player-speed:focus-visible {
  outline: 2px solid #C27E35; outline-offset: 3px;
}
/* Preserve existing animated construction while scaling only its playback duration. */
.eg-viewer.eg-playback-active .eg-native-pdf-new-line,
.eg-viewer.eg-playback-active .eg-q5-raster-new {
  animation-duration: var(--eg-playback-stroke-duration, 560ms) !important;
}
.eg-viewer-fullscreen .eg-construction-player,
.eg-viewer-pseudo-fullscreen .eg-construction-player { padding: 8px 11px; margin-top: 6px; }
@media (max-width: 600px) {
  .eg-construction-player { gap: 9px; padding: 8px 9px; margin-top: 8px; }
  .eg-player-play { width: 40px; height: 40px; min-width: 40px; flex-basis: 40px; }
  .eg-player-timeline-caption { font-size: 9px; letter-spacing: 0; }
  .eg-player-speed { width: 67px; min-height: 34px; padding: 4px 6px; }
  .eg-player-speed-label { font-size: 8px; }
  .eg-viewer-fullscreen .eg-construction-player,
  .eg-viewer-pseudo-fullscreen .eg-construction-player { padding: 5px 7px; margin-top: 4px; gap: 7px; }
  .eg-viewer-fullscreen .eg-player-play, .eg-viewer-pseudo-fullscreen .eg-player-play { width: 36px; height: 36px; min-width: 36px; flex-basis: 36px; }
}
@media (max-width: 760px) and (orientation: landscape) and (max-height: 540px) {
  .eg-viewer-fullscreen .eg-construction-player, .eg-viewer-pseudo-fullscreen .eg-construction-player { padding: 2px 6px; gap: 7px; margin-top: 2px; }
  .eg-viewer-fullscreen .eg-player-play, .eg-viewer-pseudo-fullscreen .eg-player-play { height: 30px; width: 34px; min-width: 34px; flex-basis: 34px; }
  .eg-viewer-fullscreen .eg-player-speed-wrap, .eg-viewer-pseudo-fullscreen .eg-player-speed-wrap { flex-direction: row; align-items: center; }
  .eg-viewer-fullscreen .eg-player-speed, .eg-viewer-pseudo-fullscreen .eg-player-speed { min-height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .eg-player-play { transition: none; }
}


/* Premium drawing-paper grid settings; only UI is styled, never technical vectors. */
.canvas-options { row-gap: 10px; }
.eg-grid-field { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; color: #44544E; font-family: var(--sans, Manrope, sans-serif); }
.eg-grid-field > span { font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.eg-grid-field select { appearance: auto; -webkit-appearance: menulist; cursor: pointer; max-width: 150px; min-width: 110px; min-height: 36px; padding: 6px 9px; background: #FFFCF2; color: #1E3226; border: 1px solid rgba(30,50,38,.3); border-radius: 3px; font: 600 12px Manrope, Arial, sans-serif; }
.eg-grid-field select:hover { border-color: #C27E35; }
.eg-grid-field select:focus-visible { outline: 2px solid #C27E35; outline-offset: 2px; }
@media (max-width: 760px) {
  .canvas-options { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .eg-grid-field { flex: 0 1 auto; min-width: 0; }
  .eg-grid-field select { max-width: 136px; min-width: 100px; min-height: 40px; }
}
@media (max-width: 375px) {
  .eg-grid-field > span { font-size: 10px; }
  .eg-grid-field select { max-width: 130px; }
}


/* Trace launch — visual-only, no change to the original logo pixels or drawing engine. */
#trace-splash {
 position:fixed; inset:0; z-index:2147483000; display:grid; place-items:center;
 width:100%; min-height:100svh; background:#F7F6F0; color:#272B28;
 pointer-events:none; overflow:hidden; isolation:isolate;
 -webkit-font-smoothing:antialiased;
 animation:traceSplashExit .54s cubic-bezier(.3,.05,.2,1) 1.86s both;
}
#trace-splash, #trace-splash * {box-sizing:border-box}
#trace-splash:before{
 content:""; position:absolute; inset:0; opacity:.35; pointer-events:none;
 background-image:linear-gradient(to right,transparent calc(50% - .5px),rgba(101,118,93,.07) 50%,transparent calc(50% + .5px));
}
#trace-splash .trace-splash-shell{
 position:relative; width:min(86vw,740px); min-height:min(58vh,430px);
 display:flex; flex-direction:column; justify-content:space-between;
 padding:31px clamp(23px,5vw,54px) 27px;
 border:1px solid rgba(101,118,93,.23); border-radius:17px;
 background:rgba(255,255,255,.44);
 box-shadow:0 22px 66px rgba(39,43,40,.06),0 4px 16px rgba(39,43,40,.025);
 opacity:0; transform:translateY(18px) scale(.984);
 animation:traceSplashPanel .66s cubic-bezier(.18,.7,.3,1) .07s both;
}
#trace-splash .trace-splash-top,
#trace-splash .trace-splash-foot{display:flex;align-items:center;justify-content:space-between;gap:14px}
#trace-splash .trace-splash-top{font:600 9.5px/1.4 Manrope,Arial,sans-serif;letter-spacing:.23em;color:#65765D}
#trace-splash .trace-splash-rule{width:32px;height:1px;background:#65765D;display:inline-block;vertical-align:middle;margin-right:11px}
#trace-splash .trace-splash-top-left{white-space:nowrap}
#trace-splash .trace-splash-top-right{font-variant-numeric:tabular-nums;opacity:.72;white-space:nowrap}
#trace-splash .trace-splash-center{
 position:relative; display:flex;flex-direction:column;align-items:center;justify-content:center;
 margin:auto 0; min-height:180px; padding:18px 0 4px;
}
#trace-splash .trace-splash-geometry{
 position:absolute;left:50%;top:48%;width:clamp(310px,85%,580px);max-width:100%;
 transform:translate(-50%,-50%);opacity:0;
 animation:traceSplashGeometry .83s ease .22s both;
}
#trace-splash .trace-splash-geometry svg{display:block;width:100%;height:auto;overflow:visible}
#trace-splash .trace-splash-wordmark{
 position:relative; width:min(100%,540px);aspect-ratio:707/192;
 margin:0 auto; z-index:1;
}
#trace-splash .trace-splash-wordmark img{
 position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;
 -webkit-user-drag:none; user-select:none;
}
#trace-splash .trace-splash-wordmark .trace-splash-ink{
 clip-path:inset(0 100% 0 0);
 animation:traceSplashWrite .72s cubic-bezier(.19,.75,.3,1) .31s forwards;
}
#trace-splash .trace-splash-wordmark .trace-splash-sage{
 clip-path:inset(0 100% 0 0);
 animation:traceSplashWrite .51s cubic-bezier(.2,.7,.28,1) .94s forwards;
}
#trace-splash .trace-splash-tagline{
 margin:12px 0 0;
 color:#65765D; text-align:center;
 font:600 clamp(8px,1vw,11px)/1.7 Manrope,Arial,sans-serif;
 letter-spacing:.31em; text-transform:uppercase;
 opacity:0;transform:translateY(8px);
 animation:traceSplashTag .46s cubic-bezier(.18,.7,.3,1) 1.11s both;
}
#trace-splash .trace-splash-understroke{
 width:min(175px,40vw);height:1px;margin:22px auto 0;
 background:linear-gradient(90deg,transparent,#65765D 25%,#65765D 75%,transparent);
 transform:scaleX(0);transform-origin:50% 50%;
 animation:traceSplashUnderstroke .54s cubic-bezier(.24,.63,.36,1) 1.21s both;
}
#trace-splash .trace-splash-foot{position:relative;padding-top:16px;border-top:1px solid #DCDDD2}
#trace-splash .trace-splash-foot-copy{
 font:600 9px/1.6 Manrope,Arial,sans-serif;letter-spacing:.16em;color:#65765D;
 opacity:0;animation:traceSplashFoot .36s ease .93s both;
}
#trace-splash .trace-splash-loading{
 position:absolute;left:0;top:-1px;height:1px;width:100%;background:#65765D;
 transform:scaleX(0);transform-origin:0 50%;
 animation:traceSplashLoad 1.34s cubic-bezier(.24,.65,.28,.98) .35s both;
}
#trace-splash .trace-splash-corner{
 position:absolute;width:9px;height:9px;border:1px solid rgba(101,118,93,.55);opacity:.85;
}
#trace-splash .trace-splash-corner.a{top:-4px;left:-4px;border-right:0;border-bottom:0}
#trace-splash .trace-splash-corner.b{top:-4px;right:-4px;border-left:0;border-bottom:0}
#trace-splash .trace-splash-corner.c{bottom:-4px;left:-4px;border-top:0;border-right:0}
#trace-splash .trace-splash-corner.d{bottom:-4px;right:-4px;border-top:0;border-left:0}
@keyframes traceSplashPanel{to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes traceSplashGeometry{0%{opacity:0;transform:translate(-50%,-50%) scale(.97)}100%{opacity:.53;transform:translate(-50%,-50%) scale(1)}}
@keyframes traceSplashWrite{to{clip-path:inset(0 0 0 0)}}
@keyframes traceSplashTag{to{opacity:1;transform:translateY(0);letter-spacing:.26em}}
@keyframes traceSplashUnderstroke{to{transform:scaleX(1)}}
@keyframes traceSplashFoot{to{opacity:1}}
@keyframes traceSplashLoad{to{transform:scaleX(1)}}
@keyframes traceSplashExit{0%{opacity:1;transform:scale(1);visibility:visible}100%{opacity:0;transform:scale(1.015);visibility:hidden}}
@media(max-width:600px){
 #trace-splash .trace-splash-shell{width:min(92vw,520px); min-height:310px;max-height:65svh;padding:25px 21px 21px;border-radius:14px}
 #trace-splash .trace-splash-center{min-height:140px;padding:18px 0 0}
 #trace-splash .trace-splash-geometry{width:100%}
 #trace-splash .trace-splash-tagline{letter-spacing:.16em;font-size:9px;margin-top:11px}
 #trace-splash .trace-splash-foot-copy{font-size:8px;letter-spacing:.08em}
 #trace-splash .trace-splash-top{font-size:8px;letter-spacing:.13em}
 #trace-splash .trace-splash-rule{width:18px;margin-right:6px}
}
@media(prefers-reduced-motion:reduce){
 #trace-splash{display:none!important;animation:none!important}
 #trace-splash *, #trace-splash:before{animation:none!important;transition:none!important}
}


html.trace-auth-locked #root {opacity:0!important;pointer-events:none!important;user-select:none!important;}
html.trace-auth-locked body {overflow:hidden;}
#trace-auth[hidden], #trace-auth-account[hidden], #trace-auth-retry[hidden], #trace-auth-photo[hidden] {display:none!important;}
#trace-auth {position:fixed;inset:0;z-index:2147482900;overflow:auto;overscroll-behavior:contain;background:#F7F6F0;color:#272B28;font:500 14px/1.6 Manrope,Arial,sans-serif;display:grid;place-items:center;padding:max(20px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));}
#trace-auth * {box-sizing:border-box;}
.trace-auth-shell {width:min(100%,480px);padding:clamp(24px,5vw,46px);border:1px solid #DCDDD2;border-radius:18px;background:#F7F6F0;box-shadow:0 20px 65px -35px #272B2840;position:relative;animation:traceAuthEnter .55s cubic-bezier(.22,.8,.2,1) both;}
.trace-auth-top {display:flex;justify-content:space-between;gap:12px;color:#65765D;font-size:10px;letter-spacing:.18em;font-weight:800;text-transform:uppercase;}
.trace-auth-logo {width:min(100%,235px);aspect-ratio:707/192;position:relative;margin:34px auto 6px;}
.trace-auth-logo img {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;}
.trace-auth-tagline {text-align:center;color:#65765D;font-size:10px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;margin:0 0 28px;}
.trace-auth-rule {height:1px;background:#DCDDD2;margin:0 0 26px;}
#trace-auth h1 {font:400 clamp(34px,7vw,47px)/1.05 "Instrument Serif",Georgia,serif;letter-spacing:-.018em;margin:0 0 13px;text-align:center;color:#272B28;}
.trace-auth-description {margin:0 auto 25px;text-align:center;max-width:32ch;color:#65765D;font-size:13px;}
#trace-auth-google {display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:52px;border:1px solid #747970;border-radius:8px;background:#fff;color:#272B28;font:700 14px Manrope,Arial,sans-serif;transition:background .2s,border-color .2s;}
#trace-auth-google:hover:not(:disabled) {background:#f0f3eb;border-color:#272B28;}
#trace-auth-google:disabled {opacity:.55;cursor:not-allowed;}
#trace-auth-google svg {width:20px;height:20px;flex:none;}
#trace-auth-message {min-height:22px;margin:12px 0 0;text-align:center;color:#65765D;font-size:12px;overflow-wrap:anywhere;}
#trace-auth-message[data-error="true"] {color:#272B28;font-weight:700;}
#trace-auth-retry {display:block;margin:8px auto 0;background:transparent;border:0;color:#272B28;text-decoration:underline;padding:8px;font:700 12px Manrope,Arial,sans-serif;}
.trace-auth-privacy {margin:15px 0 0;text-align:center;color:#65765D;font-size:11px;}
.trace-auth-credit {border-top:1px solid #DCDDD2;margin:24px 0 0;padding-top:15px;text-align:center;color:#65765D;font-size:10px;}
#trace-auth button:focus-visible,#trace-auth-account button:focus-visible {outline:2px solid #65765D;outline-offset:4px;}
#trace-auth-account {display:grid;gap:10px;padding:13px 10px;margin:12px 0 4px;background:#F7F6F0;color:#272B28;border:1px solid #DCDDD2;border-radius:9px;font:500 12px/1.4 Manrope,Arial,sans-serif;}
.trace-auth-person {display:flex;align-items:center;gap:9px;min-width:0;}
.trace-auth-avatar {position:relative;display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:50%;background:#C6D3AC;color:#272B28;font-weight:800;overflow:hidden;}
#trace-auth-photo {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.trace-auth-person-text {min-width:0;display:grid;gap:3px;}
#trace-auth-name,#trace-auth-email {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#trace-auth-email {font-size:10px;color:#65765D;}
#trace-auth-logout {display:block;width:100%;min-height:38px;border:1px solid #DCDDD2;background:transparent;color:#272B28;border-radius:6px;font:700 11px Manrope,Arial,sans-serif;}
#trace-auth-logout:hover:not(:disabled) {background:#C6D3AC;}
#trace-auth-logout:disabled {opacity:.5;}
#trace-auth-account-error {margin:0;font-size:11px;overflow-wrap:anywhere;}
@keyframes traceAuthEnter {from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.trace-auth-shell{animation:none}#trace-auth-google{transition:none}}


.trace-install-button[hidden], #trace-install-help[hidden] {display:none!important;}
.trace-install-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;padding:9px 12px;border:1px solid #65765D;background:transparent;color:#272B28;border-radius:8px;font:700 12px/1.35 Manrope,Arial,sans-serif;cursor:pointer;touch-action:manipulation;}
.trace-install-button svg{width:18px;height:18px;flex:none;}
.trace-install-button:hover{background:#C6D3AC;}
.trace-install-button:focus-visible,#trace-install-help button:focus-visible{outline:2px solid #65765D;outline-offset:3px;}
#trace-install-login{margin-top:16px;}
#trace-install-help{width:min(92vw,390px);max-height:85dvh;overflow:auto;padding:25px;border:1px solid #DCDDD2;border-radius:18px;background:#F7F6F0;color:#272B28;box-shadow:0 20px 70px #272B2840;font:500 14px/1.65 Manrope,Arial,sans-serif;z-index:2147483001;}
#trace-install-help::backdrop{background:#272B2870;}
#trace-install-help h2{font:400 33px/1.1 "Instrument Serif",Georgia,serif;margin:0 0 12px;}
#trace-install-help p{margin:0 0 12px;color:#65765D;}
#trace-install-help ol{padding-left:22px;margin:12px 0 20px;}
#trace-install-help li{margin:7px 0;}
#trace-install-help button{display:block;width:100%;min-height:44px;border:0;border-radius:8px;background:#272B28;color:#F7F6F0;font:700 13px Manrope,Arial,sans-serif;}
#trace-install-topbar{width:auto;min-width:44px;margin-left:auto;padding:8px;border-color:#DCDDD2;background:#F7F6F0;color:#272B28;}
#trace-install-topbar:hover{background:#C6D3AC;}
#trace-install-help #trace-install-download{margin:0 0 10px;background:transparent;color:#272B28;border:1px solid #65765D;}
#trace-install-download[hidden]{display:none!important;}

.trace-module-select{display:block;width:100%;min-height:44px;border:1px solid #65765d;border-radius:5px;color:#f7f6f0;background:#272b28;font:inherit;padding:8px}.sidebar{overflow-y:auto}

.trace-isometric-concepts{border-top:1px solid #DCDDD2;margin-top:18px;padding-top:14px;font-size:1rem;line-height:1.65}
.trace-isometric-concepts summary{cursor:pointer;color:#46553F;font-weight:700;padding:5px 0}
.trace-isometric-concepts ol{padding-left:22px}.trace-isometric-concepts li{margin:8px 0}
.trace-isometric-concepts a{color:#46553F;text-decoration:underline}
.trace-concept-note,.trace-syllabus-note{color:#56634f;font-size:.9rem}
.trace-sheet-loading{min-height:250px;display:flex;align-items:center;justify-content:center;gap:16px;color:#65765D}
.trace-module-select{padding-right:28px;font-size:14px}
@media(max-width:640px){.trace-isometric-concepts{font-size:.95rem}.trace-isometric-concepts li{margin:10px 0}}

.questions-nav .trace-topic-name{font:600 13px/1.4 system-ui;color:#46553f;margin:14px 12px 5px}

.eg-premium-watermark {
  position: absolute !important;
  inset: 0 !important;
  z-index: 12 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  background: transparent !important;
}
.eg-premium-watermark-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  transform: rotate(-25deg);
  transform-origin: center center;
  color: #65765D;
  opacity: .10;
}
.eg-premium-watermark-title {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 5.5vw, 82px);
  font-weight: 400;
  letter-spacing: .065em;
  line-height: 1.05;
}
.eg-premium-watermark-divider {
  height: 1px;
  width: 76%;
  background: currentColor;
}
.eg-premium-watermark-credit {
  font-family: Manrope, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(8px, 1.08vw, 14px);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
/* Smaller watermark in the normal drawing view; fullscreen remains unchanged. */
.eg-premium-watermark:not(:fullscreen) .eg-premium-watermark-mark {
  transform: rotate(-25deg) scale(.68);
}
:fullscreen .eg-premium-watermark .eg-premium-watermark-mark {
  transform: rotate(-25deg) scale(1);
}


.eg-viewer { position: relative; }
.eg-spotify-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 36px !important;
  padding: 8px 13px !important;
  border: 1px solid #65765D !important;
  border-radius: 9px !important;
  background: #65765D !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  letter-spacing: .01em !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background-color .2s ease, border-color .2s ease !important;
}
.eg-spotify-toggle:hover, .eg-spotify-toggle[aria-expanded="true"] {
  background: #485943 !important;
  border-color: #485943 !important;
}
.eg-spotify-toggle:focus-visible,
.eg-spotify-panel button:focus-visible,
.eg-spotify-panel input:focus-visible,
.eg-spotify-panel a:focus-visible {
  outline: 3px solid #C6D3AC !important;
  outline-offset: 3px !important;
}
.eg-spotify-panel {
  position: absolute !important;
  top: 52px !important;
  right: 10px !important;
  width: min(360px, calc(100% - 20px)) !important;
  max-height: min(610px, calc(100dvh - 86px)) !important;
  overflow: auto !important;
  z-index: 1200 !important;
  background: #F7F6F0 !important;
  color: #272B28 !important;
  border: 1px solid #DCDDD2 !important;
  border-radius: 15px !important;
  box-shadow: 0 12px 32px rgba(39,43,40,.16) !important;
  padding: 13px !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.eg-spotify-panel[data-open="false"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
}
.eg-spotify-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.eg-spotify-heading strong { font-family: Georgia, 'Times New Roman', serif; font-size:18px; font-weight:600; letter-spacing:.015em; }
.eg-spotify-heading span { font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:#65765D; }
.eg-spotify-close { border:1px solid #DCDDD2; border-radius:8px; background:transparent; color:#272B28; width:30px; height:30px; cursor:pointer; font-size:18px; flex:0 0 auto; }
.eg-spotify-subtitle { font-size:12px; line-height:1.5; color:#65765D; margin:0 0 10px; }
.eg-spotify-embed { display:block; width:100%; height:242px; border:0; border-radius:12px; background:#DCDDD2; }
.eg-spotify-form { display:flex; gap:6px; margin-top:10px; }
.eg-spotify-input { min-width:0; flex:1; background:#fff; border:1px solid #DCDDD2; border-radius:9px; padding:10px; color:#272B28; font:inherit; font-size:12px; }
.eg-spotify-input::placeholder { color:#7d857b; }
.eg-spotify-load { background:#65765D; border:1px solid #65765D; color:white; padding:8px 11px; border-radius:9px; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
.eg-spotify-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:9px; }
.eg-spotify-foot a { color:#526a4c; font-size:12px; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.eg-spotify-foot small { color:#65765D; font-size:11px; text-align:right; }
.eg-spotify-status { font-size:12px; color:#b42318; margin-top:6px; min-height:0; }
.eg-spotify-status:empty { display:none; }
.eg-viewer:fullscreen .eg-spotify-panel, .eg-viewer.eg-viewer-pseudo-fullscreen .eg-spotify-panel {
  top: 54px !important;
  right: 12px !important;
  max-height: calc(100dvh - 70px) !important;
}
@media(max-width:640px) {
  .eg-spotify-toggle { font-size:12px !important; padding:7px 10px !important; min-height:34px !important; }
  .eg-spotify-panel { position:fixed !important; top:76px !important; right:7px !important; width:min(345px,calc(100% - 14px)) !important; max-height:calc(100dvh - 90px) !important; padding:11px !important; }
  .eg-spotify-embed { height:208px; }
  .eg-viewer:fullscreen .eg-spotify-panel, .eg-viewer.eg-viewer-pseudo-fullscreen .eg-spotify-panel { top:50px !important; right:7px !important; max-height:calc(100dvh - 62px) !important; }
}
/* Study Music is strictly a fullscreen-only feature. */
.eg-viewer:not(:fullscreen):not(.eg-viewer-pseudo-fullscreen) .eg-spotify-toggle,
.eg-viewer:not(:fullscreen):not(.eg-viewer-pseudo-fullscreen) .eg-spotify-panel {
  display: none !important;
}
@media(prefers-reduced-motion:reduce) {
  .eg-spotify-panel, .eg-spotify-toggle { transition:none !important; }
}


/* Trace brand layer: wordmark, tagline and icon tile only. Never targets drawings. */
.sidebar .brand-mark{background:#F7F6F0;border-radius:7px;width:48px;height:48px}
.sidebar .brand-name{font-size:36px;letter-spacing:-.018em}
.sidebar .brand-tagline{font-size:11.5px;font-weight:500;letter-spacing:.025em;color:#C6D3AC}
.sidebar-bottom > span{font-size:11px;font-weight:500;letter-spacing:.03em}
.sidebar-bottom small{color:#C6D3AC}


:root {
 --trace-ivory:#F7F6F0;--trace-sage:#C6D3AC;--trace-charcoal:#272B28;
 --trace-stone:#DCDDD2;--trace-olive:#65765D;
 --background:var(--trace-ivory);--foreground:var(--trace-charcoal);
 --primary:var(--trace-olive);--accent:var(--trace-sage);
 --border:var(--trace-stone);--muted:var(--trace-olive);
 --watermark-opacity:.10;
 --egg:var(--trace-ivory);--egg-light:#FAFAF5;--egg-paper:#FFFFFF;
 --egg-deep:#ECEFE6;--mustard:var(--trace-sage);--dust:var(--trace-olive);
 --copper:var(--trace-olive);--garnet:var(--trace-charcoal);
 --forest:var(--trace-charcoal);--forest-2:#383F39;--forest-3:#1D231F;
 --ink:var(--trace-charcoal);--ink-soft:#4E5D51;--copper-ink:var(--trace-olive);
 --rule:rgba(39,43,40,.18);--rule-soft:rgba(39,43,40,.11);
 --navy:var(--trace-charcoal);--navy-deep:#1D231F;
 --blue:var(--trace-olive);--blue-hover:#4F6049;--blue-light:#E8EDDF;
 --surface:#FFFFFF;--text:var(--trace-charcoal);--radius:8px;
}
html,body,#root,.app {background:var(--trace-ivory)!important;color:var(--trace-charcoal)}
body{font-family:Manrope,'Helvetica Neue',Arial,sans-serif}
.sidebar{background:var(--trace-charcoal)!important;border-right:1px solid rgba(247,246,240,.12)}
.sidebar .brand{gap:12px}
.sidebar .brand-mark{width:47px;height:47px;background:transparent!important;border-radius:11px;overflow:visible}
.sidebar .brand-logo{object-fit:contain;border-radius:11px}
.sidebar .brand-description{justify-content:center;gap:0;min-width:0}
.sidebar .brand-name{
 display:block;font-size:0!important;color:transparent!important;
 width:144px;height:40px;max-width:100%;
 background-image:url("./image-d966d08b16c4.png");background-position:left center;
 background-repeat:no-repeat;background-size:contain;
}
.sidebar .brand-tagline{font-size:9px;color:var(--trace-sage)!important;letter-spacing:.03em;margin-top:-2px}
.sidebar-divider,.sidebar-bottom-line{background:rgba(220,221,210,.17)!important}
.sidebar-section-label,.sidebar-questions-heading{color:#D5DAD0!important}
.sidebar .module{border-left-color:var(--trace-sage)!important}
.sidebar .module-icon,.sidebar .question-number,.sidebar .question-count{color:var(--trace-sage)!important}
.sidebar .module strong,.sidebar .module span{color:#F7F6F0!important}
.sidebar .question{color:#E3E8DF!important;border-bottom-color:rgba(247,246,240,.12)!important}
.sidebar .question::before{background:var(--trace-sage)!important}
.sidebar .question:hover{background:rgba(198,211,172,.12)!important;color:#fff!important}
.sidebar .question.active{background:rgba(198,211,172,.20)!important;color:#fff!important}
.sidebar .available-dot{background:var(--trace-sage)!important}
.sidebar-bottom small{color:var(--trace-sage)!important}
.sidebar-bottom>span{color:#D5DAD0!important}
.main{background:var(--trace-ivory)}
.header{border-bottom-color:var(--trace-stone)!important}
.header .eyebrow,.header .breadcrumb-separator{color:var(--trace-olive)!important}
.header h1,.header-description{color:var(--trace-charcoal)!important}
.header .status{background:#F0F2EB!important;color:var(--trace-charcoal)!important;border-color:var(--trace-stone)!important}
.header .status-dot{background:var(--trace-olive)!important}
.explanation,.workspace{background:#fff!important;border:1px solid var(--trace-stone)!important;border-radius:8px!important;box-shadow:0 12px 35px -30px rgba(39,43,40,.34)!important}
.question-card .section-heading{border-color:var(--trace-olive)!important}
.section-icon{color:var(--trace-olive)!important}
.section-heading h2{color:var(--trace-olive)!important}
.question-text{color:var(--trace-charcoal)!important}
.canvas-header{background:#F3F4EE!important;border-bottom-color:var(--trace-stone)!important}
.canvas-header::after{opacity:.34}
.canvas-heading{color:var(--trace-charcoal)!important}
.canvas-indicator{background:var(--trace-olive)!important}
.toggle-label,.eg-grid-field{color:var(--trace-charcoal)!important}
.toggle-label input:not(:checked){border-color:var(--trace-olive)!important;background:#fff!important}
.toggle-label input:checked{background:var(--trace-olive)!important;border-color:var(--trace-olive)!important}
.eg-grid-field select{background:white!important;color:var(--trace-charcoal)!important;border-color:var(--trace-stone)!important}
.eg-grid-field select:focus-visible{outline-color:var(--trace-olive)!important}
.drawing-container,.eg-viewer-viewport{background:white!important}
.eg-viewer:not(.eg-viewer-fullscreen):not(.eg-viewer-pseudo-fullscreen){background:#fff!important}
.eg-viewer:not(.eg-viewer-fullscreen):not(.eg-viewer-pseudo-fullscreen) .eg-viewer-toolbar{background:#F8F8F4!important;border-bottom-color:var(--trace-stone)!important}
.eg-viewer-toolbar>strong{color:var(--trace-charcoal)!important}
.eg-viewer-toolbar-actions>span{color:var(--trace-olive)!important}
.workspace-footer{background:#F3F4EE!important;color:var(--trace-olive)!important;border-color:var(--trace-stone)!important}
.workspace-footer span:last-child{border-left-color:var(--trace-stone)!important;color:var(--trace-charcoal)!important}
.step-badge{border-color:var(--trace-stone)!important;color:var(--trace-charcoal)!important}
.guide-content{border-left-color:var(--trace-sage)!important}
.guide-content h3{color:var(--trace-charcoal)!important}
.guide-content p{color:#4E5D51!important}
.progress-heading,.progress-heading strong{color:var(--trace-charcoal)!important}
.progress-track{background:var(--trace-stone)!important}
.progress-fill{background:var(--trace-olive)!important}
.controls{border-color:var(--trace-stone)!important}
html body button.eg-icon-only.eg-icon-only.eg-icon-only{
 background:white!important;border-color:var(--trace-stone)!important;
 color:var(--trace-charcoal)!important;border-radius:7px!important;
}
html body button.eg-icon-only.eg-icon-only[data-eg-icon="next"],
html body button.eg-icon-only.eg-icon-only[data-eg-icon="fullscreen"],
html body button.eg-icon-only.eg-icon-only[data-eg-icon="download"],
html body button.eg-icon-only.eg-icon-only[data-eg-icon="load"]{
 background:var(--trace-olive)!important;border-color:var(--trace-olive)!important;color:white!important;
}
html body button.eg-icon-only.eg-icon-only[data-eg-icon="exit-fullscreen"]{
 background:var(--trace-charcoal)!important;border-color:var(--trace-charcoal)!important;color:white!important;
}
@media (hover:hover){
 html body button.eg-icon-only.eg-icon-only.eg-icon-only:hover:not(:disabled){
 background:#E8EDDF!important;border-color:var(--trace-olive)!important;color:var(--trace-charcoal)!important;
 }
 html body button.eg-icon-only.eg-icon-only[data-eg-icon="next"]:hover:not(:disabled),
 html body button.eg-icon-only.eg-icon-only[data-eg-icon="fullscreen"]:hover:not(:disabled),
 html body button.eg-icon-only.eg-icon-only[data-eg-icon="download"]:hover:not(:disabled){
 background:#4F6049!important;color:white!important;
 }
}
.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen{background:var(--trace-ivory)!important}
.eg-viewer-fullscreen .eg-viewer-question,.eg-viewer-pseudo-fullscreen .eg-viewer-question{background:#fff!important;border-color:var(--trace-stone)!important}
.eg-viewer-fullscreen .eg-viewer-question strong,.eg-viewer-pseudo-fullscreen .eg-viewer-question strong{color:var(--trace-olive)!important}
.eg-viewer-fullscreen .eg-viewer-viewport,.eg-viewer-pseudo-fullscreen .eg-viewer-viewport{border-color:var(--trace-stone)!important}
.eg-viewer-fullscreen .eg-viewer-step-panel>div:first-child span,
.eg-viewer-pseudo-fullscreen .eg-viewer-step-panel>div:first-child span{color:var(--trace-olive)!important}
.eg-premium-watermark{display:none!important} /* the actual wordmark is under vector lines in SVG */
.eg-spotify-panel{background:#fff!important;border-color:var(--trace-stone)!important}
.eg-spotify-toggle{background:var(--trace-olive)!important;border-color:var(--trace-olive)!important}
.eg-spotify-input{border-color:var(--trace-stone)!important;color:var(--trace-charcoal)!important;background:white!important}
.eg-construction-player{border-color:var(--trace-stone)!important;background:#F8F9F5!important}
.eg-player-play{background:var(--trace-olive)!important;border-color:var(--trace-olive)!important}
.eg-player-timeline{accent-color:var(--trace-olive)!important}
.eg-player-speed{color:var(--trace-charcoal)!important;border-color:var(--trace-stone)!important;background:white!important}
.eg-player-speed-label,.eg-player-timeline-caption{color:var(--trace-olive)!important}
.developer-footer{border-top-color:var(--trace-stone)!important}
.footer-brand strong,.footer-developer strong{color:var(--trace-charcoal)!important}
.footer-brand span,.footer-developer p{color:var(--trace-olive)!important}
.footer-developer a{color:var(--trace-olive)!important;text-decoration-color:var(--trace-sage)!important}
.mobile-topbar{background:var(--trace-charcoal)!important;color:var(--trace-ivory)!important}
.mobile-brand{font-size:0!important;width:115px;height:35px;background-image:url("./image-d966d08b16c4.png");background-position:left center;background-repeat:no-repeat;background-size:contain}
:focus-visible{outline-color:var(--trace-olive)!important}
@media(max-width:760px){
 .header h1{font-size:clamp(32px,9vw,45px)}
 .sidebar .brand-name{width:138px;height:39px}
}
@media(prefers-reduced-motion:reduce){
 .trace-launch-overlay{display:none!important}
}


/* Trace motion layer — interface only. Never targets .drawing-container, .eg-viewer*, or any drawing SVG. Palette: existing Trace tokens only. */
:root{--tm-ease:cubic-bezier(.22,.8,.2,1);--tm-base:1.32s}
html.tm-seen{--tm-base:.05s}
html.tm-seen #trace-splash{display:none!important}
/* Opening: tighter timeline (~1.85s), guides drawn then removed, hand-off to the UI */
#trace-splash{animation-delay:1.4s!important;animation-duration:.45s!important}
#trace-splash .trace-splash-geometry svg path{stroke-dasharray:1;stroke-dashoffset:1;animation:tmDraw .8s var(--tm-ease) .15s forwards}
#trace-splash .trace-splash-geometry svg path:nth-of-type(2){animation-delay:.3s}
#trace-splash .trace-splash-geometry svg path:nth-of-type(3){stroke-dasharray:none;stroke-dashoffset:0;animation:none}
#trace-splash .trace-splash-geometry{animation:traceSplashGeometry .7s ease .15s both,tmGuidesOut .4s ease 1.02s forwards!important}
@keyframes tmDraw{to{stroke-dashoffset:0}}
@keyframes tmGuidesOut{to{opacity:0}}
/* Entrances (data attributes survive React re-renders) */
[data-tm="0"]{opacity:0}
[data-tm="1"]{animation:tmRise .72s var(--tm-ease) var(--d,0s) backwards}
.header h1[data-tm="1"]{animation:tmWipe .95s var(--tm-ease) var(--d,0s) backwards}
.header{position:relative}
.header::before{content:"";position:absolute;right:2%;top:-30%;width:min(240px,34vw);aspect-ratio:1;pointer-events:none;opacity:.5;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%2365765D' stroke-width='.4'%3E%3Cpath d='M4 70H96M30 6V94' stroke='%23DCDDD2' stroke-width='.6'/%3E%3Ccircle cx='30' cy='70' r='42' stroke-dasharray='1 2.4' stroke='%23C6D3AC'/%3E%3Cpath d='M72 70A42 42 0 0 0 30 28'/%3E%3Ccircle cx='30' cy='70' r='1.4' fill='%2365765D'/%3E%3C/svg%3E") center/contain no-repeat;
 clip-path:inset(0 100% 0 0);animation:tmGuide 1.4s var(--tm-ease) calc(var(--tm-base) + .5s) forwards}
.header>*{position:relative}
@keyframes tmGuide{to{clip-path:inset(0 0 0 0)}}
@keyframes tmRise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes tmWipe{from{opacity:0;clip-path:inset(-.2em 100% -.2em 0);transform:translateY(.3em)}to{opacity:1;clip-path:inset(-.2em -.05em -.2em 0);transform:none}}
/* Question / step swaps: opacity + tiny offset only, no layout shift, canvas untouched */
[data-swap="1"]{animation:tmFade .5s var(--tm-ease) both}
[data-swap="fwd"]{animation:tmStepF .46s var(--tm-ease) both}
[data-swap="back"]{animation:tmStepB .46s var(--tm-ease) both}
@keyframes tmFade{from{opacity:0}to{opacity:1}}
@keyframes tmStepF{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes tmStepB{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:none}}
/* Sidebar modules & questions */
.sidebar .module,.sidebar .question{transition:background-color .35s var(--tm-ease),border-color .35s var(--tm-ease),box-shadow .35s var(--tm-ease),transform .35s var(--tm-ease),color .3s}
.sidebar .module-icon,.sidebar .question-name{transition:transform .4s var(--tm-ease)}
.sidebar .question::before{transform-origin:50% 0;transition:transform .45s var(--tm-ease),opacity .3s}
.sidebar .question.active::before{animation:tmGrow .5s var(--tm-ease) both}
@keyframes tmGrow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@media(hover:hover){
 .sidebar .module:hover{transform:translateY(-2px);box-shadow:0 10px 24px -16px rgba(0,0,0,.55);border-left-color:var(--trace-ivory)!important}
 .sidebar .module:hover .module-icon{transform:translateX(4px)}
 .sidebar .question:hover .question-name{transform:translateX(3px)}
}
/* Tactile controls */
.control-button,button.eg-icon-only{transition:transform .25s var(--tm-ease),background-color .3s,border-color .3s,color .3s,box-shadow .3s!important}
.control-button:active:not(:disabled),button.eg-icon-only:active:not(:disabled){transform:scale(.95)!important}
@media(hover:hover){.control-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 18px -12px rgba(39,43,40,.5)}}
.step-badge{transition:background-color .4s,color .4s,border-color .4s}
.progress-fill{transition:width .7s var(--tm-ease)!important}
/* Cursor ring (fine pointers only, hidden over drawings) */
#tm-ring{position:fixed;left:0;top:0;width:30px;height:30px;margin:-15px 0 0 -15px;border:1px solid rgba(101,118,93,.55);border-radius:50%;pointer-events:none;z-index:2147482000;opacity:0;transition:opacity .3s,background-color .3s,border-color .3s;will-change:transform}
#tm-ring.on{opacity:1}#tm-ring.act{background:rgba(198,211,172,.28);border-color:var(--trace-olive)}#tm-ring.off{opacity:0}
@media(prefers-reduced-motion:reduce),(hover:none){#tm-ring{display:none}}
@media(prefers-reduced-motion:reduce){[data-tm="0"]{opacity:1}[data-tm],[data-swap],.header::before{animation:none!important}.header::before{clip-path:none}}


.trace-fixed-mark {position:absolute!important;left:50%!important;top:63.5%!important;width:34.5%!important;max-width:360px!important;height:auto!important;transform:translate(-50%,-50%)!important;opacity:.10!important;pointer-events:none!important;user-select:none!important;z-index:2!important;animation:none!important;transition:none!important;}
.eg-viewer:not(.eg-viewer-fullscreen):not(.eg-viewer-pseudo-fullscreen) .eg-viewer-viewport {height:clamp(340px,58vh,650px)!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) {height:100dvh!important;min-height:0!important;padding:6px 10px max(6px,env(safe-area-inset-bottom))!important;gap:3px!important;overflow:hidden!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-viewer-viewport {flex:1 1 0!important;min-height:0!important;height:auto!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-viewer-toolbar {margin:0!important;padding:0!important;gap:5px!important;flex-shrink:0!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-viewer-toolbar > strong {font-size:14px!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-viewer-question {padding:4px 8px!important;margin:0!important;max-height:54px!important;overflow:auto!important;flex-shrink:0!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-viewer-question p {font-size:12px!important;line-height:1.3!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-construction-player {flex:0 0 auto!important;margin:0!important;padding:3px 8px!important;gap:8px!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-player-play {width:32px!important;height:32px!important;min-width:32px!important;flex-basis:32px!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-player-speed-wrap {flex-direction:row!important;align-items:center!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-player-speed {min-height:28px!important;padding:2px 5px!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-viewer-step-panel {flex:0 0 auto!important;padding:3px 2px 0!important;max-height:none!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-viewer-step-panel > div:first-child {margin-bottom:3px!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-viewer-step-panel > div:first-child strong {font-size:15px!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-viewer-step-panel > p {font-size:11px!important;line-height:1.3!important;margin:0 0 4px!important;max-height:32px!important;overflow:auto!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-viewer-step-panel > div:nth-last-child(2) {height:3px!important;margin-bottom:4px!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-viewer-step-actions {gap:5px!important;flex-wrap:nowrap!important;}
html body .eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) button.eg-icon-only.eg-icon-only.eg-icon-only {width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;flex:0 0 34px!important;}
.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-viewer-attribution {display:block!important;flex-shrink:0!important;padding:2px!important;margin:0!important;font-size:9px!important;line-height:1.1!important;}
.trace-music-hint {position:absolute;z-index:1001;top:48px;right:12px;background:#272B28;color:#F7F6F0;border:1px solid #65765D;border-radius:7px;padding:8px 12px;font-size:11px;pointer-events:none;box-shadow:0 3px 12px #0002;}
.trace-music-hint[hidden] {display:none!important;}
.trace-spotify-host iframe {width:100%;border:0;display:block;}
@media(max-width:760px){.eg-viewer:not(.eg-viewer-fullscreen):not(.eg-viewer-pseudo-fullscreen) .eg-viewer-viewport{height:clamp(260px,49svh,480px)!important;min-height:260px!important;} .eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-viewer-toolbar-actions{width:auto!important;justify-content:center!important;gap:4px!important;} .trace-music-hint{top:75px;right:8px;} }
@media(max-height:450px){.eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-viewer-question{max-height:32px!important;} .eg-viewer:is(.eg-viewer-fullscreen,.eg-viewer-pseudo-fullscreen) .eg-viewer-step-panel > p{max-height:16px!important;} }


#trace-free-open{display:block;width:100%;min-height:52px;background:#272B28;color:#F7F6F0;border:1px solid #272B28;border-radius:8px;font:700 14px Manrope,Arial,sans-serif;transition:background .2s;}
#trace-free-open:hover{background:#65765D} .tf-or{display:flex;gap:12px;align-items:center;margin:15px 0;color:#65765D;font-size:11px}.tf-or:before,.tf-or:after{content:"";height:1px;background:#DCDDD2;flex:1}
#trace-free{box-sizing:border-box;width:min(1040px,96vw);max-height:94dvh;padding:0;border:1px solid #DCDDD2;border-radius:16px;background:#F7F6F0;color:#272B28;overflow:auto;overscroll-behavior:contain;font:500 14px/1.5 Manrope,Arial,sans-serif;box-shadow:0 18px 80px #272B2840;}
#trace-free::backdrop{background:#272B28aa;backdrop-filter:blur(5px)} #trace-free *{box-sizing:border-box} #trace-free .tf-shell{padding:clamp(16px,3vw,32px)}
#trace-free .tf-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:20px} #trace-free .tf-kicker{font-size:10px;letter-spacing:.17em;color:#65765D;font-weight:800} #trace-free h2{font:400 clamp(31px,5vw,49px)/1.05 "Instrument Serif",Georgia,serif;margin:6px 0} #trace-free p{margin:6px 0 0;color:#465442} #trace-free button{font:700 12px Manrope,Arial,sans-serif;color:#272B28;background:#F7F6F0;border:1px solid #DCDDD2;border-radius:7px;padding:10px 14px;min-height:42px;cursor:pointer} #trace-free button:hover:not(:disabled){border-color:#65765D;background:#e9edde} #trace-free button:focus-visible{outline:2px solid #65765D;outline-offset:3px} #trace-free button:disabled{opacity:.4;cursor:not-allowed} #trace-free #tf-close{min-width:44px;flex-shrink:0;font-size:18px;padding:7px}
#trace-free .tf-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px} #trace-free .tf-tabs button{text-align:left;display:grid;gap:5px;padding:12px} #trace-free .tf-tabs small{color:#65765D;font-size:10px;letter-spacing:.07em} #trace-free .tf-tabs button[aria-pressed=true]{background:#C6D3AC;border-color:#65765D} #trace-free .tf-tabs strong{font-size:13px} #trace-free .tf-question{border-top:1px solid #DCDDD2;padding:12px 0} #trace-free .tf-question p{color:#272B28;line-height:1.65}
#trace-free .tf-drawing{background:white;border:1px solid #DCDDD2;border-radius:8px;overflow:auto;text-align:center} #trace-free #tf-svg{display:block;width:100%;height:auto;max-height:55vh;min-height:200px;margin:auto} #trace-free .tf-guide{margin-top:14px} #trace-free .tf-step{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap} #trace-free #tf-count{font-size:11px;font-weight:800;color:#65765D} #trace-free #tf-step-title{font-size:16px} #trace-free progress{display:block;width:100%;height:6px;accent-color:#65765D;margin-top:13px} #trace-free .tf-controls{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px} #trace-free #tf-next,#trace-free #tf-signin{background:#272B28;color:#F7F6F0;border-color:#272B28} #trace-free #tf-next:hover:not(:disabled),#trace-free #tf-signin:hover{background:#65765D} #trace-free .tf-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid #DCDDD2;margin-top:20px;padding-top:15px;color:#65765D;font-size:12px} #trace-free .tf-new{animation:tfDraw .5s ease-out both} @keyframes tfDraw{from{opacity:0}to{opacity:1}}
@media(max-width:600px){#trace-free{width:96vw;max-height:96dvh;border-radius:12px} #trace-free .tf-tabs{grid-template-columns:1fr} #trace-free .tf-tabs button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:43px;padding:8px} #trace-free .tf-tabs strong{font-size:11px;text-align:right} #trace-free #tf-svg{min-width:540px;max-height:none} #trace-free .tf-controls button{flex:1 1 auto} #trace-free .tf-footer{align-items:stretch;flex-direction:column}}
@media(prefers-reduced-motion:reduce){#trace-free .tf-new{animation:none}}


#trace-free .tf-new {animation:none;}
#trace-free .tf-new > :not(.tf-stroke-draw) {animation:tfGuestAppear .28s ease-out both;}
#trace-free .tf-stroke-draw {stroke-dasharray:1;stroke-dashoffset:1;animation:tfGuestStroke .56s ease-out forwards;}
@keyframes tfGuestStroke {to {stroke-dashoffset:0;}}
@keyframes tfGuestAppear {from {opacity:0;} to {opacity:1;}}
#trace-free {max-width:calc(100vw - 16px);margin:auto;}
#trace-free .tf-controls {position:sticky;bottom:0;z-index:2;background:#F7F6F0;padding:8px 0 10px;box-shadow:0 -5px 10px #F7F6F0;}
#trace-free .tf-drawing {overscroll-behavior:contain;}
#trace-free #tf-svg {min-width:0;max-height:none;}
#trace-free[open] {visibility:visible;opacity:1;}
@media(max-width:600px){#trace-free .tf-shell {padding:12px;} #trace-free .tf-tabs {grid-template-columns:repeat(2,minmax(0,1fr));} #trace-free .tf-tabs button {display:grid;text-align:left;padding:7px;min-width:0;} #trace-free .tf-tabs strong {text-align:left;line-height:1.3;} #trace-free .tf-tabs small {font-size:9px;} #trace-free .tf-head {margin-bottom:12px;} #trace-free .tf-controls {gap:5px;} #trace-free .tf-controls button {padding:7px 9px;min-height:44px;}}
@media(prefers-reduced-motion:reduce){#trace-free .tf-new > *,#trace-free .tf-stroke-draw {animation:none!important;stroke-dashoffset:0;}}


#trace-free .tf-drawing{position:relative;overflow:hidden;min-width:0;isolation:isolate;}
#trace-free #tf-canvas-scroll{overflow:auto;max-height:56dvh;overscroll-behavior:contain;touch-action:pan-x pan-y;}
#trace-free #tf-svg{width:100%;height:auto;max-width:none;min-height:0;min-width:0;max-height:none;margin:0;}
#trace-free .tf-zoom-tools{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-bottom:7px;}
#trace-free .tf-zoom-tools button{padding:6px 11px;min-height:40px;}
#trace-free #tf-zoom-value{font-size:11px;color:#65765D;font-variant-numeric:tabular-nums;min-width:38px;text-align:center;}
#trace-free .tf-controls{z-index:4;}
@media(max-width:600px){#trace-free{width:100%;max-width:100%;max-height:100dvh;height:100dvh;border-radius:0;margin:0;padding:0;}
#trace-free .tf-shell{padding:12px 12px max(12px,env(safe-area-inset-bottom));min-width:0;}
#trace-free .tf-head h2{font-size:30px;}#trace-free .tf-head p{font-size:12px;}
#trace-free .tf-tabs{gap:5px;}#trace-free .tf-tabs button{padding:8px 6px;min-height:54px;overflow-wrap:anywhere;}
#trace-free .tf-question p{font-size:13px;line-height:1.5;}#trace-free .tf-zoom-tools button{min-height:44px;}
#trace-free #tf-canvas-scroll{max-height:48dvh;}#trace-free .tf-controls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding-bottom:max(10px,env(safe-area-inset-bottom));}
#trace-free .tf-controls button{grid-column:span 2;min-width:0;padding:7px 4px;font-size:12px;}
#trace-free #tf-prev,#trace-free #tf-next{grid-column:span 3;grid-row:1;}
#trace-free #tf-reset,#trace-free #tf-play,#trace-free #tf-final{grid-row:2;}
#trace-free .tf-guide{margin-top:10px;}#trace-free #tf-instruction{font-size:13px;}
}

trace-final-view{display:block;width:100%;color:#272B28;font-family:Manrope,Arial,sans-serif}
trace-final-view[hidden]{display:none!important}
.t3-switch,.t3-tools{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.t3-switch{width:max-content;border-radius:20px;border:1px solid #DCDDD2;padding:3px;margin:6px 0 9px;background:#F7F6F0}
trace-final-view button,trace-final-view select,#trace-free trace-final-view button{appearance:auto;min-height:32px;padding:5px 11px;border:1px solid #DCDDD2;border-radius:8px;background:#F7F6F0;color:#272B28;font:600 12px/1.3 Manrope,Arial,sans-serif;cursor:pointer}
trace-final-view .t3-switch button,#trace-free .t3-switch button{border:0;border-radius:18px}
trace-final-view [aria-pressed=true],#trace-free trace-final-view button[aria-pressed=true]{background:#C6D3AC}
.t3-switch button[aria-pressed=true],#trace-free .t3-switch button[aria-pressed=true]{background:#272B28;color:#F7F6F0}
.t3-host{display:flex;flex-direction:column;background:#F7F6F0;border:1px solid #DCDDD2;border-radius:10px;overflow:hidden}
.t3-stage{position:relative;height:clamp(300px,62dvh,770px);min-height:0}
.t3-stage svg{display:block;width:100%;height:100%;touch-action:none;font:15px 'Times New Roman',serif;user-select:none;cursor:grab}
.t3-stage svg:active{cursor:grabbing}
.t3-mark{position:absolute;bottom:14px;right:14px;width:clamp(60px,9%,104px);opacity:.22;pointer-events:none}
.t3-status{position:absolute;inset:45% 12px auto;text-align:center}
.t3-tools{padding:7px;border-top:1px solid #DCDDD2}
.t3-host:fullscreen,.t3-host.t3-full{background:#F7F6F0;width:100%;height:100dvh;border:0;border-radius:0}
.t3-host.t3-full{position:fixed;inset:0;z-index:2147483647}
.t3-host:fullscreen .t3-stage,.t3-host.t3-full .t3-stage{flex:1}
.eg-viewer.t3-active>:not(trace-final-view),.tf-shell.t3-active>:is(.tf-drawing,.tf-zoom-tools,.tf-guide,.tf-controls){display:none!important}
@media(max-width:600px){.t3-tools{gap:3px;padding:5px}trace-final-view .t3-tools button,#trace-free .t3-tools button{padding:6px 8px}.t3-stage{height:clamp(300px,56dvh,600px)}}

/* Keep the original Trace wordmark visible at the right of the mobile header. */
@media (max-width: 760px) {
  .mobile-topbar .mobile-menu-button { margin-right: auto; }
  .mobile-topbar .mobile-brand {
    display: block; order: 2; flex: 0 1 115px; min-width: 74px;
    width: 115px; height: 35px; margin-left: 0;
    background-position: right center;
  }
  .mobile-topbar #trace-install-topbar { order: 1; margin-left: 0; flex-shrink: 0; }
}
