/* V13: quiet, scan-first storefront and reusable identity presets. */

.page-home {
  background: #f4f5f6;
}

.home-stack,
html[data-ui-theme] .home-stack {
  gap: 10px;
  padding: 10px 9px 78px;
}

.home-stack > .home-announcement,
html[data-ui-theme] .home-stack > .home-announcement { order: 1; }
.home-stack > .store-paused-notice,
html[data-ui-theme] .home-stack > .store-paused-notice { order: 2; }
.home-stack > .home-banner,
html[data-ui-theme] .home-stack > .home-banner { order: 3; }
.home-stack > .latest-draw-card,
html[data-ui-theme] .home-stack > .latest-draw-card { order: 4; }
.home-stack > .home-experts-panel,
html[data-ui-theme] .home-stack > .home-experts-panel { order: 5; }
.home-stack > .home-guidance-note,
html[data-ui-theme] .home-stack > .home-guidance-note { order: 6; }
.home-stack > .home-material-toolbar,
html[data-ui-theme] .home-stack > .home-material-toolbar { order: 7; }
.home-stack > .home-material-list,
html[data-ui-theme] .home-stack > .home-material-list { order: 8; }

/* Latest draw: one compact horizontal strip. */
.latest-draw-card.draw-compact-row,
html[data-ui-theme] .latest-draw-card.draw-compact-row {
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 9px 11px;
  overflow: hidden;
  border: 1px solid #e2e5e7;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.draw-compact-label {
  display: grid;
  min-width: 54px;
  gap: 2px;
}

.draw-compact-label strong,
.draw-compact-label small {
  display: block;
  letter-spacing: 0;
  white-space: nowrap;
}

.draw-compact-label strong {
  color: #202428;
  font-size: 13px;
  font-weight: 650;
}

.draw-compact-label small {
  color: #858b91;
  font-size: 10px;
}

.latest-draw-card.draw-compact-row .draw-number-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.latest-draw-card.draw-compact-row .draw-number-row b {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border: 1px solid #e4e7e9;
  border-radius: 50%;
  background: #fff;
  color: #30353a;
  box-shadow: none;
  font-size: 11px;
}

.latest-draw-card.draw-compact-row .draw-number-row b.special {
  border-color: #da6a70;
  background: #fff4f4;
  color: #c5353d;
}

.latest-draw-card.draw-compact-row .draw-number-row i {
  flex: 0 0 auto;
  color: #9aa0a6;
  font-size: 10px;
}

