﻿/* For you page styles. */
.for-you-page {
  width: 100%;
  min-width: 0;
  display: grid;
  justify-items: center;
  padding: 58px 0 64px;
  background: var(--panel);
}

.for-you-inner {
  --for-you-relay-card-width: 920px;
  --for-you-relay-step: 46px;
  width: min(100%, 920px);
  display: grid;
  gap: 24px;
}

.for-you-toolbar {
  min-width: 0;
  display: grid;
  justify-items: center;
}

.for-you-toolbar-controls {
  width: min(100%, 920px);
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
}

.for-you-picker,
.for-you-source-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 4px;
}

.for-you-picker-trigger,
.for-you-source-nav button {
  min-width: 34px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.for-you-picker-trigger {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
}

.for-you-picker-trigger .app-icon {
  --icon-size: 21px;
  opacity: 0.78;
}

.for-you-picker-trigger strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0;
  text-align: center;
}

.for-you-source-nav button:not(:disabled):hover,
.for-you-source-nav button:not(:disabled):focus-visible,
.for-you-picker:hover .for-you-picker-trigger,
.for-you-picker:focus-within .for-you-picker-trigger {
  background: var(--accent-soft);
  color: var(--accent-dark);
  outline: none;
}

.for-you-picker:hover .for-you-picker-trigger strong,
.for-you-picker:focus-within .for-you-picker-trigger strong {
  color: var(--accent-dark);
}

.for-you-picker-menu,
.for-you-submenu {
  position: absolute;
  z-index: 60;
  min-width: 196px;
  display: none;
  border: 1px solid rgba(207, 217, 222, 0.95);
  border-radius: 8px;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(15, 20, 25, 0.14);
}

