/*
 * 文档任务点与学习旅程 Demo。
 * 只消费 Wiki 的正式 token，并通过真实阅读壳评审；接入 Learning 后继续复用这些结构。
 */

.rail-learning-summary-slot {
  min-height: 0;
  margin-top: 18px;
  overflow-y: auto;
  scrollbar-width: none;
}

.rail-learning-summary-slot::-webkit-scrollbar {
  display: none;
}

.rail-learning-summary-slot:empty {
  display: none;
}

.learning-sidebar-summary {
  display: grid;
  width: 100%;
  gap: 20px;
  margin: 0;
  padding: 1px 0 3px;
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.learning-sidebar-summary__enroll {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--watcha-line);
  border-radius: 8px;
  color: var(--watcha-deep);
  background: var(--watcha-soft);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.learning-sidebar-summary__enroll span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.learning-sidebar-summary__enroll strong {
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--t-ui);
  font-weight: 600;
  line-height: var(--lh-ui);
}

.learning-sidebar-summary__enroll small {
  color: var(--mut);
  font-family: var(--font-sans);
  font-size: var(--t-mono);
  line-height: var(--lh-ui);
}

.learning-sidebar-summary__enroll > b {
  font-family: var(--font-sans);
  font-size: var(--t-ui);
  font-weight: 500;
}

.learning-sidebar-summary__enroll:hover {
  border-color: var(--watcha);
}

.learning-sidebar-summary__enroll--invite {
  min-height: 40px;
  padding: 8px 12px;
  white-space: nowrap;
}

.learning-sidebar-summary__head,
.learning-sidebar-summary__progress {
  display: flex;
}

.learning-sidebar-summary__head {
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.learning-sidebar-summary__head strong {
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--t-ui);
  font-weight: 650;
  line-height: var(--lh-ui);
}

.learning-sidebar-summary__head small,
.learning-sidebar-summary__progress small {
  color: var(--mut);
  font-family: var(--font-sans);
  font-size: var(--t-mono);
  line-height: var(--lh-ui);
}

.learning-sidebar-summary__progress {
  flex-direction: column;
  gap: 7px;
}

.learning-sidebar-summary__progress > span:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.learning-sidebar-summary__progress > span:first-child strong {
  color: var(--watcha-deep);
  font-family: var(--font-mono);
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.learning-sidebar-summary__track {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--watcha-line);
}

.learning-sidebar-summary__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--watcha);
}

.learning-sidebar-summary__milestones {
  display: grid;
  gap: 10px;
}

.learning-sidebar-summary__milestones ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-sidebar-summary__milestones li {
  display: block;
}

.learning-sidebar-summary__milestones li > button {
  display: grid;
  width: 100%;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.learning-sidebar-summary__milestones li > button:hover strong {
  color: var(--watcha-deep);
}

.learning-sidebar-summary__milestones li > button > span {
  display: grid;
  width: 36px;
  height: 36px;
  overflow: hidden;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--mut);
  background: transparent;
}

.learning-sidebar-summary__milestones li.is-done > button > span {
  color: var(--watcha-deep);
  background: transparent;
}

.learning-sidebar-summary__milestones img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.learning-sidebar-summary__milestones b {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 600;
}

.learning-sidebar-summary__milestones li div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.learning-sidebar-summary__milestones li div strong {
  overflow: hidden;
  color: var(--ink-2);
  font-size: var(--t-ui);
  font-weight: 600;
  line-height: var(--lh-ui);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-sidebar-summary__milestones li div small {
  overflow: hidden;
  color: var(--mut);
  font-family: var(--font-sans);
  font-size: var(--t-mono);
  line-height: var(--lh-ui);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-sidebar-summary__milestones li > button > svg {
  width: 14px;
  height: 14px;
  color: var(--mut);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.learning-sidebar-summary__certificate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--ink-2);
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--t-ui);
  font-weight: 600;
  line-height: var(--lh-ui);
  text-decoration: none;
}

.learning-sidebar-summary__certificate b {
  font-weight: 500;
}

.learning-milestones-dialog {
  z-index: 10010;
}

.learning-milestones-dialog__panel {
  width: min(600px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 40px));
}

.learning-milestones-dialog__overview {
  display: grid;
  gap: 7px;
  padding: 0 24px 18px;
}

.learning-milestones-dialog__overview > span {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--watcha-line);
}

.learning-milestones-dialog__overview i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--watcha);
}

.learning-milestones-dialog__overview p {
  margin: 0;
  color: var(--mut);
  font-size: var(--t-ui);
}

.learning-milestones-dialog__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-milestones-dialog__body {
  scrollbar-width: none;
}

.learning-milestones-dialog__body::-webkit-scrollbar {
  display: none;
}

.learning-milestones-dialog__list > li {
  border-bottom: 1px solid var(--line);
}

.learning-milestones-dialog__list > li:last-child {
  border-bottom: 0;
}

.learning-milestones-dialog__toggle {
  display: grid;
  width: 100%;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.learning-milestones-dialog__toggle > span {
  display: grid;
  width: 46px;
  height: 46px;
  overflow: hidden;
  place-items: center;
  border-radius: 10px;
  color: var(--mut);
  background: var(--card);
}

.learning-milestones-dialog__list > li.is-done .learning-milestones-dialog__toggle > span {
  color: var(--watcha-deep);
  background: var(--watcha-soft);
}

.learning-milestones-dialog__toggle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.learning-milestones-dialog__toggle b {
  font-family: var(--font-mono);
  font-size: var(--t-ui);
}

.learning-milestones-dialog__toggle div {
  min-width: 0;
}

.learning-milestones-dialog__toggle :is(strong, small) {
  display: block;
}

.learning-milestones-dialog__toggle strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--t-cardtitle);
}

.learning-milestones-dialog__toggle small {
  margin-top: 3px;
  color: var(--mut);
  font-size: var(--t-mono);
}

.learning-milestones-dialog__toggle > svg {
  width: 15px;
  height: 15px;
  color: var(--mut);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-90deg);
  transition: transform 0.15s ease;
}

.learning-milestones-dialog__toggle[aria-expanded='true'] > svg {
  transform: none;
}

.learning-milestones-dialog__detail {
  display: grid;
  gap: 9px;
  padding: 0 0 17px 60px;
}

.learning-milestones-dialog__detail p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--t-ui);
  line-height: var(--lh-comp);
}

.learning-milestones-dialog__detail > small {
  color: var(--mut);
  font-size: var(--t-mono);
}