.draw-history-entry {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  color: var(--ui-primary, #23705f);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.draw-history-entry svg {
  width: 14px;
  height: 14px;
}

.history-short { display: none; }

.draw-empty-note {
  overflow: hidden;
  color: #777d83;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Recommended experts: evidence first, no decorative ranking badges. */
.expert-grid.home-experts-panel,
html[data-ui-theme] .expert-grid.home-experts-panel {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e3e6e8;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.expert-grid.home-experts-panel::before,
html[data-ui-theme] .expert-grid.home-experts-panel::before {
  display: none;
  content: none;
}

.home-section-heading {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-bottom: 1px solid #eceeef;
}

.home-section-heading > div {
  min-width: 0;
}

.home-section-heading strong,
.home-section-heading span {
  display: block;
}

.home-section-heading strong {
  color: #1f2428;
  font-size: 15px;
}

.home-section-heading span {
  margin-top: 2px;
  overflow: hidden;
  color: #92979c;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-section-heading button {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6f757a;
  font-size: 11px;
  cursor: pointer;
}

.home-section-heading button svg {
  width: 14px;
  height: 14px;
}

.expert-recommendation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.expert-recommendation-row {
  display: grid;
  min-width: 0;
  min-height: 82px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 0;
  border-bottom: 1px solid #eff1f2;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.expert-recommendation-row:focus-visible,
.home-material-row:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid color-mix(in srgb, var(--ui-primary, #23705f) 24%, transparent);
  outline-offset: -3px;
}

.expert-recommendation-avatar,
.expert-recommendation-avatar .avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
}

.expert-recommendation-avatar .avatar {
  border: 0;
  border-radius: 7px;
  object-fit: cover;
}

.expert-recommendation-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.expert-recommendation-copy > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.expert-recommendation-copy strong {
  overflow: hidden;
  color: #202428;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expert-recommendation-copy em {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  color: #39765f;
  font-size: 9px;
  font-style: normal;
}

.expert-recommendation-copy em svg {
  width: 12px;
  height: 12px;
}

.expert-trust-proof {
  overflow: hidden;
  color: #c53a42;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expert-recommendation-copy > small {
  overflow: hidden;
  color: #8c9297;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expert-recommendation-action {
  display: grid;
  min-width: 58px;
  justify-items: end;
  gap: 6px;
}

.expert-recommendation-action b {
  color: #30353a;
  font-size: 11px;
  white-space: nowrap;
}

.expert-recommendation-action small {
  display: inline-flex;
  align-items: center;
  color: var(--ui-primary, #23705f);
  font-size: 10px;
  white-space: nowrap;
}

.expert-recommendation-action svg {
  width: 13px;
  height: 13px;
}

.home-list-empty {
  padding: 22px 12px;
  color: #92979c;
  font-size: 12px;
  text-align: center;
}

/* Quiet notice and WeChat-like latest-material list. */
.notice-strip.home-guidance-note,
html[data-ui-theme] .notice-strip.home-guidance-note {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #e8eaec;
  border-radius: 0;
  background: #fafafa;
  color: #777d82;
  font-size: 10px;
}

.home-guidance-note svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #697077;
}

.section-toolbar.home-material-toolbar,
html[data-ui-theme] .section-toolbar.home-material-toolbar {
  position: static;
  display: grid;
  min-height: 0;
  grid-template-columns: auto minmax(150px, 1fr);
  gap: 9px 12px;
  align-items: center;
  padding: 10px 11px 0;
  border: 1px solid #e3e6e8;
  border-bottom: 0;
  border-radius: 0;
  background: #fff;
}

.home-material-heading strong,
.home-material-heading span {
  display: block;
  white-space: nowrap;
}

.home-material-heading strong {
  color: #1f2428;
  font-size: 15px;
}

.home-material-heading span {
  margin-top: 2px;
  color: #969ba0;
  font-size: 9px;
}

.home-material-toolbar .search-control input {
  height: 36px;
  border-color: #eceeef;
  border-radius: 5px;
  background: #f5f6f7;
}

.home-material-filters {
  display: flex;
  min-width: 0;
  grid-column: 1 / -1;
  gap: 22px;
  overflow-x: auto;
  border-top: 1px solid #f0f1f2;
  scrollbar-width: none;
}

.home-material-filters::-webkit-scrollbar { display: none; }

.home-material-filters button {
  position: relative;
  min-width: 40px;
  min-height: 39px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #777d82;
  font-size: 12px;
  cursor: pointer;
}

.home-material-filters button.active {
  color: var(--ui-primary, #23705f);
  font-weight: 650;
}

.home-material-filters button.active::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 2px;
  background: var(--ui-primary, #23705f);
  content: "";
}

.material-list.home-material-list,
html[data-ui-theme] .material-list.home-material-list {
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  border: 1px solid #e3e6e8;
  border-radius: 0;
  background: #fff;
}

.home-material-row {
  display: grid;
  min-width: 0;
  min-height: 92px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 10px 10px 11px;
  border: 0;
  border-bottom: 1px solid #eff1f2;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.home-material-row:last-child { border-bottom: 0; }

.home-material-avatar {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: #eef0f1;
  object-fit: cover;
}

.home-material-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.home-material-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.home-material-identity b {
  overflow: hidden;
  color: #252a2e;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-material-identity em {
  flex: 0 0 auto;
  color: #8b9196;
  font-size: 9px;
  font-style: normal;
}

.home-material-copy > strong,
.home-material-copy > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-material-copy > strong {
  color: #202428;
  font-size: 14px;
  font-weight: 600;
}

.home-material-copy > small {
  color: #94999e;
  font-size: 10px;
}

.home-material-trailing {
  display: grid;
  min-width: 54px;
  justify-items: end;
  gap: 4px;
}

.home-material-trailing time,
.home-material-trailing b,
.home-material-trailing small {
  white-space: nowrap;
}

.home-material-trailing time {
  color: #a0a5a9;
  font-size: 9px;
}

.home-material-trailing b {
  color: #c43a42;
  font-size: 12px;
}

.home-material-trailing small {
  display: inline-flex;
  align-items: center;
  color: #777d82;
  font-size: 10px;
}

.home-material-trailing svg {
  width: 13px;
  height: 13px;
}

/* Expert editor: custom identity first, presets as an optional library. */
.expert-custom-identity {
  overflow: hidden;
  border: 1px solid #dfe3e6;
  border-radius: 6px;
  background: #fff;
}

.expert-custom-identity > header {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #eceeef;
}

.expert-custom-identity > header strong,
.expert-custom-identity > header small {
  display: block;
}

.expert-custom-identity > header strong { font-size: 14px; }
.expert-custom-identity > header small { margin-top: 2px; color: #91979c; font-size: 10px; }
.expert-custom-identity > header > span {
  padding: 3px 7px;
  border-radius: 3px;
  background: #eaf5ef;
  color: #287052;
  font-size: 9px;
}

.expert-custom-grid {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 15px;
  padding: 13px 12px;
}

.expert-avatar-field,
.expert-name-field { align-content: start; }

.avatar-upload.custom-avatar-upload {
  display: grid;
  width: 96px;
  gap: 6px;
  justify-items: center;
}

.expert-avatar-preview {
  display: grid;
  width: 80px;
  height: 80px;
  overflow: hidden;
  place-items: center;
  border: 1px dashed #bbc3c9;
  border-radius: 8px;
  background: #f4f6f7;
  color: #7e868d;
}

.expert-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-avatar-preview svg { width: 24px; height: 24px; }
.avatar-upload.custom-avatar-upload > b { color: #4f575e; font-size: 10px; font-weight: 500; }
.expert-avatar-field > small,
.expert-name-field > small { color: #8d949a; font-size: 10px; line-height: 1.45; }

.expert-preset-library {
  overflow: hidden;
  border: 1px solid #dfe3e6;
  border-radius: 6px;
  background: #fff;
}

.expert-preset-library > summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  list-style: none;
}

.expert-preset-library > summary::-webkit-details-marker { display: none; }
.expert-preset-library > summary > span {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
}
.expert-preset-library > summary > span > svg { width: 22px; height: 22px; grid-row: 1 / span 2; color: #4f7568; }
.expert-preset-library > summary b,
.expert-preset-library > summary small { display: block; min-width: 0; }
.expert-preset-library > summary b { font-size: 13px; }
.expert-preset-library > summary small { margin-top: 2px; color: #91979c; font-size: 10px; }
.expert-preset-library > summary > svg { width: 17px; height: 17px; transition: transform 150ms ease; }
.expert-preset-library[open] > summary > svg { transform: rotate(180deg); }

.expert-preset-content {
  display: grid;
  gap: 14px;
  padding: 12px;
  border-top: 1px solid #eceeef;
  background: #f7f8f8;
}

.preset-library-heading,
.preset-library-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preset-library-heading strong,
.preset-library-heading small,
.preset-library-section > header strong,
.preset-library-section > header small { display: block; }
.preset-library-heading strong,
.preset-library-section > header strong { font-size: 12px; }
.preset-library-heading small,
.preset-library-section > header small { margin-top: 2px; color: #92989d; font-size: 9px; }

.preset-library-heading button {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid #a9c8bc;
  border-radius: 4px;
  background: #fff;
  color: #286c56;
  font-size: 10px;
  cursor: pointer;
}

.preset-library-heading button svg { width: 14px; height: 14px; }

.preset-library-section {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid #e3e6e8;
  background: #fff;
}

.preset-library-section select,
.introduction-template-picker select {
  min-height: 36px;
  padding: 0 30px 0 9px;
  border: 1px solid #dfe3e6;
  border-radius: 4px;
  background: #fff;
  color: #353b40;
  font-size: 11px;
}

.preset-search {
  position: relative;
  display: block;
}

.preset-search svg {
  position: absolute;
  top: 50%;
  left: 9px;
  width: 15px;
  height: 15px;
  color: #979da2;
  transform: translateY(-50%);
}

.preset-search input {
  width: 100%;
  height: 36px;
  padding: 0 10px 0 31px;
  border: 1px solid #e1e4e6;
  border-radius: 4px;
  outline: none;
  background: #f7f8f8;
  font-size: 11px;
}

.preset-search input:focus { border-color: #94bcae; background: #fff; }

.avatar-preset-grid {
  display: grid;
  max-height: 292px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: max-content;
  gap: 8px;
  align-content: start;
  overflow-y: auto;
}

.avatar-preset-option {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #eef1f2;
  cursor: pointer;
}

.avatar-preset-option img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-preset-option > span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: none;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: #267158;
  color: #fff;
}
.avatar-preset-option > span svg { width: 12px; height: 12px; }
.avatar-preset-option.selected { border-color: #267158; }
.avatar-preset-option.selected > span { display: grid; }

.name-preset-grid {
  display: grid;
  max-height: 238px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  overflow-y: auto;
}

.name-preset-option {
  min-width: 0;
  min-height: 34px;
  overflow: hidden;
  padding: 0 7px;
  border: 1px solid #e2e5e7;
  border-radius: 4px;
  background: #fff;
  color: #464d53;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.name-preset-option.selected {
  border-color: #65a18b;
  background: #edf7f3;
  color: #22674f;
  font-weight: 600;
}

[data-avatar-option][hidden],
[data-name-option][hidden] { display: none !important; }

.platform-introduction-field textarea { min-height: 112px; }

.introduction-template-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e1e5e7;
  background: #f7f8f8;
}

.introduction-template-picker strong,
.introduction-template-picker small { display: block; }
.introduction-template-picker strong { font-size: 11px; }
.introduction-template-picker small { margin-top: 3px; color: #8e959a; font-size: 9px; line-height: 1.45; }

@media (max-width: 430px) {
  .expert-custom-grid { grid-template-columns: 102px minmax(0, 1fr); gap: 10px; }
  .avatar-preset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .name-preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .introduction-template-picker { grid-template-columns: 1fr; }
}

@media (max-width: 370px) {
  .latest-draw-card.draw-compact-row,
  html[data-ui-theme] .latest-draw-card.draw-compact-row {
    gap: 5px;
    min-height: 54px;
    padding: 7px 8px;
  }
  .draw-compact-label { min-width: 48px; }
  .draw-compact-label strong { font-size: 11px; }
  .draw-compact-label small { font-size: 9px; }
  .latest-draw-card.draw-compact-row .draw-number-row { gap: 2px; }
  .latest-draw-card.draw-compact-row .draw-number-row b {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
    font-size: 9px;
  }
  .latest-draw-card.draw-compact-row .draw-number-row i { font-size: 8px; }
  .draw-history-entry { font-size: 10px; }
  .expert-recommendation-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; padding: 10px 8px; }
  .expert-recommendation-avatar,
  .expert-recommendation-avatar .avatar { width: 44px; height: 44px; }
  .expert-recommendation-action { min-width: 50px; }
  .section-toolbar.home-material-toolbar,
  html[data-ui-theme] .section-toolbar.home-material-toolbar { grid-template-columns: 1fr; }
  .home-material-toolbar .search-control { grid-column: 1; }
  .home-material-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 6px; padding-right: 6px; padding-left: 6px; }
  .home-material-avatar { width: 40px; height: 40px; }
  .home-material-trailing { min-width: 42px; }
}

@media (min-width: 700px) {
  .avatar-preset-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .name-preset-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  html[data-ui-theme="pine-data"] .app-shell:has(.bottom-nav) {
    padding-top: 0;
  }

  html[data-ui-theme="pine-data"] .bottom-nav {
    top: auto;
    bottom: 24px;
    height: 58px;
    border-top: 1px solid var(--ui-line);
    border-bottom: 0;
    box-shadow: 0 -3px 12px rgba(25, 31, 34, 0.06);
  }

  html[data-ui-theme="pine-data"] .page-header {
    top: 0;
  }

  .home-stack,
  html[data-ui-theme] .home-stack {
    display: grid;
    max-width: 1080px;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
    grid-template-rows: auto auto auto auto auto;
    gap: 12px;
    margin: 0 auto;
    padding: 16px 18px 40px;
  }
  .home-stack > .home-guidance-note,
  html[data-ui-theme] .home-stack > .home-guidance-note { grid-column: 1; grid-row: 1; }
  .home-stack > .home-material-toolbar,
  html[data-ui-theme] .home-stack > .home-material-toolbar { grid-column: 1; grid-row: 2; }
  .home-stack > .home-material-list,
  html[data-ui-theme] .home-stack > .home-material-list { grid-column: 1; grid-row: 3 / span 6; }
  .home-stack > .home-announcement,
  html[data-ui-theme] .home-stack > .home-announcement { grid-column: 2; grid-row: 1; margin: 0; }
  .home-stack > .home-banner,
  html[data-ui-theme] .home-stack > .home-banner { grid-column: 2; grid-row: 2; margin: 0; }
  .home-stack > .home-experts-panel,
  html[data-ui-theme] .home-stack > .home-experts-panel { grid-column: 2; grid-row: 3 / span 3; margin: 0; }
  .home-stack > .store-paused-notice,
  html[data-ui-theme] .home-stack > .store-paused-notice { grid-column: 1 / -1; grid-row: 1; }
  .expert-recommendation-list { grid-template-columns: 1fr; }
}

/* Reference-video behavior: published management and recent unlock notice. */
.home-unlock-popup {
  position: fixed;
  z-index: 48;
  top: max(12px, env(safe-area-inset-top));
  right: max(10px, calc((100vw - 432px) / 2 + 10px));
  left: auto;
  display: block;
  width: min(236px, calc(100vw - 54px));
  height: 34px;
  min-height: 34px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(35, 38, 41, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(19, 22, 25, 0.16);
}

.home-unlock-avatar {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  object-fit: cover;
}

.home-unlock-item,
.home-unlock-copy,
.home-unlock-copy strong,
.home-unlock-copy em,
.home-unlock-copy small {
  min-width: 0;
}

.home-unlock-item {
  position: absolute;
  inset: 0;
  display: grid;
  padding: 3px 10px 3px 3px;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.home-unlock-item.is-entering {
  opacity: 0.35;
  transform: translateY(100%);
}

.home-unlock-item.is-leaving {
  opacity: 0.2;
  transform: translateY(-100%);
}

.home-unlock-copy {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
}

.home-unlock-copy strong {
  flex: 0 0 auto;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.home-unlock-copy em {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-style: normal;
}

.home-unlock-copy small {
  display: block;
  flex: 1 1 auto;
  overflow: hidden;
  color: #f6cf6b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-manager-page .managed-card-head > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-result-dialog-body {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding: 16px 14px;
}

.material-result-dialog-body > strong {
  font-size: 14px;
  line-height: 1.55;
}

.material-result-dialog-body > p {
  margin: 0 0 4px;
  color: #7b8289;
  font-size: 11px;
  line-height: 1.55;
}

.material-result-options {
  display: grid;
  gap: 8px;
}

.material-result-option {
  display: grid;
  min-height: 58px;
  padding: 9px 11px;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid #e1e5e8;
  border-radius: 5px;
  background: #fff;
  color: #4e565d;
  text-align: left;
  cursor: pointer;
}

.material-result-option.active {
  border-color: #de6a72;
  background: #fff7f7;
  color: #c82f38;
}

.material-result-option > svg {
  width: 22px;
  height: 22px;
}

.material-result-option b,
.material-result-option small {
  display: block;
}

.material-result-option b {
  font-size: 13px;
}

.material-result-option small {
  margin-top: 3px;
  color: #8a9197;
  font-size: 10px;
}

@media (min-width: 700px) {
  .home-unlock-popup {
    top: 36px;
    width: 252px;
  }
}

@media (min-width: 900px) {
  .home-unlock-popup {
    right: max(36px, calc((100vw - 1120px) / 2 + 14px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-unlock-item { transition-duration: 1ms; }
}
