/* @implements s-b7uom8@872f63e */
/* @implements s-0kqa6m@cb7d4d3 */
/* @implements s-c128mc@c6a9b45 */
/* @implements s-eeqrcf@0419ef9 */
/* @implements s-zasyvb@31ae65c */
/* @implements s-li6mcw@a7b2a37 */
/* @implements s-1ci45n@c26166b */
/* @implements s-ajo3ld@fc340d1 */
/* @implements s-gj59q3@c0fb85d */
/* @tested-by test/web-dashboard.test.js */
:root {
  color-scheme: var(--theme-color-scheme, light);
  font-family: var(--theme-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  color: var(--theme-text, #182334);
  background: var(--theme-page, #f5f7fa);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--theme-text); background: var(--theme-page); }
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; padding: .7rem max(1.25rem, calc((100vw - 70rem) / 2)); background: var(--theme-surface); border-bottom: 1px solid var(--theme-border); }
.brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; }
.brand img { display: block; width: min(17rem, 48vw); max-height: 4rem; object-fit: contain; object-position: left center; }
.menu-toggle { min-width: 2.75rem; font-size: 1.4rem; line-height: 1; }
.site-menu { position: absolute; z-index: 10; top: calc(100% + .4rem); right: max(1.25rem, calc((100vw - 70rem) / 2)); width: min(21rem, calc(100vw - 2rem)); max-height: min(75vh, 42rem); overflow: auto; padding: .85rem; border: 1px solid var(--theme-border); border-radius: .6rem; background: var(--theme-surface); box-shadow: 0 1rem 2.5rem rgb(10 25 45 / 20%); }
.site-menu a, .site-menu button { display: block; width: 100%; margin: .25rem 0; text-align: left; }
.site-menu a { padding: .65rem .8rem; border-radius: .4rem; color: var(--theme-accent); }
.site-menu .menu-link { background: transparent; color: var(--theme-text); }
.menu-account { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .25rem .4rem .65rem; border-bottom: 1px solid var(--theme-border); }
.menu-account #user-label { overflow-wrap: anywhere; font-size: .9rem; }
.menu-account button { width: auto; }
.menu-repositories h2 { margin: .9rem .5rem .35rem; font-size: .95rem; }
.menu-repositories ul { margin: 0; padding: 0; list-style: none; }
.menu-repositories li a { font-size: .92rem; }
main { max-width: 70rem; margin: 2.5rem auto; padding: 0 1.25rem; }
h1 { margin-top: 0; }
.landing-page { max-width: 68rem; margin: 0 auto; }
.landing-hero { max-width: 54rem; margin: 0 auto 3.5rem; text-align: center; }
.landing-eyebrow { margin: 0 0 .55rem; color: var(--theme-accent); font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.landing-hero h1 { margin: 0 auto 1rem; font-size: clamp(2.2rem, 6vw, 4.3rem); line-height: 1.04; letter-spacing: -.04em; }
.landing-intro { max-width: 58ch; margin: 0 auto 1.5rem; color: var(--theme-subtle); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.65; }
.landing-hero button { padding: .8rem 1.25rem; font-weight: 700; }
.landing-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 4rem; }
.landing-steps article { padding: 1.2rem; border: 1px solid var(--theme-border); border-radius: .7rem; background: var(--theme-surface); }
.landing-steps h2 { margin: 0 0 .45rem; font-size: 1.15rem; }
.landing-steps p { margin: 0; color: var(--theme-subtle); line-height: 1.55; }
.theme-previews-heading { margin-bottom: 1.2rem; text-align: center; }
.theme-previews-heading h2 { margin: 0 0 .45rem; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.theme-previews-heading > p:last-child { margin: 0; color: var(--theme-subtle); }
.theme-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.theme-preview-card { min-width: 0; margin: 0; padding: .55rem; border: 1px solid var(--theme-border); border-radius: 1rem; background: var(--theme-surface); box-shadow: 0 1rem 2.5rem rgb(10 25 45 / 16%); }
.preview-screen { position: relative; overflow: hidden; min-height: 20rem; padding: 1rem; border-radius: .7rem; color: var(--preview-text); background: var(--preview-page); font: var(--preview-font); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%); }
.preview-brand { display: block; margin-bottom: .9rem; color: var(--preview-accent); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.preview-question { padding: 1rem; border: 1px solid var(--preview-border); border-radius: .55rem; background: var(--preview-surface); }
.preview-kicker { color: var(--preview-subtle); font-size: .63rem; font-weight: 750; letter-spacing: .09em; }
.preview-question h3 { margin: .45rem 0; font-size: 1rem; }
.preview-question > p:not(.preview-option) { color: var(--preview-subtle); font-size: .78rem; line-height: 1.45; }
.preview-option { margin: .4rem 0; padding: .42rem .5rem; border: 1px solid transparent; border-radius: .3rem; font-size: .73rem; }
.preview-option-selected { border-color: var(--preview-accent); background: var(--preview-muted); }
.preview-answer { margin-top: .65rem; padding: .7rem .8rem; border-radius: .4rem; color: var(--preview-text); background: var(--preview-answer); font-size: .74rem; line-height: 1.45; }
.theme-preview-card figcaption { padding: .55rem .5rem .15rem; color: var(--theme-subtle); font-size: .84rem; font-weight: 700; }
.preview-light { --preview-page: #f5f7fa; --preview-surface: #fff; --preview-text: #182334; --preview-subtle: #526174; --preview-border: #dce2ea; --preview-accent: #1558b0; --preview-muted: #e8edf5; --preview-answer: #eef3f9; --preview-font: 400 1rem/1.4 Inter, ui-sans-serif, system-ui, sans-serif; }
.preview-dark { --preview-page: #121820; --preview-surface: #1c2632; --preview-text: #edf2f7; --preview-subtle: #a8b5c4; --preview-border: #394756; --preview-accent: #7db6ff; --preview-muted: #334252; --preview-answer: #151e28; --preview-font: 400 1rem/1.4 Inter, ui-sans-serif, system-ui, sans-serif; }
.preview-retro { --preview-page: #03100a; --preview-surface: #071b10; --preview-text: #77ff8a; --preview-subtle: #53bd68; --preview-border: #1c6630; --preview-accent: #65ff78; --preview-muted: #123820; --preview-answer: #03140a; --preview-font: 400 1rem/1.4 "Courier New", Courier, monospace; }
.preview-retro .preview-screen { text-shadow: 0 0 .35rem rgb(73 255 104 / 35%); }
.preview-retro .preview-screen::after { position: absolute; pointer-events: none; inset: 0; background: repeating-linear-gradient(transparent 0 2px, rgb(0 0 0 / 18%) 2px 3px); content: ""; }
.preview-silk { --preview-page: #f8f7f4; --preview-surface: #fdfcf9; --preview-text: #393832; --preview-subtle: #77736a; --preview-border: #e8e5de; --preview-accent: #817b70; --preview-muted: #eeece6; --preview-answer: #f4f2ec; --preview-font: 400 1rem/1.4 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.preview-silk .preview-question { box-shadow: 0 2px 16px rgb(57 56 50 / 4%); }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dashboard-heading h1 { margin-bottom: 1rem; }
.access-link { flex: none; display: inline-block; padding: .45rem .75rem; border: 1px solid var(--theme-border); border-radius: .4rem; color: var(--theme-accent); background: var(--theme-surface); text-decoration: none; font-size: .9rem; }
.access-link:hover, .site-menu a:hover { border-color: var(--theme-accent); background: var(--theme-muted); }
button, select { font: inherit; }
button { border: 0; border-radius: .4rem; background: var(--theme-accent); color: var(--theme-button-text); padding: .65rem 1rem; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { background: var(--theme-muted); color: var(--theme-text); }
.questionnaire-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .5rem;
}
.questionnaire-toolbar .questionnaire-back { margin: 0; }
.theme-picker {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  color: var(--theme-subtle);
  font-size: .82rem;
}
.theme-picker select {
  max-width: 9rem;
  color: var(--theme-text);
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: .35rem;
  padding: .3rem .45rem;
  font-size: .9rem;
}
.project-list { display: grid; gap: .75rem; padding: 0; list-style: none; }
.project-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; text-align: left; color: var(--theme-text); background: var(--theme-surface); border: 1px solid var(--theme-border); }
.project-link:hover { border-color: var(--theme-accent); }
.repo-name { display: block; font-weight: 700; }
.project-primary { min-width: 0; }
.repo-counts { display: flex; align-items: baseline; flex-wrap: wrap; gap: .9rem; margin-top: .4rem; color: var(--theme-subtle); font-size: .83rem; font-weight: 400; }
.count { display: inline-flex; align-items: baseline; gap: .2rem; white-space: nowrap; }
.count-critical { color: var(--theme-alert); }
.count-important { color: var(--theme-accent); }
.count-critical .count-number, .count-important .count-number { font-size: 1.45rem; line-height: 1; font-weight: 800; }
.count-answered { color: var(--theme-subtle); font-size: .78rem; }
.agent-status { flex: none; align-self: center; color: var(--theme-subtle); font-size: .78rem; font-weight: 400; text-align: right; }
.question-card, .panel { background: var(--theme-surface); border: 1px solid var(--theme-border); border-radius: .55rem; padding: 1.25rem; margin: 1rem 0; }
.question-rollup {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 1.5s ease;
}
.question-rollup.is-submitting { grid-template-rows: 0fr; }
.question-rollup > .question-card {
  min-height: 0;
  overflow: hidden;
  transition: margin 1.5s ease, padding 1.5s ease, border-width 1.5s ease;
}
.question-rollup.is-submitting > .question-card {
  margin-block: 0;
  padding-block: 0;
  border-block-width: 0;
}
.question-card h3 { margin: 0 0 .75rem; }
.question-body, .answer-text, .option-label { white-space: pre-wrap; overflow-wrap: anywhere; }
.question-body { line-height: 1.55; }
.option-label {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  align-items: start;
  column-gap: .45rem;
  padding: .6rem 0;
}
.option-text { min-width: 0; }
.question-card textarea { display: block; width: 100%; min-height: 5rem; margin: .7rem 0; font: inherit; }
.question-card input[type=radio] { margin: .2rem 0 0; }
.eyebrow { color: var(--theme-subtle); font-size: .85rem; }
.answer-text { padding: .75rem; background: var(--theme-answer); border-radius: .3rem; }
.conflict { border-left: .25rem solid var(--theme-alert); }
.answered details { margin-top: 1rem; }
.questionnaire-back { display: inline-block; margin: 0 0 .9rem; padding: .3rem 0; color: var(--theme-accent); font-weight: 650; text-decoration: none; }
.questionnaire-title { margin: 0 0 1.2rem; }
.info-page h1 { margin-bottom: 1.2rem; }
.info-page h2 { margin-top: 1.8rem; }
.info-page p { max-width: 68ch; line-height: 1.6; }
.faq-item { max-width: 72ch; padding: 1rem 0; border-bottom: 1px solid var(--theme-border); }
.faq-item h2 { margin: 0 0 .45rem; font-size: 1.1rem; }
.faq-item p { margin: 0; white-space: pre-wrap; }
.theme-hook { padding: .8rem 1rem; border-left: .2rem solid var(--theme-accent); color: var(--theme-subtle); background: var(--theme-hook); white-space: pre-wrap; overflow-wrap: anywhere; }
.theme-hook-header, .theme-hook-footer { margin: 1rem 0; }
.theme-hook-before-questions, .theme-hook-after-questions { margin: 1.25rem 0; }
[hidden] { display: none !important; }
@media (max-width: 550px) {
  main { margin-top: 1.5rem; }
  .landing-hero { margin-bottom: 2.5rem; }
  .landing-steps { grid-template-columns: 1fr; gap: .7rem; margin-bottom: 2.75rem; }
  .theme-preview-grid { grid-template-columns: 1fr; gap: .85rem; }
  .preview-screen { min-height: 18rem; }
  .topbar { padding: .55rem .9rem; }
  .brand img { width: min(15rem, 65vw); max-height: 3.3rem; }
  .dashboard-heading { align-items: flex-start; }
  .dashboard-heading h1 { font-size: 1.55rem; }
  .access-link { max-width: 8rem; white-space: nowrap; }
  .project-link { align-items: flex-start; padding: .75rem; }
  .agent-status { max-width: 6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