.learning-milestones-dialog__detail dl {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 2px 0 0;
}

.learning-milestones-dialog__detail dt {
  color: var(--mut);
  font-size: var(--t-mono);
}

.learning-milestones-dialog__detail dd {
  margin: 0;
  color: var(--watcha-deep);
  font-size: var(--t-ui);
  font-weight: 600;
}

@media (max-width: 640px) {
  .learning-milestones-dialog__overview {
    padding-right: 16px;
    padding-left: 16px;
  }

  .learning-milestones-dialog__detail {
    padding-left: 0;
  }
}

.g-list a > .tree-page-title {
  min-width: 0;
  flex: 1;
}

.g-list a > .learning-tree-status {
  min-width: 25px;
  flex: none;
  margin-left: auto;
  color: var(--mut);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 500;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.g-list a.on > .learning-tree-status {
  color: var(--watcha-deep);
}

.g-list a > .learning-tree-status.is-complete {
  color: var(--watcha);
  font-family: var(--font-sans);
  font-size: var(--t-ui);
  font-weight: 800;
}

.learning-journey-preview[hidden] {
  display: none;
}

.learning-journey-preview {
  position: fixed;
  inset: 0;
  z-index: 158;
  display: grid;
  place-items: center;
  padding: 18px;
}

.learning-journey-preview__mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 22, 17, 0.36);
  cursor: default;
}

.learning-journey-preview__panel {
  position: relative;
  display: flex;
  width: min(680px, calc(100vw - 28px));
  max-height: calc(100dvh - 36px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--paper-2);
}

.learning-journey-preview__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 12px;
}

.learning-journey-preview__head small {
  display: block;
  margin-bottom: 3px;
  color: var(--watcha-deep);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.1em;
}

.learning-journey-preview__head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--t-h2);
  line-height: var(--lh-title);
}

.learning-journey-preview__head > button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  color: var(--ink-2);
  background: var(--paper-2);
}

.learning-journey-preview__head > button:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}

.learning-journey-preview__head svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.learning-journey-preview__summary {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 0 22px;
  padding: 14px 0 18px;
  background: transparent;
}

.learning-journey-preview__ring {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
}

.learning-journey-preview__ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.learning-journey-preview__ring circle {
  fill: none;
  stroke: var(--watcha-line);
  stroke-width: 4;
}

.learning-journey-preview__ring circle.is-progress {
  stroke: var(--watcha);
  stroke-dasharray: 46 107;
  stroke-linecap: round;
}

.learning-journey-preview__ring > strong {
  color: var(--ink);
  font-family: var(--font-gara);
  font-size: var(--t-h2);
  line-height: 1;
}

.learning-journey-preview__ring > strong small {
  color: var(--mut);
  font-size: var(--t-ui);
}

.learning-journey-preview__next {
  min-width: 0;
}

.learning-journey-preview__next > small {
  display: block;
  color: var(--watcha-deep);
  font-size: var(--t-mono);
}

.learning-journey-preview__next > strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--t-cardtitle);
  line-height: var(--lh-title);
}

.learning-journey-preview__summary p {
  margin: 3px 0 0;
  color: var(--ink-2);
  font-size: var(--t-ui);
  line-height: var(--lh-ui);
}

.learning-journey-preview__milestone-glance {
  display: grid;
  min-width: 126px;
  gap: 7px;
  justify-items: end;
}

.learning-journey-preview__milestone-glance > span {
  display: flex;
  padding-left: 7px;
}

.learning-journey-preview__milestone-glance i {
  display: grid;
  width: 36px;
  height: 36px;
  margin-left: -7px;
  overflow: hidden;
  place-items: center;
  border: 2px solid var(--paper-2);
  border-radius: 50%;
  color: var(--mut);
  background: var(--card);
  font-style: normal;
}

.learning-journey-preview__milestone-glance i.is-done {
  color: var(--watcha-deep);
  background: var(--watcha-soft);
}

.learning-journey-preview__milestone-glance img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learning-journey-preview__milestone-glance b,
.learning-journey-preview__milestone-glance small {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
}

.learning-journey-preview__milestone-glance small {
  color: var(--mut);
}

.learning-journey-preview__tabs {
  display: flex;
  gap: 5px;
  padding: 0 22px 12px;
}

.learning-journey-preview__tabs button {
  flex: 1 1 0;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--mut);
  font-size: var(--t-ui);
  line-height: var(--lh-ui);
}

.learning-journey-preview__tabs button:hover {
  color: var(--ink);
  background: var(--card);
}

.learning-journey-preview__tabs button:disabled {
  color: var(--line-2);
  background: transparent;
  cursor: not-allowed;
}

.learning-journey-preview__tabs button[aria-selected='true'] {
  border-color: var(--watcha-line);
  color: var(--watcha-deep);
  background: var(--watcha-soft);
  font-weight: 700;
}

.learning-journey-preview__body {
  min-height: 250px;
  overflow-y: auto;
  padding: 18px 22px 24px;
  scrollbar-color: var(--line-2) transparent;
  scrollbar-width: thin;
}

.learning-journey-preview__body > section[hidden] {
  display: none;
}

.learning-journey-preview__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.learning-journey-preview__section-head strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--t-cardtitle);
}

.learning-journey-preview__section-head small {
  color: var(--mut);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
}

.learning-journey-preview :is(
  .learning-journey-preview__task-list,
  .learning-journey-preview__milestones,
  .learning-journey-preview__requirements
) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-journey-preview__task-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
}

.learning-journey-preview__task-list li > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--mut);
  font-family: var(--font-gara);
  font-size: var(--t-ui);
  font-style: italic;
}

.learning-journey-preview__task-list li:is(.is-current, .is-done) > span {
  border-color: var(--watcha-line);
  color: var(--watcha-deep);
  background: var(--watcha-soft);
}

.learning-journey-preview__task-list li div {
  min-width: 0;
}

.learning-journey-preview__task-list li :is(strong, small) {
  display: block;
}

.learning-journey-preview__task-list li strong {
  overflow: hidden;
  color: var(--ink);
  font-size: var(--t-ui);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-journey-preview__task-list li small {
  margin-top: 2px;
  color: var(--mut);
  font-size: var(--t-mono);
}

.learning-journey-preview__task-list li :is(a, em) {
  color: var(--watcha-deep);
  font-size: var(--t-ui);
  font-style: normal;
  text-decoration: none;
}

.learning-journey-preview__task-list li.is-done :is(strong, small) {
  color: var(--mut);
}

.learning-journey-preview__milestones li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
}

