/* ALOS v1 Home + Pathway — dark language from landing.css / styles.css */
.v1-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg, #0f1419);
  color: var(--text, #e6edf3);
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.v1-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--border, #2d3a4d);
  background: var(--surface, #1a2332);
  position: sticky;
  top: 0;
  z-index: 10;
}
.v1-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: inherit;
}
.v1-logo img { width: 24px; height: 24px; }
.v1-sp { flex: 1; }
.v1-wrap { max-width: 720px; margin: 0 auto; padding: 1.6rem 1.25rem 4rem; }
.v1-head { font-size: 1.85rem; line-height: 1.15; font-weight: 760; margin: 0 0 0.55rem; }
.v1-lede { color: var(--text-muted, #8b949e); margin: 0 0 1.5rem; font-size: 1.02rem; line-height: 1.55; }
.v1-drop {
  border: 1.5px dashed var(--border, #2d3a4d);
  border-radius: 12px;
  padding: 2rem 1.25rem;
  text-align: center;
  background: var(--surface, #1a2332);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.v1-drop:hover, .v1-drop.is-over, .v1-drop.drag-over {
  border-color: var(--accent, #58a6ff);
  background: rgba(88, 166, 255, 0.04);
}
.v1-drop p { margin: 0.35rem 0 0; color: var(--text-muted, #8b949e); }
.v1-link-row { display: flex; gap: 0.5rem; margin-top: 1rem; }
.v1-link-row input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border, #2d3a4d);
  border-radius: 8px;
  background: var(--bg, #0f1419);
  color: var(--text, #e6edf3);
  font: inherit;
}
.v1-link-row input:focus { outline: none; border-color: var(--accent, #58a6ff); }
.v1-list { margin: 2rem 0 0; padding: 0; list-style: none; }
.v1-list a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--surface, #1a2332);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border, #2d3a4d);
}
.v1-list a:hover { border-color: var(--accent, #58a6ff); }
.v1-list small { display: block; color: var(--text-muted, #8b949e); margin-top: 0.2rem; }
.v1-btn {
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  background: var(--accent, #58a6ff);
  color: #0d1117;
  font-weight: 680;
  cursor: pointer;
  font-family: inherit;
}
.v1-btn:hover { background: var(--accent-hover, #79b8ff); }
.v1-btn-ghost {
  background: transparent;
  color: var(--text-muted, #8b949e);
  border: 1px solid var(--border, #2d3a4d);
}
.v1-pathway {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 53px);
}
.v1-sources {
  border-right: 1px solid var(--border, #2d3a4d);
  padding: 1rem 1.25rem;
  background: var(--surface, #1a2332);
}
.v1-sources h2, .v1-work h2, .v1-outline h2 {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted, #8b949e);
  margin: 0 0 0.75rem;
}
.v1-source {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border, #2d3a4d);
  font-size: 0.95rem;
  word-break: break-word;
}
.v1-title { font-size: 1.15rem; margin: 0; }
.v1-title input {
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  min-width: 12ch;
  max-width: 42ch;
}
.v1-title input:hover, .v1-title input:focus {
  border-color: var(--border, #2d3a4d);
  background: var(--bg, #0f1419);
  outline: none;
}
.v1-work { padding: 1.25rem 1.5rem 2rem; }
.v1-split { display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; }
.v1-outline button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.35rem;
  border: 1px solid var(--border, #2d3a4d);
  background: var(--surface, #1a2332);
  color: inherit;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}
.v1-outline button:hover, .v1-outline button.is-open {
  border-color: var(--accent, #58a6ff);
}
.v1-outline button.is-open { background: rgba(88, 166, 255, 0.06); }
.v1-module {
  background: var(--surface, #1a2332);
  border: 1px solid var(--border, #2d3a4d);
  border-radius: 12px;
  padding: 1.25rem;
  min-height: 220px;
}
.v1-module h3 { margin: 0 0 0.35rem; }
.v1-module p { color: var(--text-muted, #8b949e); }
.v1-empty-note { font-size: 0.9rem; color: var(--text-muted, #8b949e); }
@media (max-width: 800px) {
  .v1-pathway, .v1-split { grid-template-columns: 1fr; }
  .v1-sources { border-right: 0; border-bottom: 1px solid var(--border, #2d3a4d); }
}
.v1-building { margin-top: 1rem; color: var(--text-muted, #8b949e); }
.v1-error, .v1-status.is-error { margin-top: 1rem; color: #ffb4b0; }
.v1-drop[aria-busy="true"], .v1-drop.is-busy { pointer-events: none; opacity: 0.55; }
.v1-path-goal { margin: 0 0 0.5rem; font-weight: 600; color: var(--text, #e6edf3); }
.v1-confidence { margin: 0 0 1rem; color: #e3b341; font-size: 0.9rem; }
.v1-practice { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.75rem; color: var(--text-muted, #8b949e); margin: 0 0 0.35rem; }
.v1-goal { margin: 0 0 0.75rem; color: var(--text, #e6edf3); }
.v1-steps { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--text, #e6edf3); }
.v1-snippet { margin: 0; padding: 0.75rem 1rem; border-left: 3px solid var(--accent, #58a6ff); color: var(--text-muted, #8b949e); font-size: 0.9rem; background: var(--bg, #0f1419); }
.v1-module p.v1-goal { color: var(--text, #e6edf3); }
.v1-refine { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border, #2d3a4d); }
.v1-refine label { display: block; margin-bottom: 0.35rem; }
.v1-refine textarea {
  display: block; width: 100%; box-sizing: border-box;
  margin: 0 0 0.5rem; padding: 0.55rem 0.7rem;
  border: 1px solid var(--border, #2d3a4d); border-radius: 8px;
  background: var(--bg, #0f1419); color: var(--text, #e6edf3); font: inherit;
}
.v1-work > .v1-building, .v1-work > .v1-error { margin-top: 0; margin-bottom: 0.75rem; }


.v1-mod-head { display: flex; align-items: flex-start; gap: 0.5rem; }
.v1-mod-head h3 { flex: 1; margin: 0; }
.v1-editable {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.15rem 0.3rem;
  min-height: 1.2em;
}
.v1-editable:hover, .v1-editable:focus {
  border-color: var(--border, #2d3a4d);
  background: var(--bg, #0f1419);
  outline: none;
}
.v1-step-row { display: flex; gap: 0.5rem; align-items: flex-start; }
.v1-step-text { flex: 1; }
.v1-tools { display: flex; gap: 0.25rem; flex-shrink: 0; }
.v1-tools button, .v1-mini {
  border: 1px solid var(--border, #2d3a4d);
  background: transparent;
  color: var(--text-muted, #8b949e);
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.v1-tools button:hover, .v1-mini:hover { border-color: var(--accent, #58a6ff); color: inherit; }
.v1-step-snip { margin: 0.35rem 0 0.7rem; padding: 0.45rem 0.7rem; border-left: 3px solid var(--accent, #58a6ff); color: var(--text-muted, #8b949e); font-size: 0.85rem; background: var(--bg, #0f1419); }
.v1-outline-row { display: flex; gap: 0.25rem; align-items: stretch; margin-bottom: 0.35rem; }
.v1-outline-row > button[data-id] { flex: 1; margin-bottom: 0; }
.v1-add-row { margin-top: 0.5rem; }
.v1-path-goal.v1-editable { font-weight: 600; }

.v1-setup { margin: 0 0 0.75rem; color: var(--text-muted, #8b949e); white-space: pre-wrap; }
.v1-beat { margin: 0 0 1rem; }
.v1-beat h4 {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-muted, #8b949e); margin: 0 0 0.35rem;
}
.v1-show, .v1-md { white-space: pre-wrap; color: var(--text, #e6edf3); font-size: 0.95rem; }
.v1-do-cell {
  border: 1px solid var(--border, #2d3a4d); border-radius: 8px;
  padding: 0.7rem 0.8rem; margin: 0 0 0.6rem; background: var(--bg, #0f1419);
}
.v1-do-kind { margin: 0 0 0.35rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted, #8b949e); }
.v1-do-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92rem; }
.v1-answers { margin: 0.25rem 0 0; }
.v1-answers summary, .v1-reference summary { cursor: pointer; color: var(--text-muted, #8b949e); }
.v1-wrap-end { margin-top: 1.25rem; }
.v1-check-work, .v1-takeaways, .v1-done { margin: 0 0 1rem; }
.v1-done label { color: var(--text, #e6edf3); }
