/* Root Atlas desktop polish, 2026-05-28 */
body.mi-shell-enabled[data-mi-page="roots"] > .container {
  width: calc(100% - 76px);
  max-width: 1480px;
  overflow-x: clip;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-lab-layout {
  grid-template-columns: 270px minmax(520px, 1fr) 320px;
  gap: 16px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-list-panel,
body.mi-shell-enabled[data-mi-page="roots"] .root-lab-main,
body.mi-shell-enabled[data-mi-page="roots"] .root-business-panel {
  height: 700px;
  border-color: #e9edf3;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.05);
}

body.mi-shell-enabled[data-mi-page="roots"] .root-list-panel {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  padding: 16px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-list {
  gap: 13px;
  padding-right: 4px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-atlas-group {
  display: grid;
  gap: 8px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-atlas-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 900;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-atlas-group-head strong {
  color: #1d2939;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-atlas-group-head span {
  color: #98a2b3;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-atlas-items {
  display: grid;
  gap: 7px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-tile {
  min-height: 44px;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  padding: 8px 10px;
  border-radius: 7px;
  box-shadow: none;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-tile-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff6900;
  box-shadow: 0 0 0 4px #fff1e8;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-tile.active .root-tile-dot {
  background: #e24d00;
  box-shadow: 0 0 0 5px #ffd8c2;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-tile-badge {
  max-width: 92px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-lab-main {
  padding: 0;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-card {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-head,
body.mi-shell-enabled[data-mi-page="roots"] .root-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-head h2,
body.mi-shell-enabled[data-mi-page="roots"] .root-section-head h2 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  line-height: 1.25;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-head p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.45;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-tools {
  display: flex;
  gap: 8px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-tools button,
body.mi-shell-enabled[data-mi-page="roots"] .root-section-head button {
  min-width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  color: #475467;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-tools button.active {
  border-color: #ffb084;
  background: #fff3eb;
  color: #ff6900;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-canvas {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 40px auto auto auto;
  justify-items: center;
  align-content: center;
  padding: 18px 22px;
  border: 1px solid #eef1f5;
  border-radius: 8px;
  background-color: #fffdf9;
  background-image: radial-gradient(#e5e7eb 0.8px, transparent 0.8px);
  background-size: 18px 18px;
  overflow: hidden;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-root-node,
body.mi-shell-enabled[data-mi-page="roots"] .root-trail-node {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.06);
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-root-node {
  width: min(300px, 92%);
  min-height: 142px;
  display: grid;
  gap: 9px;
  padding: 22px 28px 18px;
  border-color: #ff8a3d;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-root-node .root-save-btn {
  position: absolute;
  top: 12px;
  right: 12px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-root-node p {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: #667085;
  font-size: 0.82rem;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-root-node p strong {
  color: #111827;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-root-node small {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  background: #fbfaf8;
  color: #667085;
  font-size: 0.7rem;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-branch {
  position: relative;
  width: 100%;
  height: 40px;
  align-self: center;
  border: 0;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-branch::before,
body.mi-shell-enabled[data-mi-page="roots"] .root-trail-branch::after,
body.mi-shell-enabled[data-mi-page="roots"] .root-trail-branch span {
  content: "";
  position: absolute;
  background: #ff6900;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-branch::before {
  top: 0;
  left: 50%;
  width: 2px;
  height: 18px;
  transform: translateX(-50%);
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-branch::after {
  top: 18px;
  left: 16.666%;
  right: 16.666%;
  height: 2px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-branch span {
  top: 18px;
  width: 2px;
  height: 22px;
  transform: translateX(-50%);
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-branch span:nth-child(1) {
  left: 16.666%;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-branch span:nth-child(2) {
  left: 50%;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-branch span:nth-child(3) {
  left: 83.333%;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-children {
  width: 100%;
  display: grid;
  gap: 16px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-children--primary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-children--secondary {
  width: 60%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-secondary-label {
  margin-top: 10px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.7rem;
  font-weight: 900;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-node {
  min-height: 110px;
  display: grid;
  gap: 7px;
  padding: 16px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-node strong {
  min-width: 0;
  color: #111827;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-node p,
body.mi-shell-enabled[data-mi-page="roots"] .root-trail-node em {
  margin: 0;
  color: #475467;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.45;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475467;
  font-size: 0.76rem;
  font-weight: 850;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-trail-footer > span i {
  color: #ff6900;
  font-size: 0.55rem;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-lab-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-business-panel {
  padding: 18px;
  overflow: hidden;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto auto auto auto 1fr;
  gap: 14px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 780;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-kicker span {
  color: #98a2b3;
  font-size: 0.72rem;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-kicker strong {
  color: #344054;
  font-size: 0.9rem;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px 34px;
  align-items: center;
  gap: 8px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-title h2 {
  min-width: 0;
  margin: 0;
  color: #111827;
  font-size: 2.05rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-meaning {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: #667085;
  font-size: 0.82rem;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-meaning strong {
  color: #111827;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-facts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-facts div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-facts dt {
  color: #667085;
  font-size: 0.76rem;
  font-weight: 900;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-facts dd {
  margin: 0;
  color: #344054;
  font-size: 0.78rem;
  line-height: 1.55;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-signal {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #e9edf3;
  border-radius: 8px;
  background: #fbfaf8;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-signal div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-signal span {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 900;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-signal strong {
  min-width: 0;
  color: #111827;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-signal div + div {
  padding-top: 8px;
  border-top: 1px solid #f0f2f5;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-next-card {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  gap: 8px;
  padding: 15px;
  border: 1px solid #e9edf3;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-next-card span,
body.mi-shell-enabled[data-mi-page="roots"] .root-next-card strong {
  grid-column: 1;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-next-card span {
  color: #667085;
  font-size: 0.76rem;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-next-card i {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: #98a2b3;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-story-stack {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-story-panel,
body.mi-shell-enabled[data-mi-page="roots"] .root-memory-panel,
body.mi-shell-enabled[data-mi-page="roots"] .root-family-panel,
body.mi-shell-enabled[data-mi-page="roots"] .root-progress-panel,
body.mi-shell-enabled[data-mi-page="roots"] .root-quick-quiz {
  border: 1px solid #e9edf3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.04);
}

body.mi-shell-enabled[data-mi-page="roots"] .root-story-panel,
body.mi-shell-enabled[data-mi-page="roots"] .root-memory-panel,
body.mi-shell-enabled[data-mi-page="roots"] .root-family-panel,
body.mi-shell-enabled[data-mi-page="roots"] .root-progress-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-section-head span,
body.mi-shell-enabled[data-mi-page="roots"] .root-section-head button {
  color: #667085;
  font-size: 0.76rem;
  font-weight: 900;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-section-head button {
  width: auto;
  padding: 0 10px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-story-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-story-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 1821 / 864;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  border: 1px solid #eee2d0;
  background: #f7efe4;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-story-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid #f0e6d8;
  border-radius: 8px;
  background: #fffaf2;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-story-copy h3 {
  margin: 0;
  color: #111827;
  font-size: 1.2rem;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-story-copy p,
body.mi-shell-enabled[data-mi-page="roots"] .root-progress-panel p {
  margin: 0;
  color: #475467;
  font-size: 0.84rem;
  line-height: 1.6;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-timeline-text {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-timeline-text article {
  display: grid;
  gap: 7px;
  min-height: 126px;
  padding: 12px;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  background: #fff;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-timeline-text span {
  color: #ff6900;
  font-size: 0.72rem;
  font-weight: 950;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-timeline-text strong {
  color: #111827;
  font-size: 0.92rem;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-timeline-text p {
  margin: 0;
  color: #667085;
  font-size: 0.76rem;
  line-height: 1.5;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-story-memory {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-story-memory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid #eef1f5;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-story-memory-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #111827;
  font-size: 1rem;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-story-memory-head h3 i {
  color: #ff6900;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-story-memory-head span {
  color: #667085;
  font-size: 0.76rem;
  font-weight: 900;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-memory-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-memory-cards--single {
  grid-template-columns: minmax(0, 420px);
}

body.mi-shell-enabled[data-mi-page="roots"] .root-memory-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e9edf3;
  border-radius: 8px;
  background: #fff;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-memory-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  border-bottom: 1px solid #eef1f5;
  background: #fffaf2;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-memory-card > div {
  display: grid;
  gap: 8px;
  padding: 13px 14px 15px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-memory-card h3 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-memory-card p {
  margin: 0;
  color: #667085;
  font-size: 0.8rem;
  line-height: 1.5;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-memory-card strong {
  color: #111827;
  font-size: 0.82rem;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-memory-tip {
  border-top: 1px solid #eef1f5;
  padding-top: 8px;
  color: #344054;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-memory-tip span {
  display: block;
  margin-bottom: 2px;
  color: #ff6900;
  font-size: 0.72rem;
  font-weight: 700;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-family-table {
  display: grid;
  border: 1px solid #e9edf3;
  border-radius: 8px;
  overflow: hidden;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-family-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr 1.5fr 1fr;
  min-height: 42px;
  border-top: 1px solid #eef1f5;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-family-row:first-child {
  border-top: 0;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-family-row--head {
  background: #fbfaf8;
  color: #667085;
  font-weight: 950;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-family-row span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #344054;
  font-size: 0.8rem;
  line-height: 1.35;
  border-left: 1px solid #eef1f5;
  overflow-wrap: anywhere;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-family-row span:first-child {
  border-left: 0;
}

body.mi-shell-enabled[data-mi-page="roots"] .speak-btn--xs {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #98a2b3;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-progress-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.15fr;
  gap: 18px;
  align-items: stretch;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-progress-meter,
body.mi-shell-enabled[data-mi-page="roots"] .root-signal-list {
  border: 1px solid #e9edf3;
  border-radius: 8px;
  background: #fff;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-progress-meter {
  display: grid;
  align-content: center;
  gap: 13px;
  padding: 16px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-progress-meter > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 900;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-progress-meter meter {
  width: 100%;
  height: 12px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-progress-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  color: #667085;
  font-size: 0.72rem;
  text-align: center;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-signal-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.mi-shell-enabled[data-mi-page="roots"] .root-signal-list div {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-height: 118px;
  padding: 12px;
  border-left: 1px solid #eef1f5;
  text-align: center;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-signal-list div:first-child {
  border-left: 0;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-signal-list i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #ff6900;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-signal-list strong {
  color: #111827;
  font-size: 0.82rem;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-signal-list span {
  color: #667085;
  font-size: 0.7rem;
  line-height: 1.35;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-quiz {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: 0;
  margin-top: 16px;
  padding: 18px;
  overflow: visible;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-quiz > div {
  padding: 0;
  border-right: 0;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-head {
  display: flex;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #eef1f5;
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf2 0%, #fff 56%);
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-quiz > .root-quick-head {
  display: flex;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-title {
  display: grid;
  gap: 5px;
  min-width: 0;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-title p {
  margin: 0;
  color: #667085;
  font-size: 0.8rem;
  line-height: 1.5;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-title strong {
  color: #111827;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-status span,
body.mi-shell-enabled[data-mi-page="roots"] .root-quick-status strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 950;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-status span {
  border: 1px solid #e9edf3;
  color: #667085;
  background: #fff;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-status strong {
  border: 1px solid #fed7aa;
  color: #ff6900;
  background: #fff7ed;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-quiz > .root-quick-board {
  display: grid;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-card,
body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-result-card {
  display: grid;
  gap: 13px;
  padding: 14px;
  border: 1px solid #e9edf3;
  border-radius: 8px;
  background: #fff;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-card {
  align-content: start;
  min-height: 286px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-card--correct {
  border-color: #abefc6;
  background: linear-gradient(180deg, #f6fef9 0%, #fff 34%);
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-card--wrong {
  border-color: #fecdd3;
  background: linear-gradient(180deg, #fff5f6 0%, #fff 34%);
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-card-top span,
body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-card-top em {
  min-width: 0;
  color: #667085;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-card-top em {
  color: #ff6900;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-card strong {
  color: #111827;
  font-size: 0.94rem;
  line-height: 1.45;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-options button,
body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-result-card button {
  min-height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: left;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-options button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-options button:hover:not(:disabled) {
  border-color: #ffb56b;
  background: #fff7ed;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-options button.correct {
  border-color: #12b76a;
  background: #ecfdf3;
  color: #067647;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-options button.wrong {
  border-color: #f04438;
  background: #fff1f3;
  color: #b42318;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-options button:disabled:not(.correct):not(.wrong) {
  color: #98a2b3;
  background: #f9fafb;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ff6900;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-option-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-explain {
  margin: 0;
  padding: 10px;
  border: 1px solid #eef1f5;
  border-radius: 8px;
  background: #fbfaf8;
  color: #667085;
  font-size: 0.76rem;
  line-height: 1.5;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-explain span {
  display: block;
  margin-bottom: 2px;
  color: #ff6900;
  font-size: 0.7rem;
  font-weight: 950;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-explain.is-correct {
  border-color: #abefc6;
  background: #f6fef9;
  color: #067647;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-explain.is-wrong {
  border-color: #fecdd3;
  background: #fff5f6;
  color: #b42318;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  align-items: center;
  gap: 14px;
  min-height: 0;
  text-align: left;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quick-quiz > .root-quiz-result-card {
  display: grid;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-result-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-result-card span {
  color: #667085;
  font-size: 0.76rem;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-result-card strong {
  color: #111827;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-result-card p {
  margin: 0;
  color: #667085;
  font-size: 0.76rem;
  line-height: 1.45;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-meter {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f5;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6900, #12b76a);
  transition: width 0.2s ease;
}

body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-result-card button {
  flex: 0 0 auto;
  min-width: 124px;
  padding: 0 16px;
  background: #ff6900;
  border-color: #ff6900;
  color: #fff;
  text-align: center;
}

@media (max-width: 1180px) {
  body.mi-shell-enabled[data-mi-page="roots"] > .container {
    max-width: none;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-lab-layout,
  body.mi-shell-enabled[data-mi-page="roots"] .root-story-banner,
  body.mi-shell-enabled[data-mi-page="roots"] .root-progress-grid,
  body.mi-shell-enabled[data-mi-page="roots"] .root-quick-quiz {
    grid-template-columns: 1fr;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-list-panel,
  body.mi-shell-enabled[data-mi-page="roots"] .root-lab-main,
  body.mi-shell-enabled[data-mi-page="roots"] .root-business-panel {
    height: auto;
    min-height: 0;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-list-panel {
    max-height: 560px;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-trail-card,
  body.mi-shell-enabled[data-mi-page="roots"] .root-inspector {
    height: auto;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-trail-canvas {
    grid-template-rows: auto 24px auto;
    padding: 14px;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-trail-branch {
    width: 2px;
    height: 24px;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-trail-branch::before {
    left: 0;
    height: 24px;
    transform: none;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-trail-branch::after,
  body.mi-shell-enabled[data-mi-page="roots"] .root-trail-branch span {
    display: none;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-trail-branch--two,
  body.mi-shell-enabled[data-mi-page="roots"] .root-trail-secondary-label,
  body.mi-shell-enabled[data-mi-page="roots"] .root-trail-children--secondary {
    display: none;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-trail-children--primary,
  body.mi-shell-enabled[data-mi-page="roots"] .root-quick-board,
  body.mi-shell-enabled[data-mi-page="roots"] .root-quick-options,
  body.mi-shell-enabled[data-mi-page="roots"] .root-memory-cards,
  body.mi-shell-enabled[data-mi-page="roots"] .root-timeline-text,
  body.mi-shell-enabled[data-mi-page="roots"] .root-signal-list {
    grid-template-columns: 1fr;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-story-banner img {
    aspect-ratio: 1821 / 864;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-story-memory-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-quick-head {
    align-items: stretch;
    flex-direction: column;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-family-table {
    overflow-x: auto;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-family-row {
    min-width: 760px;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-signal-list div {
    border-left: 0;
    border-top: 1px solid #eef1f5;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-result-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-quiz-result-card button {
    width: 100%;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-signal-list div:first-child {
    border-top: 0;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-quick-head {
    grid-column: auto;
  }
}

@media (min-width: 1181px) and (max-width: 1319px) {
  body.mi-shell-enabled[data-mi-page="roots"] .roots-page-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-head-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-lab-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 14px;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-list-panel,
  body.mi-shell-enabled[data-mi-page="roots"] .root-lab-main {
    height: 680px;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-business-panel {
    grid-column: 1 / -1;
    height: auto;
    min-height: 0;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-inspector {
    min-height: 320px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
    grid-template-rows: auto auto auto auto;
    align-items: start;
  }

  body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-facts,
  body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-signal,
  body.mi-shell-enabled[data-mi-page="roots"] .root-inspector-actions,
  body.mi-shell-enabled[data-mi-page="roots"] .root-next-card {
    grid-column: 1 / -1;
  }
}