.learning-journey-preview__milestones li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  color: var(--mut);
  font-family: var(--font-serif);
  font-size: var(--t-ui);
  font-weight: 800;
}

.learning-journey-preview__milestones li > span img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.learning-journey-preview__milestones li > span b {
  font: inherit;
}

.learning-journey-preview__milestones li:is(.is-done, .is-current) > span {
  border-color: var(--watcha-line);
  color: var(--watcha-deep);
  background: var(--watcha-soft);
}

.learning-journey-preview__milestones strong {
  display: block;
  color: var(--ink);
  font-size: var(--t-ui);
}

.learning-journey-preview__milestones p {
  margin: 2px 0 0;
  color: var(--mut);
  font-size: var(--t-mono);
  line-height: var(--lh-ui);
}

.learning-journey-preview__milestones em {
  color: var(--mut);
  font-size: var(--t-mono);
  font-style: normal;
}

.learning-journey-preview__milestones li:is(.is-current, .is-done) em {
  color: var(--watcha-deep);
}

.learning-journey-preview__intro {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: var(--t-ui);
  line-height: var(--lh-comp);
}

.learning-journey-preview__enrollment-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 8px 0;
}

.learning-journey-preview__enrollment-status > :is(svg, span) {
  color: var(--watcha-deep);
}

.learning-journey-preview__enrollment-status > span {
  font-family: var(--font-serif);
  font-size: var(--t-cardtitle);
  font-weight: 800;
}

.learning-journey-preview__enrollment-status :is(strong, p) {
  display: block;
  margin: 0;
}

.learning-journey-preview__enrollment-status strong {
  color: var(--ink);
  font-size: var(--t-ui);
}

.learning-journey-preview__enrollment-status p {
  margin-top: 3px;
  color: var(--mut);
  font-size: var(--t-mono);
  line-height: var(--lh-ui);
}

.learning-journey-preview__enrollment-status :is(a, button) {
  padding: 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  color: var(--watcha-deep);
  background: transparent;
  font-size: var(--t-ui);
  text-decoration: none;
  white-space: nowrap;
}

.learning-journey-preview__invite-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
}

.learning-journey-preview__invite-code :is(small, strong) {
  display: block;
}

.learning-journey-preview__invite-code small {
  max-width: 290px;
  margin-top: 4px;
  color: var(--mut);
  font-size: var(--t-mono);
  line-height: var(--lh-ui);
}

.learning-journey-preview__invite-code strong {
  color: var(--ink);
  font-size: var(--t-ui);
}

.learning-journey-preview__invite-code button {
  display: inline-flex;
  min-width: 118px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--paper-2);
  background: var(--ink);
  font-size: var(--t-ui);
}

.learning-journey-preview__invite-code button[data-copy-state='success'] {
  border-color: var(--watcha-line);
  color: var(--watcha-deep);
  background: var(--watcha-soft);
}

.learning-journey-preview__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.learning-journey-preview__facts span {
  display: grid;
  gap: 2px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.learning-journey-preview__facts strong {
  color: var(--ink);
  font-family: var(--font-gara);
  font-size: var(--t-h3);
}

.learning-journey-preview__facts small {
  color: var(--mut);
  font-size: var(--t-mono);
}

.learning-journey-preview__certificate {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 8px 0;
}

.learning-journey-preview__certificate > div:first-child {
  display: grid;
  width: 50px;
  height: 60px;
  place-items: center;
  border: 1px solid var(--red-soft);
  border-radius: 8px;
  color: var(--red-deep);
  background: var(--paper-2);
  font-family: var(--font-serif);
  font-size: var(--t-h2);
  font-weight: 900;
}

.learning-journey-preview__certificate > div:last-child {
  min-width: 0;
}

.learning-journey-preview__certificate strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--t-cardtitle);
}

.learning-journey-preview__certificate p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: var(--t-ui);
  line-height: var(--lh-comp);
}

.learning-journey-preview__requirements {
  margin-top: 14px;
}

.learning-journey-preview__requirements li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--ink-2);
  font-size: var(--t-ui);
}

.learning-journey-preview__notice,
.learning-journey-preview__empty p {
  margin: 12px 0 0;
  color: var(--mut);
  font-size: var(--t-ui);
  line-height: var(--lh-ui);
}

.learning-journey-preview .learning-enrollment {
  padding: 6px 0;
  border-radius: 0;
  background: transparent;
}

.learning-journey-preview .learning-enrollment__state {
  gap: 14px;
}

.learning-journey-preview .learning-enrollment__state h3,
.learning-journey-preview .learning-enrollment__form-head h3 {
  color: var(--ink);
  font-size: var(--t-ui);
  line-height: var(--lh-title);
}

.learning-journey-preview .learning-enrollment__fields {
  grid-template-columns: 1fr;
}

.learning-journey-preview .learning-enrollment__fields label.is-wide {
  grid-column: auto;
}

.learning-journey-preview__requirements li > span {
  min-width: 28px;
  color: var(--mut);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
}

.learning-journey-preview__requirements li.is-done,
.learning-journey-preview__requirements li.is-done > span {
  color: var(--watcha-deep);
}

html.learning-preview-open,
html.learning-preview-open body {
  overflow: hidden;
}

/* 正文中的任务点样式。 */
.wiki-article .learning-task-point {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin: 14px 0 28px;
  padding: 16px 17px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--paper-2);
}

.wiki-article .learning-task-point.is-current {
  border-color: var(--watcha-line);
  background: var(--watcha-soft);
}

.wiki-article .learning-task-point.is-done {
  border-color: var(--watcha-line);
  background: var(--paper-2);
}

.wiki-article .learning-task-point.is-submitted {
  border-color: #e1cdb0;
  background: #f8f0e3;
}

.wiki-article .learning-task-point__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--mut);
  font-family: var(--font-gara);
  font-size: var(--t-ui);
  font-style: italic;
}

.wiki-article .learning-task-point:is(.is-current, .is-done) .learning-task-point__mark {
  border-color: var(--watcha-line);
  color: var(--watcha-deep);
  background: var(--watcha-soft);
}

.wiki-article .learning-task-point.is-submitted .learning-task-point__mark {
  border-color: #e1cdb0;
  color: var(--red-deep);
  background: var(--paper-2);
}

.wiki-article .learning-task-point__body {
  min-width: 0;
}

.wiki-article .learning-task-point__body > small {
  display: block;
  color: var(--mut);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.05em;
}