.for-you-picker-menu {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.for-you-picker:hover > .for-you-picker-menu,
.for-you-picker:focus-within > .for-you-picker-menu,
.for-you-menu-branch:hover > .for-you-submenu,
.for-you-menu-branch:focus-within > .for-you-submenu {
  display: grid;
}

.for-you-submenu {
  top: -6px;
  left: 100%;
}

.for-you-picker-menu button,
.for-you-submenu button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.for-you-picker-menu button span {
  color: var(--muted);
  font-size: 12px;
}

.for-you-picker-menu button:hover,
.for-you-picker-menu button:focus-visible,
.for-you-submenu button:hover,
.for-you-submenu button:focus-visible,
.for-you-picker-menu button.is-selected,
.for-you-submenu button.is-selected {
  background: var(--accent-soft);
  color: var(--accent-dark);
  outline: none;
}

.for-you-menu-branch {
  position: relative;
}

.for-you-menu-branch > button::after {
  content: ">";
  color: rgba(83, 100, 113, 0.78);
  margin-left: auto;
}

.for-you-tag-picker .for-you-tag-menu,
.for-you-category-picker .for-you-category-menu {
  min-width: 286px;
}

.for-you-tag-selector,
.for-you-category-selector {
  display: grid;
  gap: 8px;
  padding: 6px 4px 4px;
}

.for-you-tag-search-shell {
  min-width: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 0 10px;
}

.for-you-tag-search-shell .app-icon {
  --icon-size: 16px;
  opacity: 0.52;
  flex: 0 0 auto;
}

.for-you-tag-search-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.for-you-tag-search-shell input::placeholder {
  color: rgba(83, 100, 113, 0.74);
}

.for-you-tag-option-list {
  max-height: 238px;
  display: grid;
  gap: 2px;
  overflow: auto;
  padding-right: 2px;
}

.for-you-picker-menu .for-you-tag-option,
.for-you-picker-menu .for-you-category-option {
  gap: 9px;
}

.for-you-tag-option strong,
.for-you-category-option strong {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
}

.for-you-tag-check,
.for-you-category-check {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(83, 100, 113, 0.42);
  border-radius: 4px;
  background: #ffffff;
}

.for-you-tag-option.is-selected .for-you-tag-check,
.for-you-category-option.is-selected .for-you-category-check {
  border-color: var(--accent);
  background: var(--accent);
}

.for-you-tag-option.is-selected .for-you-tag-check::after,
.for-you-category-option.is-selected .for-you-category-check::after {
  content: "";
  width: 4px;
  height: 7px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(42deg) translateY(-1px);
}

.for-you-tag-empty,
.for-you-category-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.for-you-source-nav span {
  min-width: 58px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.for-you-source-nav button:disabled {
  opacity: 0.36;
}

.for-you-source-nav button {
  color: rgba(83, 100, 113, 0.78);
  font-size: 21px;
  font-weight: 350;
}

.for-you-parent-shell {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  width: 100%;
}

.for-you-parent-card {
  position: relative;
  min-width: 0;
  min-height: 220px;
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 34px;
  box-shadow: 0 18px 36px rgba(15, 20, 25, 0.08);
}

.for-you-sibling-nav {
  position: relative;
  z-index: 3;
  width: 52px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(83, 100, 113, 0.62);
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  transition: color 140ms ease, transform 140ms ease;
}

.for-you-sibling-nav:not(:disabled):hover,
.for-you-sibling-nav:not(:disabled):focus-visible {
  color: var(--accent-dark);
  outline: none;
  transform: translateY(-1px);
}

.for-you-sibling-nav:disabled {
  opacity: 0.24;
}

.for-you-cover {
  --for-you-hue: 28;
  min-width: 0;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 8px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, hsl(var(--for-you-hue) 84% 58%), hsl(calc(var(--for-you-hue) + 26) 74% 42%));
  color: #ffffff;
  padding: 16px;
}

.for-you-cover.is-large {
  min-height: 150px;
}

.for-you-cover.is-small {
  width: 110px;
  height: 110px;
  flex: 0 0 110px;
  padding: 12px;
}

.for-you-cover span {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.for-you-cover strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  text-overflow: ellipsis;
}

.for-you-cover.is-small strong {
  font-size: 18px;
  line-height: 1.08;
}

.for-you-child-media {
  width: 110px;
  height: 110px;
  justify-self: end;
}

.for-you-child-media .for-you-cover.is-small {
  width: 100%;
  height: 100%;
}

.for-you-child-title-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.for-you-child-promote {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(15, 20, 25, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #0f1419;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.for-you-child-promote-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  min-height: 36px;
  color: var(--ink);
  white-space: nowrap;
}

.for-you-child-promote::before {
  content: "";
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: var(--icon-up-double) center / contain no-repeat;
  mask: var(--icon-up-double) center / contain no-repeat;
}

.for-you-child-relay-toggle {
  min-width: 48px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(83, 100, 113, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: rgba(15, 20, 25, 0.78);
  padding: 0 9px;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.for-you-child-relay-toggle.is-open {
  border-color: rgba(0, 186, 124, 0.28);
  background: rgba(0, 186, 124, 0.08);
  color: #073b2b;
}

.for-you-child-promote-torch {
  width: 19px;
  height: 19px;
  display: inline-block;
  flex: 0 0 19px;
  background: currentColor;
  -webkit-mask: var(--icon-torch-runner) center / contain no-repeat;
  mask: var(--icon-torch-runner) center / contain no-repeat;
}

.for-you-child-promote-count {
  color: var(--ink);
  min-width: 1.1em;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.for-you-child-promote.is-active:hover,
.for-you-child-promote.is-active:focus-visible,
.for-you-child-relay-toggle:not(:disabled):hover,
.for-you-child-relay-toggle:not(:disabled):focus-visible {
  background: var(--soft);
  border-color: rgba(15, 20, 25, 0.48);
  color: #05080c;
  outline: none;
  transform: translateY(-1px);
}

.for-you-child-promote-group.has-no-relay .for-you-child-relay-toggle {
  color: rgba(83, 100, 113, 0.42);
  border-color: rgba(83, 100, 113, 0.12);
}

.for-you-child-promote:disabled {
  color: rgba(83, 100, 113, 0.3);
  border-color: rgba(83, 100, 113, 0.18);
  cursor: default;
}

.for-you-child-relay-toggle:disabled {
  background: #ffffff;
  cursor: default;
}

.for-you-parent-main {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 13px;
  padding-right: 58px;
}

.for-you-parent-promote {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}

.for-you-parent-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.for-you-parent-kicker span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.for-you-parent-card h1,
.for-you-child-item h2 {
  min-width: 0;
  margin: 0;
}

.for-you-parent-title,
.for-you-child-title {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
}

.for-you-parent-card h1 {
  font-size: 24px;
  line-height: 1.28;
  font-weight: 900;
}

.for-you-parent-title:hover,
.for-you-parent-title:focus-visible,
.for-you-child-title:hover,
.for-you-child-title:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.for-you-parent-card p,
.for-you-child-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.for-you-parent-card p {
  font-size: 14px;
}

.for-you-parent-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.for-you-stats {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.for-you-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.for-you-stats .app-icon {
  --icon-size: 15px;
}

.for-you-child-count {
  border-radius: 999px;
  background: var(--spark-soft);
  color: var(--spark);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 900;
}

.for-you-child-count.is-descendants {
  background: rgba(29, 155, 240, 0.1);
  color: #1d78bf;
}

.for-you-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.for-you-tags span {
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 800;
}

.for-you-children {
  width: 100%;
  min-width: 0;
  display: grid;
  justify-self: start;
  gap: 18px;
  overflow: visible;
  padding-bottom: 10px;
}

.for-you-children-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
}

.for-you-children-head {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.for-you-children-head span {
  color: var(--accent);
  margin-left: 4px;
}

.for-you-relay-class-filter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.for-you-relay-class-filter button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(207, 217, 222, 0.94);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 850;
}

.for-you-relay-class-filter button span {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--soft);
  color: inherit;
  margin-left: 0;
  font-size: 11px;
}

.for-you-relay-class-filter button:hover,
.for-you-relay-class-filter button:focus-visible,
.for-you-relay-class-filter button.is-selected {
  border-color: rgba(29, 155, 240, 0.42);
  background: var(--accent-soft);
  color: var(--accent-dark);
  outline: none;
}

.for-you-child-list {
  width: 100%;
  min-width: 0;
  display: grid;
}

.for-you-child-branch {
  position: relative;
  width: auto;
  min-width: 0;
  display: grid;
}

.for-you-child-branch.is-nested {
  margin-left: var(--for-you-relay-step);
}

.for-you-child-branch.is-nested::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--for-you-relay-step) * -0.5);
  width: 1px;
  background: rgba(216, 225, 230, 0.94);
}

.for-you-child-nested {
  width: auto;
  min-width: 0;
  display: grid;
  overflow: visible;
  transform-origin: top left;
  animation: for-you-relay-open 220ms cubic-bezier(0.2, 0.78, 0.22, 1) both;
}

.for-you-child-nested.is-collapsing {
  animation: for-you-relay-close 220ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.for-you-child-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 26px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.for-you-child-item:last-child {
  border-bottom: 1px solid var(--line);
}

.for-you-child-nested .for-you-child-item {
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 26px;
  padding: 28px 0;
}

.for-you-child-nested .for-you-child-media {
  width: 110px;
  height: 110px;
}

.for-you-child-nested .for-you-child-item h2 {
  font-size: 21px;
}

.for-you-child-copy {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.for-you-child-classification {
  justify-self: start;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.for-you-child-classification.is-explain {
  background: #e8f5fd;
  color: #1a6fb3;
}

.for-you-child-classification.is-advance {
  background: #e6f6ef;
  color: #007a4f;
}

.for-you-child-classification.is-perspective {
  background: #fff1e8;
  color: #a34100;
}

.for-you-child-classification.is-evidence {
  background: #edf7f4;
  color: #0f766e;
}

.for-you-child-classification.is-apply {
  background: #eef2ff;
  color: #4254b8;
}

.for-you-child-classification.is-synthesize {
  background: #f5f2ea;
  color: #695428;
}

.for-you-child-classification.is-general {
  background: #f7f0ff;
  color: #6c3bbf;
}

.for-you-child-item h2 {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 900;
}

.for-you-child-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.for-you-child-item p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.for-you-child-item .feed-lineage {
  margin-top: 2px;
}

@keyframes for-you-relay-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes for-you-relay-close {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}
