/* Task-first wireframe overrides. Load after styles.css. */
body.guided {
  background: #f6f6f6;
  color: #252525;
  min-width: 0;
}

body.guided :is(button, .button, .small) { min-height: 44px; }
body.guided :is(input:not([type="checkbox"]):not([type="radio"]), select) {
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
}
body.guided :is(h1, h2, h3, strong, p, code) { overflow-wrap: anywhere; }
body.guided :is(button, .button) { white-space: normal; }
body.guided .container { padding-top: 26px; }
body.guided .header-inner { max-width: 1040px; min-height: 68px; gap: 34px; }
body.guided .brand b { font-size: 22px; }
body.guided .brand span { font-size: 13px; }
body.guided .nav { gap: 24px; }
body.guided .nav a { min-height: 44px; display: inline-flex; align-items: center; }
body.guided .account { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }

/* Closed by default in the markup; the demo controls are never a second hero. */
body.guided .demo-dock {
  background: #efefef;
  border-bottom: 1px solid #d5d5d5;
  padding: 0 max(24px, calc((100vw - 992px) / 2));
  font-size: 12px;
}
body.guided :is(.demo-dock, .learn-more, .inline-demo) > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  list-style: none;
  cursor: pointer;
  line-height: 1.5;
}
body.guided :is(.demo-dock, .learn-more, .inline-demo) > summary::-webkit-details-marker { display: none; }
body.guided :is(.demo-dock, .learn-more, .inline-demo) > summary::before {
  content: "+";
  flex: 0 0 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
}
body.guided :is(.demo-dock, .learn-more, .inline-demo)[open] > summary::before { content: "−"; }
body.guided .demo-dock > summary { font-size: 12px; color: #555; }
body.guided .demo-dock .prototype-switches { margin: 0; padding: 4px 0 14px; gap: 12px; }
body.guided .demo-dock .prototype-switches .field { min-width: 180px; flex: 1; }
body.guided .demo-dock .prototype-note { max-width: none; margin: 0; flex-basis: 100%; }
body.guided .demo-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 14px; }
body.guided .demo-actions .button { font-size: 12px; }