.wiki-article .learning-task-point__body > strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--t-cardtitle);
  line-height: var(--lh-title);
}

.wiki-article .learning-task-point__body > p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: var(--t-comp);
  line-height: var(--lh-comp);
}

.wiki-article .learning-task-point > button {
  min-height: 36px;
  align-self: center;
  padding: 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--ink-2);
  background: var(--paper-2);
  font-size: var(--t-ui);
  white-space: nowrap;
}

.wiki-article .learning-task-point > button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.wiki-article .learning-task-point > button.is-primary {
  border-color: var(--ink);
  color: var(--paper-2);
  background: var(--ink);
}

.wiki-article .learning-task-point > button.is-primary:hover {
  border-color: var(--watcha-deep);
  color: var(--paper-2);
  background: var(--watcha-deep);
}

.wiki-article .learning-task-point__evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: var(--t-mono);
}

.wiki-article .learning-task-point__evidence span {
  color: var(--mut);
}

.wiki-article .learning-task-point__evidence b {
  color: var(--ink-2);
  font-weight: 600;
}

.wiki-article .learning-task-point--interactive {
  margin-top: -14px;
  padding: 20px;
}

.wiki-article .learning-task-point__watch-progress {
  margin-top: 16px;
}

.wiki-article .learning-task-point__watch-progress > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
  color: var(--ink-2);
  font-size: var(--t-ui);
}

.wiki-article .learning-task-point__watch-progress b {
  color: var(--watcha-deep);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 650;
}

.wiki-article .learning-task-point__watch-progress progress {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: var(--line);
}

.wiki-article .learning-task-point__watch-progress progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--line);
}

.wiki-article .learning-task-point__watch-progress progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--watcha);
}

.wiki-article .learning-task-point__watch-progress progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--watcha);
}

.wiki-article .learning-task-point__note {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.wiki-article .learning-task-point__note > span {
  color: var(--ink);
  font-size: var(--t-ui);
  font-weight: 700;
}

.wiki-article .learning-task-point__note textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  outline: 0;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--paper-2);
  font: inherit;
  font-size: var(--t-comp);
  line-height: var(--lh-comp);
}

.wiki-article .learning-task-point__note textarea:focus {
  border-color: var(--ink-2);
}

.wiki-article .learning-task-point__note textarea:disabled {
  color: var(--mut);
  background: var(--card);
  cursor: not-allowed;
}

.wiki-article .learning-task-point__note textarea:read-only {
  resize: none;
}

.wiki-article .learning-task-point__hint {
  margin: 7px 0 0;
  color: var(--mut);
  font-size: var(--t-mono);
  line-height: var(--lh-ui);
}

.wiki-article .learning-task-point__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.wiki-article .learning-task-point__actions button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--ink-2);
  background: var(--paper-2);
  font-size: var(--t-ui);
}

.wiki-article .learning-task-point__actions button:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--ink);
}

.wiki-article .learning-task-point__actions button.is-primary {
  border-color: var(--ink);
  color: var(--paper-2);
  background: var(--ink);
}

.wiki-article .learning-task-point__actions button.is-primary:hover:not(:disabled) {
  border-color: var(--watcha-deep);
  color: var(--paper-2);
  background: var(--watcha-deep);
}

.wiki-article .learning-task-point__actions button:disabled {
  border-color: var(--line);
  color: var(--mut);
  background: var(--card);
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .learning-journey-preview {
    place-items: center;
    padding: 8px;
  }

  .learning-journey-preview__panel {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }

  .learning-journey-preview__head,
  .learning-journey-preview__body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .learning-journey-preview__summary {
    grid-template-columns: 70px minmax(0, 1fr);
    margin-right: 16px;
    margin-left: 16px;
  }

  .learning-journey-preview__milestone-glance {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
  }

  .learning-journey-preview__tabs {
    padding-right: 16px;
    padding-left: 16px;
  }

  .learning-journey-preview__milestones li {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .learning-journey-preview__milestones em {
    grid-column: 2;
  }

  .wiki-article .learning-task-point {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
  }

  .wiki-article .learning-task-point__mark {
    width: 31px;
    height: 31px;
  }

  .wiki-article .learning-task-point > button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .learning-journey-preview__summary {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
  }

  .learning-journey-preview__ring {
    width: 52px;
    height: 52px;
  }

  .learning-journey-preview__tabs {
    gap: 3px;
  }

  .learning-journey-preview__tabs button {
    font-size: var(--t-mono);
  }

  .learning-journey-preview__task-list li {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .learning-journey-preview__task-list li :is(a, em) {
    grid-column: 2;
  }

}
/* TraeWork 运营互动。抽奖只以 Space 级大弹窗出现，不占课程页面与目录。 */

.lottery-modal {
  position: fixed;
  inset: 0;
  z-index: 116;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lottery-modal[hidden] {
  display: none;
}

.lottery-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 13, 0.72);
}

.lottery-modal__card {
  position: relative;
  width: min(1060px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--paper-2);
}

.lottery-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
}

.lottery-modal__close:hover {
  border-color: var(--ink);
  background: var(--card);
}

.lottery-modal__close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

html.lottery-modal-open {
  overflow: hidden;
}

watcha-lottery {
  display: block;
}

.trae-lottery {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  min-height: 620px;
}

.trae-lottery__poster {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #f3f3f1;
}

.trae-lottery__poster button {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}

.trae-lottery__poster button:focus-visible {
  outline: 2px solid var(--watcha-deep);
  outline-offset: 3px;
}

.trae-lottery__poster img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 84px);
  object-fit: contain;
}

.trae-lottery__intro {
  min-width: 0;
}

.trae-lottery__eyebrow {
  margin: 0 0 16px;
  color: var(--watcha-deep);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 600;
  letter-spacing: 0.14em;
}

.trae-lottery__intro h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--t-h1);
  font-weight: 900;
  line-height: var(--lh-title);
}

.trae-lottery__lead {
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: var(--t-comp);
  line-height: var(--lh-comp);
}

.trae-lottery__panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 56px 48px 32px;
  background: var(--paper-2);
}

.trae-lottery__state {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--card);
}

.trae-lottery__state-label {
  margin: 0 0 8px;
  color: var(--watcha-deep);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.trae-lottery__state h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--t-h2);
  font-weight: 900;
  line-height: var(--lh-title);
}

.trae-lottery__status {
  min-height: 42px;
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: var(--t-ui);
  line-height: var(--lh-ui);
}

