/* Search-first home. Shared learning, account and assessment views remain in styles.css. */
body.search-experience {
  --bg: #111318; --ink: #eef0f7; --muted: #a0a6b6; --muted-2: #939bad;
  --line: #2d323e; --cyan: #a8b6ff; --panel-strong: #1b1e26;
  --search-surface: #1b1e26; --search-accent: #a8b6ff; --search-button-ink: #172044;
  background: var(--bg); background-image: none; color: var(--ink);
  font-family: "Manrope", "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
}
body.search-experience.light-mode {
  --bg: #fafbfe; --ink: #202638; --muted: #626c80; --muted-2: #727d91;
  --line: #e2e6ef; --cyan: #5569ce; --panel-strong: #fff;
  --search-surface: #fff; --search-accent: #5468d4; --search-button-ink: #fff;
  background: var(--bg);
}
body.search-experience::before, body.search-experience::after { display: none; }
.search-experience .main-content { min-width: 0; background: none; }
.search-experience .topbar { height: 78px; padding: 0 36px; border: 0; background: transparent; box-shadow: none; }
.search-experience .topbar-brand { border: 0; gap: 9px; }
.search-experience .topbar-brand strong { color: var(--ink); font-size: 15px; letter-spacing: .1em; }
.search-experience .topbar-brand small, .search-experience .breadcrumb, .search-experience .provider-pill { display: none; }
.search-experience .topbar-brand-signal { background: var(--search-accent); box-shadow: none; }
.search-experience .sidebar-toggle, .search-experience .theme-toggle { border: 0; background: transparent; color: var(--muted); }
.search-experience .avatar.small { background: var(--search-accent); color: var(--search-button-ink); border-radius: 50%; width: 34px; height: 34px; }
.search-experience #dashboardView { max-width: 1720px; width: 100%; padding: 0 44px 64px; margin: auto; }
.search-home { width: min(720px, 100%); margin: 0 auto; padding-top: clamp(84px, 19vh, 220px); padding-bottom: 60px; transition: padding .3s ease; }
.search-brand { display: flex; align-items: center; justify-content: center; gap: 15px; }
.search-brand-mark { color: var(--search-accent); font-size: 53px; line-height: 1; font-weight: 400; }
.search-brand h1 { margin: 0; color: var(--ink); font: 600 76px/1.15 "Manrope", sans-serif; letter-spacing: -.065em; }
.search-brand h1 span { color: var(--search-accent); }
.search-tagline { margin: 21px 0 34px; color: var(--muted); text-align: center; font-size: 17px; letter-spacing: .08em; }
.search-experience .search-form { display: block; width: 100%; max-width: none; padding: 0; }
.search-experience .search-form .topic-input-wrap { min-height: 68px; gap: 15px; padding: 8px 9px 8px 23px; border: 1px solid var(--line); border-radius: 24px; background: var(--search-surface); box-shadow: 0 5px 24px #18203c06; transition: border-color .2s, box-shadow .2s; }
.search-experience .search-form .topic-input-wrap:focus-within { border-color: var(--search-accent); box-shadow: 0 0 0 4px #7183ee13, 0 8px 32px #18203c08; }
.search-icon { flex: 0 0 auto; color: var(--muted-2); }
.search-experience .search-form #topicInput { min-width: 0; height: auto; padding: 12px 0; font-size: 17px; line-height: 1.5; color: var(--ink); background: transparent; box-shadow: none; border: 0; }
.search-experience .search-form #topicInput::placeholder { color: var(--muted-2); opacity: 1; }
.search-experience .search-submit { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; padding: 0; border-radius: 16px; background: var(--search-accent); color: var(--search-button-ink); box-shadow: none; font-size: 24px; }
.search-submit:disabled { opacity: .65; cursor: wait; }
.search-options { margin-top: 17px; }
.search-goal-field { display: block; margin: 20px 0 0; }
.search-goal-field > span { display: block; margin: 0 0 10px 4px; color: var(--ink); font-size: 15px; }
.search-goal-field em { margin-left: 8px; color: var(--muted); font-style: normal; font-size: 12px; }
.search-experience .search-goal-field input { width: 100%; min-width: 0; padding: 17px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--search-surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.6; }
.search-goal-field input::placeholder { color: var(--muted-2); opacity: 1; }
.search-options summary { display: flex; width: fit-content; align-items: center; justify-content: center; gap: 8px; margin: auto; padding: 7px 12px; border-radius: 9px; list-style: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.search-options summary::-webkit-details-marker { display: none; }
.search-options summary > span:not(.options-chevron) { color: var(--muted-2); }
.search-options summary:hover { background: var(--search-surface); }
.search-options[open] .options-chevron { transform: rotate(180deg); }
.search-options-panel { margin-top: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--search-surface); }
.search-experience .search-options-panel label { display: block; min-width: 0; margin: 0; }
.search-experience .search-options-panel label > span { display: block; margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.search-experience .search-options-panel input, .search-experience .search-options-panel select { width: 100%; min-width: 0; height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; }
.search-experience .search-options-panel input::placeholder { color: var(--muted-2); opacity: 1; }
.search-experience .search-options-panel .mission-context-grid { margin-top: 18px; gap: 18px; }
.search-experience .search-options-panel .form-row { gap: 18px; margin-top: 18px; }
.search-options-hint { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.search-experience .generation-job-panel { margin-top: 24px; padding: 22px; border-radius: 18px; border-color: var(--line); background: var(--search-surface); }
.search-experience .generation-job-head strong { color: var(--ink); font-size: 14px; line-height: 1.7; }
.search-experience .generation-job-foot small { color: var(--muted); }
.search-experience .generation-error { margin-top: 20px; font-size: 14px; line-height: 1.7; }
.search-spinner { width: 20px; height: 20px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: search-spin .8s linear infinite; }
@keyframes search-spin { to { transform: rotate(360deg); } }
.search-experience .has-results .search-home { padding-top: 32px; padding-bottom: 36px; }
.has-results .search-brand h1 { font-size: 40px; }
.has-results .search-brand-mark { font-size: 32px; }
.has-results .search-tagline { margin: 12px 0 22px; font-size: 14px; }
.search-experience .mission-map { margin-top: 0; padding-top: 30px; border-top: 1px solid var(--line); animation: results-in .35s ease both; }
@keyframes results-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.search-experience .mission-map .section-heading { flex-wrap: wrap; gap: 18px; }
.search-experience .mission-map .section-heading h2 { color: var(--ink); font-size: 27px; letter-spacing: -.025em; }
.search-experience .mission-map .section-kicker { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.search-experience .mission-map .section-actions { flex-wrap: wrap; margin: 0; }
.search-experience .ghost-button { color: var(--muted); background: var(--search-surface); border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.search-experience .mission-map .path-meta { color: var(--muted); font: 12px/1.7 inherit; }
.search-experience .mission-map .tree-board { border: 1px solid var(--line); border-radius: 24px; background: var(--search-surface); padding: 30px; }
.search-experience .tree-board::before, .search-experience .tree-board::after { display: none; }
.search-experience .mission-map .augment-skill-card { position: static; display: grid; gap: 16px; margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--search-surface); }
.search-experience .augment-index { color: var(--search-accent); background: transparent; border-color: var(--line); }
.search-experience .augment-skill-copy strong { color: var(--ink); }
.search-experience .augment-skill-copy small { color: var(--muted); line-height: 1.7; }
.search-experience .augment-skill-control input { background: var(--bg); color: var(--ink); border-color: var(--line); border-radius: 10px; }
.search-experience .augment-skill-control .primary-button { background: var(--search-accent); color: var(--search-button-ink); border-radius: 10px; box-shadow: none; }
.search-experience .mission-map .filter-row { position: static; gap: 8px; margin: 22px 0 14px; }
.search-experience .filter { font-size: 12px; }
.search-experience .filter.active { background: var(--search-accent); color: var(--search-button-ink); }
.search-experience .filter.active span { color: inherit; }
.search-experience .mission-map .goal-contract-strip { border-color: var(--line); border-left-color: var(--search-accent); background: var(--line); border-radius: 14px; }
.search-experience .goal-contract-strip > div { background: var(--search-surface); }
.search-experience .mission-map .goal-contract-strip strong { color: var(--ink); }
.search-experience .mission-map .goal-metrics > span { background: var(--bg); color: var(--search-accent); border-color: var(--line); }
.search-experience .tree-root-node, .search-experience .mission-map .branch-header, .search-experience .mission-map .skill-node { background: var(--search-surface); color: var(--ink); border-color: var(--line); border-radius: 14px; }
.search-experience .mission-map .node-title, .search-experience .mission-map .branch-header strong { color: var(--ink); }
.search-experience .mission-map .node-description, .search-experience .mission-map .branch-header small { color: var(--muted); }
.search-experience .mission-map .skill-node.locked, .search-experience .mission-map .branch-header.locked { opacity: .8; background: var(--bg); }
.search-experience :is(button, summary, a, input, select):focus-visible { outline: 2px solid var(--search-accent); outline-offset: 4px; }
@media (max-width: 760px) {
  .search-experience .topbar { height: 66px; padding: 0 18px; }
  .search-experience #dashboardView { padding: 0 18px 40px; }
  .search-home { padding-top: 15vh; }
  .search-brand h1 { font-size: 64px; }
  .search-brand-mark { font-size: 44px; }
  .search-experience .search-form .topic-input-wrap { min-height: 62px; padding-left: 16px; gap: 10px; border-radius: 20px; }
  .search-experience .search-form #topicInput { font-size: 16px; }
  .search-options-panel { padding: 18px; }
  .search-experience .search-options-panel .form-row { flex-wrap: nowrap; }
  .search-experience .mission-map .tree-board { padding: 16px; border-radius: 16px; }
  .search-experience .mission-map .augment-skill-card { padding: 16px; }
  .search-experience .mission-map .section-heading h2 { font-size: 23px; }
  .search-experience .mission-map .section-actions { display: flex; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .search-home, .search-experience .mission-map { animation: none; transition: none; }
}

/* Structural groups are headings, not disabled learning buttons. */
.skill-category > h4 { margin: 12px 0; font-size: 16px; line-height: 1.6; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.skill-category > .nested-children { margin-top: 12px; }
.skill-insight-card li small { display: block; margin-top: 6px; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