body.guided :is(.guided-shell, .team-workspace) {
  width: 100%;
  max-width: 900px;
  min-width: 0;
  margin-inline: auto;
}
body.guided .team-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
body.guided .task-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  margin-bottom: 14px;
  color: #5f5f5f;
  font-size: 13px;
  line-height: 1.6;
}
body.guided .task-header strong { color: #333; font-weight: 600; }
body.guided :is(ol.task-progress, .task-progress > ol) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
body.guided .task-progress li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 8px 0 13px;
  border-bottom: 2px solid #ddd;
  color: #727272;
  font-size: 14px;
  line-height: 1.5;
}
body.guided .task-progress li strong { font-size: inherit; font-weight: 500; }
body.guided .step-dot {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #bdbdbd;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  line-height: 1;
}
body.guided .task-progress li.done { border-color: #8a8a8a; color: #555; }
body.guided .task-progress li.current { border-color: #2c2c2c; color: #222; }
body.guided .task-progress li.current strong { font-weight: 650; }
body.guided .task-progress .current .step-dot { background: #333; color: #fff; border-color: #333; }
body.guided .task-progress .done .step-dot { background: #ececec; border-color: #929292; }

body.guided .action-stage {
  min-width: 0;
  padding: 32px;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
}
body.guided .action-kicker { display: block; margin-bottom: 9px; color: #666; font-size: 12px; line-height: 1.5; }
body.guided .action-stage h1 { font-size: 30px; font-weight: 650; line-height: 1.4; letter-spacing: -.025em; }
body.guided .action-lead { max-width: 680px; margin-top: 12px; color: #5c5c5c; font-size: 15px; line-height: 1.8; }
body.guided .action-lead + .actions { margin-top: 24px; }
body.guided .squad-visual {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
  padding: 0;
}
body.guided .squad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 4px;
  text-align: center;
}
body.guided .avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  margin-bottom: 5px;
  border: 1px solid #999;
  border-radius: 50%;
  background: #f0f0f0;
  color: #555;
  overflow: hidden;
  font-size: 17px;
}
body.guided .avatar:empty::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  border: 1px solid #858585;
  border-radius: 50%;
}
body.guided .avatar:empty::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 28px;
  height: 16px;
  margin-left: -14px;
  border: 1px solid #858585;
  border-radius: 16px 16px 4px 4px;
}
body.guided .squad-slot.empty .avatar { background: #fff; border-style: dashed; border-color: #b5b5b5; }
body.guided .squad-slot.empty .avatar:empty::before,
body.guided .squad-slot.empty .avatar:empty::after { border-color: #aaa; }
body.guided .squad-slot strong { max-width: 100%; font-size: 14px; font-weight: 550; line-height: 1.6; }
body.guided .squad-slot small { color: #717171; font-size: 12px; line-height: 1.5; }
body.guided .entry-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
body.guided .entry-choices .choice {
  min-width: 0;
  min-height: 158px;
  padding: 22px;
  gap: 12px;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: #fff;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}
body.guided .entry-choices .choice:hover { background: #f5f5f5; border-color: #555; }
body.guided .entry-choices .choice strong { font-size: 19px; line-height: 1.5; }
body.guided .entry-choices .choice span { color: #656565; font-size: 14px; line-height: 1.7; }
body.guided .entry-choices .choice b { display: block; margin-top: auto; padding-top: 3px; font-size: 14px; font-weight: 600; }
body.guided .next-hint { margin-top: 24px; padding: 12px 16px; background: #f3f3f3; color: #626262; font-size: 13px; line-height: 1.7; }
body.guided .next-hint strong { color: #414141; font-weight: 550; }
body.guided .secondary-links { display: flex; flex-wrap: wrap; gap: 0 20px; align-items: center; margin: 8px 0 0; color: #666; font-size: 13px; }
body.guided .secondary-links :is(a, button) { display: inline-flex; min-height: 44px; align-items: center; font-size: inherit; }
body.guided .secondary-links button { padding-inline: 0; }

body.guided .learn-more { margin-top: 24px; border-top: 1px solid #d3d3d3; color: #5d5d5d; font-size: 14px; }
body.guided .learn-more > summary { min-height: 52px; padding-block: 8px; color: #494949; font-size: 14px; }
body.guided .learn-more > :not(summary) { margin-top: 10px; }
body.guided .learn-more[open] { padding-bottom: 12px; }
body.guided :is(ol.simple-path, .simple-path > ol) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 16px 0; list-style: none; counter-reset: path; }
body.guided .simple-path li { margin: 0; min-width: 0; padding-top: 12px; border-top: 1px solid #bbb; font-size: 13px; line-height: 1.7; counter-increment: path; }
body.guided .simple-path li::before { content: counter(path) ". "; color: #717171; }
body.guided .simple-path strong { font-size: 13px; font-weight: 600; }
body.guided .simple-path :is(p, small) { display: block; margin-top: 4px; font-size: 12px; color: #717171; }

body.guided .next-task { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid #d8d8d8; }
body.guided .next-task > div { min-width: 0; flex: 1 1 260px; }
body.guided .next-task h1 { font-size: 26px; line-height: 1.45; }
body.guided .next-task h2 { font-size: 22px; }
body.guided .next-task p { margin-top: 8px; max-width: 590px; color: #626262; font-size: 14px; }
body.guided .next-task .actions { margin-top: 0; }
body.guided .team-mini { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #666; }
body.guided .team-mini :is(h2, strong) { font-size: 17px; color: #333; }
body.guided .invite-guide { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; padding: 18px 20px; background: #f3f3f3; font-size: 14px; }
body.guided .invite-guide > div { min-width: 0; }
body.guided .invite-guide :is(code, .mono) { display: inline-block; font-size: 20px; letter-spacing: .03em; }
body.guided .invite-guide p { font-size: 13px; color: #666; }
body.guided .invite-guide .actions { margin-top: 0; }
body.guided .inline-demo { margin-top: 24px; padding: 0 14px; border: 1px dashed #bdbdbd; background: #f7f7f7; color: #666; font-size: 12px; }
body.guided .inline-demo > summary { font-size: 12px; }
body.guided .inline-demo[open] { padding-bottom: 14px; }
body.guided .inline-demo :is(p, small) { font-size: 12px; }
body.guided .inline-demo .actions { margin-top: 10px; }
body.guided .members { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
body.guided .member { align-items: center; gap: 7px; min-height: 0; padding: 12px 5px; border: 0; background: transparent; text-align: center; }
body.guided .member-icon { width: 44px; height: 44px; border-radius: 50%; background: #f0f0f0; font-size: 14px; }
body.guided .member.empty .member-icon { background: #fff; border-style: dashed; }
body.guided .member strong { max-width: 100%; font-size: 14px; line-height: 1.6; }
body.guided .member small { font-size: 12px; line-height: 1.5; }
body.guided .member .text-button { margin-top: 0; padding: 8px 5px; }

body.guided .signup-step { width: 100%; max-width: 800px; margin-inline: auto; min-width: 0; }
body.guided .signup-step h1 { font-size: 28px; }
body.guided .signup-step .field { margin-top: 20px; }
body.guided .signup-step .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.guided .signup-review { margin-top: 24px; border: 1px solid #d4d4d4; padding: 20px; background: #fafafa; font-size: 14px; }
body.guided .signup-review h2 { font-size: 18px; }
body.guided .signup-review .detail-list { margin: 16px 0; }
body.guided .signup-review .members { margin-bottom: 0; }
body.guided .registered-success { text-align: center; }
body.guided .success-mark { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 18px; border: 2px solid #555; border-radius: 50%; color: #333; font-size: 30px; line-height: 1; }
body.guided .registered-success .action-lead { margin-inline: auto; }
body.guided .registered-success .actions { justify-content: center; }
body.guided .soft-info { margin-top: 20px; padding: 14px 18px; background: #f3f3f3; border-left: 2px solid #b4b4b4; color: #5f5f5f; font-size: 14px; line-height: 1.8; text-align: left; }
body.guided .soft-info p + p { margin-top: 8px; }
body.guided .step-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid #ddd; }
body.guided .step-footer .actions { margin-top: 0; }
body.guided .minimal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; max-width: 900px; margin: 32px auto 0; padding-top: 16px; border-top: 1px solid #d8d8d8; color: #737373; font-size: 12px; line-height: 1.7; }
body.guided .minimal-footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 760px) {
  body.guided .demo-dock { padding-inline: 16px; }
  body.guided .demo-dock .prototype-switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.guided .demo-dock .prototype-switches .field { min-width: 0; }
  body.guided .demo-dock .prototype-note { grid-column: 1 / -1; }
  body.guided .header-inner { display: flex; flex-wrap: wrap; gap: 0 20px; padding: 12px 16px 0; }
  body.guided .brand { flex-basis: 100%; margin-bottom: 5px; }
  body.guided .nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 0; overflow: visible; }
  body.guided .nav a { justify-content: center; padding: 12px 5px; font-size: 13px; }
  body.guided .container { padding: 20px 16px 28px; }
  body.guided .action-stage { padding: 24px; }
  body.guided .action-stage h1 { font-size: 27px; }
  body.guided .entry-choices { gap: 12px; }
  body.guided .entry-choices .choice { padding: 18px; }
  body.guided :is(ol.simple-path, .simple-path > ol) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.guided :is(input:not([type="checkbox"]):not([type="radio"]), select) { font-size: 16px; }
  body.guided .team-workspace { gap: 20px; }
}

@media (max-width: 540px) {
  body.guided .task-header { font-size: 12px; margin-bottom: 12px; }
  body.guided :is(ol.task-progress, .task-progress > ol) { gap: 10px; margin-bottom: 18px; }
  body.guided .task-progress li { gap: 6px; font-size: 12px; padding-bottom: 10px; }
  body.guided .step-dot { width: 22px; height: 22px; flex-basis: 22px; font-size: 11px; }
  body.guided .action-stage { padding: 22px 18px; }
  body.guided .action-stage h1 { font-size: 25px; }
  body.guided .action-lead { font-size: 14px; }
  body.guided .squad-visual { gap: 6px; margin-block: 22px; }
  body.guided .squad-slot { padding-inline: 0; }
  body.guided .avatar { width: 48px; height: 48px; flex-basis: 48px; }
  body.guided .avatar:empty::before { top: 7px; width: 12px; height: 12px; margin-left: -6px; }
  body.guided .avatar:empty::after { bottom: 6px; height: 14px; width: 25px; margin-left: -12.5px; }
  body.guided .squad-slot strong { font-size: 12px; }
  body.guided .squad-slot small { font-size: 11px; }
  body.guided .entry-choices { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  body.guided .entry-choices .choice { min-height: 126px; gap: 8px; padding: 16px 18px; }
  body.guided .entry-choices .choice strong { font-size: 18px; }
  body.guided .entry-choices .choice span { font-size: 13px; }
  body.guided .next-hint { margin-top: 20px; padding: 12px; font-size: 12px; }
  body.guided .next-task { align-items: stretch; gap: 16px; }
  body.guided .next-task > div { flex-basis: 100%; }
  body.guided .next-task > :is(button, .button),
  body.guided .next-task > .actions { width: 100%; }
  body.guided .next-task > .actions :is(button, .button) { flex: 1; }
  body.guided .next-task h1 { font-size: 24px; }
  body.guided .next-task h2 { font-size: 21px; }
  body.guided .invite-guide { padding: 15px; gap: 12px; }
  body.guided .members { gap: 5px; }
  body.guided .member { padding-inline: 0; }
  body.guided .member strong { font-size: 12px; }
  body.guided .member small { font-size: 11px; }
  body.guided .member .text-button { font-size: 11px; }
  body.guided .signup-step h1 { font-size: 25px; }
  body.guided .signup-review { padding: 16px 12px; }
  body.guided .signup-review .detail-list { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; font-size: 13px; }
  body.guided .soft-info { padding: 12px 14px; font-size: 13px; }
  body.guided .step-footer { gap: 8px; }
  body.guided .step-footer > :is(button, .button) { flex: 1 1 100px; }
  body.guided .minimal-footer { margin-top: 24px; }
}

@media (max-width: 360px) {
  body.guided .demo-dock { padding-inline: 12px; }
  body.guided .demo-dock .prototype-switches { grid-template-columns: minmax(0, 1fr); }
  body.guided .header-inner { padding-inline: 12px; }
  body.guided .container { padding-inline: 12px; }
  body.guided .action-stage { padding-inline: 14px; }
  body.guided .action-stage h1 { font-size: 24px; }
  body.guided :is(ol.task-progress, .task-progress > ol) { gap: 6px; }
  body.guided .task-progress li { gap: 5px; font-size: 11px; }
  body.guided .step-dot { width: 20px; height: 20px; flex-basis: 20px; font-size: 10px; }
  body.guided .squad-visual { gap: 4px; }
  body.guided .avatar { width: 44px; height: 44px; flex-basis: 44px; }
  body.guided .avatar:empty::before { top: 6px; }
  body.guided .avatar:empty::after { bottom: 5px; }
  body.guided .signup-step .region-grid { gap: 8px; }
  body.guided .signup-step .region { padding: 12px; }
  body.guided .signup-step .region.active { padding: 11px; }
  body.guided .signup-step .region b { font-size: 15px; }
  body.guided :is(ol.simple-path, .simple-path > ol) { gap: 12px; }
}

@media (max-width: 540px) {
  body.guided .entry-stage { padding-block: 18px; }
  body.guided .entry-stage .squad-visual { margin-block: 16px; }
  body.guided .entry-stage .squad-slot small { display: none; }
  body.guided .entry-stage .entry-choices { margin-top: 12px; }
  body.guided .entry-stage .entry-choices .choice { min-height: 112px; padding-block: 12px; gap: 5px; }
}