.trae-lottery__status[data-kind="error"] {
  color: var(--red-deep);
}

.trae-lottery__status[data-kind="success"] {
  color: var(--watcha-deep);
}

.trae-lottery__actions {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.trae-lottery__actions button,
.trae-lottery__claim button {
  min-height: 46px;
  border: 1px solid var(--ink-surface);
  border-radius: 9px;
  padding: 0 20px;
  background: var(--ink-surface);
  color: #fffaf0;
  font-family: var(--font-sans);
  font-size: var(--t-ui);
  font-weight: 750;
  cursor: pointer;
}

.trae-lottery__actions button:hover:not(:disabled),
.trae-lottery__claim button:hover:not(:disabled) {
  border-color: var(--watcha-deep);
  background: var(--watcha-deep);
}

.trae-lottery__actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.trae-lottery__actions .trae-lottery__retry {
  border-color: var(--line-2);
  background: transparent;
  color: var(--ink-2);
}

.trae-lottery__actions .trae-lottery__retry:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--card);
  color: var(--ink);
}

.trae-lottery__result,
.trae-lottery__history {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--card);
}

.trae-lottery__result[hidden],
.trae-lottery__history[hidden],
.trae-lottery__claim[hidden] {
  display: none;
}

.trae-lottery__result[data-result="win"] {
  border-color: var(--watcha-line);
  background: var(--watcha-soft);
}

.trae-lottery__result-kicker {
  margin: 0 0 7px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.trae-lottery__result h4,
.trae-lottery__history h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--t-cardtitle);
  font-weight: 900;
  line-height: var(--lh-title);
}

.trae-lottery__result > p:last-of-type {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: var(--t-ui);
  line-height: var(--lh-ui);
}

.trae-lottery__claim {
  display: grid;
  grid-template-columns: minmax(148px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
  align-items: start;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--watcha-line);
}

.trae-lottery__contact {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--paper-2);
}

.trae-lottery__contact span {
  display: block;
  color: var(--mut);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  line-height: var(--lh-ui);
}

.trae-lottery__contact code {
  margin-top: 6px;
  color: var(--ink);
  font-size: var(--t-ui);
  font-weight: 600;
}

.trae-lottery__contact button {
  width: 100%;
}

.trae-lottery__claim strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--t-comp);
  font-weight: 900;
}

.trae-lottery__claim p {
  margin: 6px 0 10px;
  color: var(--ink-2);
  font-size: var(--t-ui);
  line-height: var(--lh-ui);
}

.trae-lottery__claim code,
.trae-lottery__history code {
  display: block;
  overflow: hidden;
  color: var(--red-deep);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trae-lottery__claim button {
  min-height: 36px;
  margin-top: 10px;
  border-color: var(--line-2);
  padding: 0 13px;
  background: var(--paper-2);
  color: var(--ink);
}

.trae-lottery__history ul {
  display: grid;
  gap: 8px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.trae-lottery__history li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
  gap: 14px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  font-size: var(--t-ui);
}

.trae-lottery__history code {
  text-align: right;
}

.trae-lottery__note {
  margin: 24px 0 0;
  padding-top: 24px;
  color: var(--mut);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  line-height: var(--lh-ui);
}

.side-foot .side-foot__cta--lottery {
  border: 1px solid var(--ink-surface);
  background: var(--ink-surface);
  color: #fffaf0;
}

.side-foot .side-foot__cta--lottery i {
  color: #a9dd90;
}

.side-foot .side-foot__cta--lottery:hover {
  border-color: var(--watcha-deep);
  background: var(--watcha-deep);
  color: #fffaf0;
}

/* 直播长海报：只在 TraeWork、截止时间前、每个浏览器首次进入时出现。 */
.live-poster-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
}

.live-poster-modal[hidden] {
  display: none;
}

.live-poster-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 17, 0.68);
}

.live-poster-modal__card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--paper-2);
}

.live-poster-modal__card a {
  display: block;
}

.live-poster-modal__card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 42px);
  object-fit: contain;
}

.live-poster-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
}

.live-poster-modal__close:hover {
  border-color: var(--ink);
}

.live-poster-modal__close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

@media (max-width: 720px) {
  .lottery-modal {
    align-items: end;
    padding: 8px;
  }

  .lottery-modal__card {
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
  }

  .lottery-modal__close {
    top: 12px;
    right: 12px;
  }

  .trae-lottery {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .trae-lottery__panel {
    order: 1;
    padding: 52px 20px 22px;
  }

  .trae-lottery__intro h3 {
    font-size: var(--t-h2);
  }

  .trae-lottery__eyebrow {
    margin-bottom: 10px;
  }

  .trae-lottery__lead {
    margin-top: 12px;
  }

  .trae-lottery__state {
    margin-top: 22px;
  }

  .trae-lottery__state,
  .trae-lottery__result,
  .trae-lottery__history {
    padding: 20px;
  }

  .trae-lottery__claim {
    grid-template-columns: 1fr;
  }

  .trae-lottery__history li {
    grid-template-columns: 1fr;
  }

  .trae-lottery__history code {
    text-align: left;
  }

  .trae-lottery__note {
    margin-top: 20px;
    padding-top: 20px;
  }

  .trae-lottery__poster {
    order: 2;
    padding: 20px;
    border-top: 1px solid var(--line);
    border-right: 0;
    background: var(--paper-2);
  }

  .trae-lottery__poster img {
    max-height: none;
  }

  .live-poster-modal {
    padding: 12px;
  }

  .live-poster-modal__card {
    max-height: calc(100vh - 24px);
  }

  .live-poster-modal__card img {
    max-height: calc(100vh - 26px);
  }
}

@media (max-width: 480px) {
  .lottery-modal {
    padding: 0;
  }

  .lottery-modal__card {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
}
.jobs-nav, .jobs-nav a, .jobs-back {
  display: flex;
  align-items: center;
  gap: 9px;
}
.jobs-page { font: var(--t-body)/var(--lh-body) var(--font-sans); }
.jobs-page :is(h1, h2, h3, p) { margin: 0; }
.jobs-page :is(h1, h2, h3) { font-family: var(--font-serif); line-height: var(--lh-title); }
.jobs-page h1 { font-size: var(--t-display); font-weight: 900; }
.jobs-page h2 { font-size: var(--t-h3); font-weight: 700; }
.jobs-page h3 { font-size: var(--t-cardtitle); font-weight: 700; }
.jobs-page button { cursor: pointer; }
.jobs-page :is(button, input, select, textarea) { font: inherit; }
.jobs-page :is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--watcha-deep); outline-offset: 4px; }
.jobs-nav { flex-wrap: wrap; gap: 4px; margin-bottom: 28px; font-size: var(--t-ui); }
.jobs-return-course { margin-left: auto; }
.jobs-nav a { color: var(--mut); padding: 9px 12px; border-radius: 6px; }
.jobs-nav a[aria-current="page"] { color: var(--watcha-deep); background: var(--watcha-soft); font-weight: 600; }
.jobs-hero { padding: 0 0 24px; }
.jobs-hero .jobs-eyebrow { margin-bottom: 14px; color: var(--watcha-deep); font: var(--t-mono)/1.6 var(--font-mono); letter-spacing: .12em; }
.jobs-hero > p:last-child { max-width: 650px; margin-top: 16px; color: var(--mut); font-size: var(--t-body); }
.jobs-search { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); color: var(--mut); }
.jobs-search svg { flex: none; }
.jobs-search input { width: 100%; min-width: 0; border: 0; outline: none; background: none; color: var(--ink); font-size: var(--t-ui); }
.jobs-results-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; color: var(--mut); font-size: var(--t-mono); }
.jobs-results-head button, .jobs-filter-heading button, .jobs-more, .jobs-state button:not(.jobs-primary) { padding: 0; border: 0; background: none; color: var(--watcha-deep); font-size: var(--t-ui); }
.jobs-list { column-count: 2; column-gap: 16px; }
.jobs-team-card { display: inline-block; vertical-align: top; width: 100%; min-width: 0; margin-bottom: 16px; padding: 20px 18px 10px; break-inside: avoid; border: 1px solid var(--line); border-radius: 8px; }
.jobs-team-heading { display: flex; align-items: center; gap: 12px; }
.jobs-team-heading > :is(img, .jobs-logo-placeholder) { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: var(--card); color: var(--mut); }
.jobs-team-heading > div { flex: 1; min-width: 0; }
.jobs-team-heading h2 { overflow-wrap: anywhere; font-size: var(--t-h3); }
.jobs-team-heading small { display: block; margin-top: 3px; color: var(--mut); font-size: var(--t-mono); }
.jobs-team-heading > svg { flex: none; color: var(--mut); }
.jobs-team-card .jobs-team-intro { margin: 16px 0; color: var(--ink-2); font-size: var(--t-ui); line-height: 1.8; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.jobs-position { display: flex; align-items: center; gap: 14px; padding: 16px 0; color: var(--ink); }
.jobs-position + .jobs-position { border-top: 1px solid var(--line); }
.jobs-position > div { flex: 1; min-width: 0; }
.jobs-position h3 { font-family: var(--font-sans); font-size: var(--t-ui); font-weight: 600; }
.jobs-position p { margin-top: 5px; color: var(--mut); font-size: var(--t-mono); }
.jobs-position p.jobs-position-summary { color: var(--ink-2); font-size: var(--t-ui); }
.jobs-position > svg { flex: none; color: var(--mut); }
.jobs-position:hover :is(h2, h3), .jobs-team-heading:hover h2 { color: var(--watcha-deep); }
.jobs-salary { flex: none; color: var(--watcha-deep); font-size: var(--t-ui); font-weight: 600; }
.jobs-position > .jobs-salary { max-width: 38%; text-align: right; overflow-wrap: anywhere; }
.jobs-more { margin: 8px 0 10px; }
.jobs-page .jobs-footnote { margin-top: 28px; color: var(--mut); font-size: var(--t-mono); }
.jobs-filters { display: grid; gap: 18px; }
.jobs-filter-heading { display: flex; align-items: center; justify-content: space-between; }
.jobs-filter-heading h2 { display: flex; align-items: center; gap: 8px; font: 600 var(--t-ui)/1.6 var(--font-sans); }
.jobs-filters > label { display: grid; gap: 7px; color: var(--mut); font-size: var(--t-mono); }
.jobs-filters select { width: 100%; padding: 9px 10px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); font-size: var(--t-ui); }
.jobs-rail-section + .jobs-rail-section, .jobs-filters + .jobs-rail-section { margin-top: 32px; }
.jobs-rail-section h2 { margin-bottom: 14px; font: 600 var(--t-ui)/1.6 var(--font-sans); }
.jobs-rail-section p { margin-top: 12px; color: var(--mut); font-size: var(--t-ui); line-height: 1.9; }
.jobs-resource-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: var(--t-ui); line-height: 1.7; overflow-wrap: anywhere; }
.jobs-resource-link svg { flex: none; color: var(--mut); }
.jobs-resource-link small { display: block; margin-top: 3px; color: var(--mut); font-size: var(--t-mono); }
.jobs-resource-link[aria-current="page"] { color: var(--watcha-deep); font-weight: 600; }
.jobs-resource-link:hover { color: var(--watcha-deep); }
.jobs-state { display: grid; justify-items: center; align-content: center; gap: 18px; min-height: 240px; padding: 36px 18px; color: var(--mut); text-align: center; }
.jobs-reading { max-width: var(--article-measure); margin: auto; }
.jobs-back { width: fit-content; margin-bottom: 24px; color: var(--mut); font-size: var(--t-ui); }
.jobs-detail-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; color: var(--ink-2); font-size: var(--t-ui); }
.jobs-team-profile { display: grid; gap: 24px; }
.jobs-team-profile--split { grid-template-columns: minmax(0, 1fr) minmax(180px, 220px); gap: 32px; }
.jobs-team-profile > div { min-width: 0; }
.jobs-team-identity { display: flex; align-items: center; gap: 16px; }
.jobs-team-identity > img { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: contain; }
.jobs-team-identity > div { min-width: 0; }
.jobs-team-identity h1 { font-size: var(--t-h2); overflow-wrap: anywhere; }
.jobs-team-identity .jobs-organization { color: var(--mut); font-size: var(--t-ui); }
.jobs-team-identity h1 + .jobs-organization { margin-top: 5px; }
.jobs-team-profile .jobs-team-summary { margin-top: 16px; color: var(--ink-2); }
.jobs-team-profile .jobs-team-tags { margin: 12px 0 0; }
.jobs-team-profile-aside { display: grid; align-content: start; gap: 24px; }
.jobs-team-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.jobs-team-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--watcha-deep); font-size: var(--t-ui); }
.jobs-team-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.jobs-team-people h2 { margin-bottom: 10px; color: var(--mut); font: 500 var(--t-ui)/1.6 var(--font-sans); }
.jobs-resource-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; white-space: normal; }
.jobs-story { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 16px; border-radius: 8px; background: var(--card); }
.jobs-story:hover { background: var(--watcha-soft); }
.jobs-story-copy { flex: 1; min-width: 0; }
.jobs-story-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--mut); font-size: var(--t-mono); line-height: 1.6; }
.jobs-story-label > svg { flex: none; }
.jobs-story-label > svg:last-child { margin-left: auto; }
.jobs-story strong { color: var(--ink); font: 700 var(--t-cardtitle)/1.6 var(--font-serif); }
.jobs-story p { margin-top: 6px; color: var(--mut); font-size: var(--t-ui); line-height: 1.7; }
.jobs-story :is(strong, p) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.jobs-story > img { flex: none; width: 88px; height: 88px; max-width: 30%; border-radius: 6px; object-fit: cover; }
.jobs-story:only-child { grid-column: 1 / -1; }
.jobs-story:only-child > img { width: 144px; height: 104px; }
.jobs-open-positions .jobs-position h3 { font-size: var(--t-comp); }
.jobs-team-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 20px; }
.jobs-team-tags span { padding: 3px 7px; border-radius: 4px; background: var(--card); color: var(--ink-2); font-size: var(--t-mono); line-height: 1.6; }
.jobs-team-card .jobs-team-tags { margin-bottom: 8px; }
.jobs-description > .jobs-description { margin: 0; }
.jobs-description { margin: 30px 0; color: var(--ink-2); white-space: pre-wrap; }
.jobs-description section + section { margin-top: 36px; }
.jobs-description h2 { margin-bottom: 16px; color: var(--ink); }
.jobs-open-positions h2 { margin-bottom: 4px; }
.jobs-description h2 small { margin-left: 8px; color: var(--mut); font: var(--t-ui)/1.6 var(--font-mono); }
.jobs-description ul { margin: 0; padding-left: 22px; }
.jobs-description li + li { margin-top: 7px; }
.jobs-description li::marker { color: var(--red); }
.jobs-content-image { display: block; max-width: 100%; max-height: 600px; object-fit: contain; margin: 20px auto; border-radius: 8px; }
.jobs-text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 0; border: 0; background: none; color: var(--watcha-deep); font-size: var(--t-ui); }
.jobs-founders { display: flex; flex-wrap: wrap; gap: 14px; }
.jobs-founders a { display: flex; align-items: center; gap: 10px; }
.jobs-founders :is(img, .jobs-founder-avatar) { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.jobs-founder-avatar { display: grid; place-items: center; background: var(--card); color: var(--mut); }
.jobs-founders strong { font-size: var(--t-ui); overflow-wrap: anywhere; }
.jobs-founders small { display: block; color: var(--mut); font-size: var(--t-mono); line-height: 1.6; overflow-wrap: anywhere; }
.jobs-primary { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; padding: 10px 22px; background: var(--watcha-deep); color: var(--paper-2); font-size: var(--t-ui); font-weight: 600; }
.jobs-primary:hover { background: var(--ink); }
.jobs-primary:disabled { cursor: wait; opacity: .6; }
.jobs-application { margin-top: 48px; padding: 28px; border-radius: 10px; background: var(--card); }
#jobs-apply { scroll-margin-top: calc(var(--head-h) + 24px); }
.jobs-application p { margin: 12px 0 20px; color: var(--mut); font-size: var(--t-ui); }
.jobs-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.jobs-form-grid label { display: grid; align-content: start; gap: 7px; color: var(--ink-2); font-size: var(--t-ui); }
.jobs-form-grid :is(input, textarea) { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper-2); color: var(--ink); font-size: var(--t-ui); }
.jobs-form-grid small { color: var(--mut); font-size: var(--t-mono); }
.jobs-form-wide { grid-column: 1 / -1; }
.jobs-application .jobs-error { color: var(--red-deep); }
.jobs-contact-dialog { width: min(400px, 90vw); margin: auto; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); color: var(--ink); text-align: center; }
.jobs-contact-dialog::backdrop { background: rgb(26 22 17 / 45%); }
.jobs-contact-dialog h2 { margin-top: 14px; }
.jobs-contact-dialog p { margin: 12px 0; color: var(--mut); font-size: var(--t-ui); }
.jobs-contact-dialog img { width: 240px; max-width: 100%; }
.jobs-dialog-close { display: flex; margin-left: auto; border: 0; background: none; color: var(--ink); }

.sheet.sheet--jobs { padding: 32px 24px 64px; animation: none; }
.sheet--jobs [hidden] { display: none; }
.jobs-center { min-width: 0; }
.rail.rail--jobs { overflow-y: auto; }
.jobs-rail { padding-bottom: 12px; }
.jobs-team-card .jobs-position { display: block; padding: 12px 0; }
.jobs-team-card .jobs-position > svg { display: none; }
.jobs-team-card .jobs-salary { display: block; max-width: none; margin-top: 6px; text-align: left; font-weight: 500; }
@media (max-width: 600px) {
  .sheet.sheet--jobs { padding: 24px 16px 48px; }
  .jobs-list { column-count: 1; }
  .jobs-form-grid { grid-template-columns: minmax(0, 1fr); }
  .jobs-nav { gap: 4px; }
  .jobs-nav a { padding-inline: 8px; }
  .jobs-application { padding: 20px 16px; }
  .jobs-team-identity > img { width: 48px; height: 48px; }
  .jobs-team-profile--split { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .jobs-team-profile-aside { gap: 18px; }
  .jobs-resource-list { grid-template-columns: minmax(0, 1fr); }
  .jobs-story:only-child > img { width: 88px; height: 88px; }
  .jobs-position { gap: 8px; }
}
watcha-wiki-assistant {
  position: relative;
  z-index: 120;
}

.wiki-assistant-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 122;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper-2);
  font-size: var(--t-ui);
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(26, 22, 17, 0.18);
  transition: transform 180ms ease, background 180ms ease;
}

.wiki-assistant-launcher:hover {
  background: var(--watcha-deep);
  transform: translateY(-2px);
}

.wiki-assistant-launcher svg,
.wiki-assistant-compose__tools svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wiki-assistant-panel {
  position: fixed;
  right: 24px;
  bottom: 78px;
  z-index: 123;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  width: min(430px, calc(100vw - 32px));
  height: min(700px, calc(100dvh - 110px));
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--paper-2);
  box-shadow: 0 28px 70px rgba(26, 22, 17, 0.24);
  animation: wiki-assistant-enter 180ms ease-out;
}

.wiki-assistant-panel[hidden],
.wiki-assistant-backdrop[hidden],
.wiki-assistant-login[hidden],
.wiki-assistant-suggestions[hidden],
.wiki-assistant-compose[hidden] {
  display: none;
}

@keyframes wiki-assistant-enter {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wiki-assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 13px 16px 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.wiki-assistant-head p {
  color: var(--watcha-deep);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  line-height: var(--lh-ui);
  letter-spacing: 0.08em;
}

.wiki-assistant-head h2 {
  margin-top: 1px;
  font-family: var(--font-serif);
  font-size: var(--t-h3);
  line-height: var(--lh-title);
}

.wiki-assistant-head__actions {
  display: flex;
  gap: 6px;
}

.wiki-assistant-head__actions button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink-2);
}

.wiki-assistant-head__actions button:hover {
  border-color: var(--line-2);
  background: var(--card);
}

.wiki-assistant-head__actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.wiki-assistant-context {
  min-height: 37px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  color: var(--mut);
  font-size: var(--t-mono);
  line-height: var(--lh-ui);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wiki-assistant-context span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wiki-assistant-messages {
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  overscroll-behavior: contain;
}

.wiki-assistant-welcome,
.wiki-assistant-login {
  margin: auto;
  padding: 28px 22px;
  text-align: center;
}

.wiki-assistant-welcome > span,
.wiki-assistant-login > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border: 1px solid var(--watcha-line);
  border-radius: 50%;
  background: var(--watcha-soft);
  color: var(--watcha-deep);
  font-family: var(--font-serif);
  font-size: var(--t-h3);
  font-weight: 900;
}

.wiki-assistant-welcome h3,
.wiki-assistant-login h3 {
  font-family: var(--font-serif);
  font-size: var(--t-cardtitle);
  line-height: var(--lh-title);
}

.wiki-assistant-welcome p,
.wiki-assistant-login p {
  max-width: 310px;
  margin: 8px auto 0;
  color: var(--ink-2);
  font-size: var(--t-comp);
  line-height: var(--lh-comp);
}

.wiki-assistant-login {
  align-self: center;
}

.wiki-assistant-login button {
  margin-top: 18px;
  padding: 10px 17px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper-2);
  font-size: var(--t-ui);
  font-weight: 700;
}

.wiki-assistant-message + .wiki-assistant-message {
  margin-top: 18px;
}

.wiki-assistant-message__label {
  margin-bottom: 5px;
  color: var(--mut);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
}

.wiki-assistant-message__content {
  width: fit-content;
  max-width: 94%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink-2);
  font-size: var(--t-comp);
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wiki-assistant-message--user .wiki-assistant-message__label {
  text-align: right;
}

.wiki-assistant-message--user .wiki-assistant-message__content {
  margin-left: auto;
  border-color: var(--watcha-line);
  background: var(--watcha-soft);
  color: var(--ink);
}

.wiki-assistant-message[data-pending="true"] .wiki-assistant-message__content {
  color: var(--mut);
}

.wiki-assistant-sources {
  margin-top: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
}

.wiki-assistant-sources > p {
  margin-bottom: 6px;
  color: var(--mut);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
}

.wiki-assistant-sources > div {
  display: grid;
  gap: 3px;
}

.wiki-assistant-sources a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  padding: 7px;
  border-radius: 7px;
}

.wiki-assistant-sources a:hover {
  background: var(--watcha-soft);
}

.wiki-assistant-sources a > span:first-child {
  color: var(--red);
  font-family: var(--font-gara);
  font-size: var(--t-ui);
  font-style: italic;
}

.wiki-assistant-sources a > span:last-child {
  min-width: 0;
}

.wiki-assistant-sources strong,
.wiki-assistant-sources small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-assistant-sources strong {
  color: var(--ink);
  font-size: var(--t-ui);
}

.wiki-assistant-sources small {
  color: var(--mut);
  font-size: var(--t-mono);
}

.wiki-assistant-suggestions {
  display: flex;
  gap: 6px;
  padding: 0 14px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wiki-assistant-suggestions::-webkit-scrollbar {
  display: none;
}

.wiki-assistant-suggestions button {
  flex: none;
  padding: 7px 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink-2);
  font-size: var(--t-mono);
  white-space: nowrap;
}

.wiki-assistant-suggestions button:hover {
  border-color: var(--watcha-line);
  background: var(--watcha-soft);
}

.wiki-assistant-compose {
  padding: 11px 13px 9px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.wiki-assistant-compose label {
  display: block;
}

.wiki-assistant-compose textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  max-height: 132px;
  resize: none;
  padding: 10px 11px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  outline: none;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-comp);
  line-height: 1.7;
}

.wiki-assistant-compose textarea:focus {
  border-color: var(--ink-2);
}

.wiki-assistant-compose textarea::placeholder {
  color: var(--mut);
}

.wiki-assistant-compose__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.wiki-assistant-scope {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: var(--mut);
  font-size: var(--t-ui);
  line-height: var(--lh-ui);
}

.wiki-assistant-compose__tools button {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--ink-2);
  font-size: var(--t-ui);
}

.wiki-assistant-compose__tools .wiki-assistant-send {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  font-weight: 700;
}

.wiki-assistant-compose__tools .wiki-assistant-send[data-busy="true"] {
  border-color: var(--red-deep);
  background: var(--red-deep);
}

.wiki-assistant-compose > p {
  margin-top: 6px;
  color: var(--mut);
  font-size: var(--t-mono);
  line-height: var(--lh-ui);
  text-align: center;
}

.wiki-assistant-backdrop {
  position: fixed;
  inset: 0;
  z-index: 121;
  background: rgba(26, 22, 17, 0.24);
}

@media (min-width: 641px) {
  .wiki-assistant-backdrop {
    display: none;
  }
}

@media (max-width: 640px) {
  .wiki-assistant-launcher {
    right: 14px;
    bottom: 14px;
  }

  .wiki-assistant-panel {
    inset: 0;
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .wiki-assistant-head {
    padding-top: max(13px, env(safe-area-inset-top));
  }

  .wiki-assistant-compose {
    padding-bottom: max(9px, env(safe-area-inset-bottom));
  }

  .wiki-assistant-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wiki-assistant-panel {
    animation: none;
  }
}
