.student-shop-friends-switch {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 5px;
  border: 1px solid #ddd7ca;
  border-radius: 14px;
  background: #f7f2e8;
}

.student-shop-friends-switch button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #756b5d;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.student-shop-friends-switch button.is-active {
  background: #fff;
  color: #6b4bc5;
  box-shadow: 0 4px 12px rgba(72, 53, 28, .1);
}

#studentShopEmoticonMineMount,
#studentShopEmoticonMarketMount {
  display: grid;
  gap: 20px;
}

.student-shop-emoticon-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border: 1px solid #d9d1ef;
  border-radius: 22px;
  background: radial-gradient(circle at 88% 18%, rgba(255, 223, 128, .62), transparent 30%), linear-gradient(135deg, #f1edff, #fff9eb);
  box-shadow: 0 12px 28px rgba(80, 60, 130, .09);
}

.student-shop-emoticon-hero > div:first-child,
.student-shop-emoticon-section-head > div {
  display: grid;
  gap: 4px;
}

.student-shop-emoticon-hero span,
.student-shop-emoticon-section-head span {
  color: #795ec4;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.student-shop-emoticon-hero h2,
.student-shop-emoticon-section-head h3 {
  margin: 0;
  color: #3e3457;
}

.student-shop-emoticon-hero h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }

.student-shop-emoticon-hero p,
.student-shop-emoticon-section-head p {
  margin: 0;
  color: #736b7e;
  line-height: 1.55;
}

.student-shop-emoticon-hero-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.student-shop-emoticon-guide {
  padding: 0 14px;
  border: 1px solid #c9bee8;
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
  color: #6049a0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.student-shop-emoticon-policy-off {
  margin: 0;
  padding: 13px 16px;
  border: 1px solid #efc36f;
  border-radius: 14px;
  background: #fff8df;
  color: #745613;
  line-height: 1.5;
}

.student-shop-emoticon-studio,
.student-shop-emoticon-catalog {
  padding: 22px;
  border: 1px solid #e4ded0;
  border-radius: 20px;
  background: rgba(255, 255, 255, .74);
}

.student-shop-emoticon-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.student-shop-emoticon-section-head input[type="search"] {
  width: min(300px, 100%);
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #d8d1c6;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.student-shop-emoticon-mine-grid,
.student-shop-emoticon-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.student-shop-emoticon-mine-card,
.student-shop-emoticon-catalog-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e3dded;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(68, 53, 99, .07);
}

.student-shop-emoticon-card-head,
.student-shop-emoticon-catalog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.student-shop-emoticon-card-head > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.student-shop-emoticon-card-head strong,
.student-shop-emoticon-catalog-copy h3 {
  overflow: hidden;
  color: #3e354d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-shop-emoticon-card-head span,
.student-shop-emoticon-catalog-copy span {
  color: #897f91;
  font-size: .75rem;
}

.student-shop-emoticon-card-head b {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1edf9;
  color: #66518d;
  font-size: .68rem;
}

.student-shop-emoticon-card-head b.is-approved { background: #e4f6eb; color: #29734a; }
.student-shop-emoticon-card-head b.is-rejected { background: #fff0ea; color: #a24229; }
.student-shop-emoticon-card-head b.is-pending_review { background: #fff4d6; color: #83600c; }

.student-shop-emoticon-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 12px 0;
}

.student-shop-emoticon-strip img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #f7f4fb;
  object-fit: contain;
}

.student-shop-emoticon-reason {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: #fff4ee;
  color: #8d482f;
  font-size: .76rem;
  line-height: 1.45;
}

.student-shop-emoticon-use-note { margin: 8px 0; color: #29734a; font-size: .76rem; font-weight: 800; line-height: 1.45; }

.student-shop-emoticon-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.student-shop-emoticon-card-actions button,
.student-shop-emoticon-catalog-foot button {
  min-height: 35px;
  padding: 0 10px;
  border: 1px solid #d7cde9;
  border-radius: 9px;
  background: #f7f3ff;
  color: #59428c;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
}

.student-shop-emoticon-card-actions button.is-danger { border-color: #f0d0cd; background: #fff5f4; color: #a0433b; }

.student-shop-emoticon-catalog-copy {
  display: grid;
  gap: 4px;
}

.student-shop-emoticon-catalog-copy h3,
.student-shop-emoticon-catalog-copy p { margin: 0; }
.student-shop-emoticon-catalog-copy p { min-height: 2.7em; color: #746d79; font-size: .78rem; line-height: 1.4; }
.student-shop-emoticon-catalog-foot { margin-top: 12px; }
.student-shop-emoticon-catalog-foot strong { color: #8c6418; }
.student-shop-emoticon-catalog-card.is-purchased { border-color: #bcdcc9; background: #fbfffc; }
.student-shop-emoticon-catalog-foot .student-shop-emoticon-purchased-badge { color: #29734a; }

.student-shop-emoticon-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 12px;
  border: 1px dashed #d8d0de;
  border-radius: 14px;
  color: #82798a;
  text-align: center;
}

.student-shop-emoticon-pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.student-shop-emoticon-pager button {
  width: 34px;
  height: 34px;
  border: 1px solid #ddd5e7;
  border-radius: 9px;
  background: #fff;
  color: #6b5a81;
  font: inherit;
  cursor: pointer;
}
.student-shop-emoticon-pager button.is-active { background: #6c54b6; color: #fff; }

.student-shop-emoticon-overlay {
  position: fixed;
  z-index: 1400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(37, 29, 48, .58);
  backdrop-filter: blur(6px);
}

.student-shop-emoticon-modal {
  width: min(920px, 96vw);
  max-height: min(880px, 94vh);
  overflow: auto;
  border-radius: 22px;
  background: #fffdf9;
  box-shadow: 0 24px 70px rgba(25, 18, 40, .3);
}

.student-shop-emoticon-modal > header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #e7e0d8;
  background: rgba(255, 253, 249, .96);
}

.student-shop-emoticon-modal > header h2 { margin: 0; color: #40354b; font-size: 1.25rem; }
.student-shop-emoticon-close { border: 0; background: transparent; color: #6f6575; font-size: 1.8rem; cursor: pointer; }

.student-shop-emoticon-detail,
.student-shop-emoticon-purchase { padding: 20px 22px 24px; }
.student-shop-emoticon-detail-maker { margin: 0 0 14px; color: #776b7f; }
.student-shop-emoticon-detail-grid,
.student-shop-emoticon-review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.student-shop-emoticon-detail-grid figure,
.student-shop-emoticon-review-grid figure { margin: 0; text-align: center; }
.student-shop-emoticon-detail-grid img,
.student-shop-emoticon-review-grid img { width: 100%; aspect-ratio: 1; border-radius: 14px; background: #f5f1f8; object-fit: contain; }
.student-shop-emoticon-detail-grid figcaption,
.student-shop-emoticon-review-grid figcaption { margin-top: 4px; color: #706878; font-size: .74rem; }
.student-shop-emoticon-detail-note,
.student-shop-emoticon-submit-note { padding: 11px 13px; border-radius: 11px; background: #f5f0ff; color: #645481; font-size: .8rem; line-height: 1.5; }
.student-shop-emoticon-detail footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.student-shop-emoticon-detail footer strong { color: #825d15; font-size: 1.1rem; }

.student-shop-emoticon-purchase { display: grid; gap: 14px; }
.student-shop-emoticon-purchase h3,
.student-shop-emoticon-purchase p { margin: 0; }
.student-shop-emoticon-purchase label { display: flex; align-items: start; gap: 9px; padding: 12px; border-radius: 12px; background: #f8f3e8; line-height: 1.45; }

.student-shop-emoticon-wizard { padding: 18px 22px 24px; }
.student-shop-emoticon-wizard-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.student-shop-emoticon-wizard-progress li { display: flex; align-items: center; gap: 7px; padding: 9px; border-radius: 11px; background: #f0edf1; color: #827987; font-size: .78rem; }
.student-shop-emoticon-wizard-progress b { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #dcd6df; }
.student-shop-emoticon-wizard-progress li.is-active { background: #ede7ff; color: #57418e; font-weight: 900; }
.student-shop-emoticon-wizard-progress li.is-active b,
.student-shop-emoticon-wizard-progress li.is-done b { background: #6d55b5; color: #fff; }

.student-shop-emoticon-info-step,
.student-shop-emoticon-edit-step,
.student-shop-emoticon-review-step { display: grid; gap: 14px; }
.student-shop-emoticon-info-step h3,
.student-shop-emoticon-edit-step h3,
.student-shop-emoticon-review-step h3 { margin: 0; color: #44394e; }
.student-shop-emoticon-info-step > label,
.student-shop-emoticon-crop-controls > label { display: grid; gap: 5px; color: #554c5d; font-size: .8rem; font-weight: 800; }
.student-shop-emoticon-info-step input,
.student-shop-emoticon-info-step select,
.student-shop-emoticon-info-step textarea,
.student-shop-emoticon-crop-controls input:not([type="range"]) { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #d8d0dc; border-radius: 10px; background: #fff; color: #39313e; font: inherit; box-sizing: border-box; }
.student-shop-emoticon-info-step small,
.student-shop-emoticon-crop-controls small { color: #877e8c; font-weight: 500; line-height: 1.4; }
.student-shop-emoticon-declaration { display: flex !important; grid-template-columns: auto 1fr; align-items: start; gap: 9px !important; padding: 12px; border-radius: 12px; background: #fff7df; line-height: 1.45; }
.student-shop-emoticon-declaration input { width: auto; min-height: 0; margin-top: 3px; }

.student-shop-emoticon-slot-tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.student-shop-emoticon-slot-tabs button { display: grid; justify-items: center; min-width: 0; min-height: 58px; padding: 5px 2px; border: 1px solid #ddd6e2; border-radius: 10px; background: #fff; color: #756c7b; font: inherit; cursor: pointer; }
.student-shop-emoticon-slot-tabs button.is-active { border-color: #725abb; background: #eee9ff; color: #523c92; }
.student-shop-emoticon-slot-tabs img { width: 34px; height: 34px; object-fit: contain; }
.student-shop-emoticon-slot-tabs b { font-size: .76rem; }
.student-shop-emoticon-slot-tabs span { overflow: hidden; max-width: 100%; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }

.student-shop-emoticon-crop-editor { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.student-shop-emoticon-crop-editor canvas { width: min(100%, 420px); aspect-ratio: 1; border: 1px solid #d9d1de; border-radius: 16px; background-image: linear-gradient(45deg, #ece8ee 25%, transparent 25%), linear-gradient(-45deg, #ece8ee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ece8ee 75%), linear-gradient(-45deg, transparent 75%, #ece8ee 75%); background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-size: 16px 16px; }
.student-shop-emoticon-crop-controls { display: grid; gap: 12px; }
.student-shop-emoticon-crop-controls input[type="range"] { width: 100%; }
.student-shop-emoticon-review-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 12px; background: #f7f2e8; }
.student-shop-emoticon-review-summary span { color: #776b61; font-size: .78rem; }

.student-shop-emoticon-wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 14px; border-top: 1px solid #e5dfe4; }
.student-shop-emoticon-wizard-status { margin: 0; color: #7a717d; font-size: .76rem; }
.student-shop-emoticon-wizard-status[data-tone="bad"] { color: #a73c42; }
.student-shop-emoticon-wizard-actions > div { display: flex; gap: 7px; }
.student-shop-emoticon-wizard-actions button { min-height: 40px; padding: 0 14px; border: 1px solid #d8cfdf; border-radius: 10px; background: #fff; color: #62556d; font: inherit; font-weight: 800; cursor: pointer; }

@media (max-width: 900px) {
  .student-shop-emoticon-hero { align-items: flex-start; flex-direction: column; }
  .student-shop-emoticon-mine-grid,
  .student-shop-emoticon-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-shop-emoticon-crop-editor { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .student-shop-friends-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; box-sizing: border-box; }
  .student-shop-friends-switch button { justify-content: center; padding: 0 8px; }
  .student-shop-emoticon-hero-actions,
  .student-shop-emoticon-section-head { width: 100%; align-items: stretch; flex-direction: column; }
  .student-shop-emoticon-mine-grid,
  .student-shop-emoticon-catalog-grid { grid-template-columns: 1fr; }
  .student-shop-emoticon-detail-grid,
  .student-shop-emoticon-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-shop-emoticon-slot-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .student-shop-emoticon-wizard-progress span { display: none; }
  .student-shop-emoticon-wizard-progress li { justify-content: center; }
  .student-shop-emoticon-wizard-actions { align-items: stretch; flex-direction: column; }
  .student-shop-emoticon-wizard-actions > div { justify-content: flex-end; }
}

.student-emoticon-tutorial-layer {
  position: fixed;
  z-index: 1800;
  inset: 0;
  pointer-events: none;
}

.student-emoticon-tutorial-layer[hidden] { display: none; }

.student-emoticon-tutorial-spotlight {
  position: fixed;
  border: 3px solid #ffd35f;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(35, 27, 48, .62), 0 0 0 6px rgba(255, 211, 95, .22);
  transition: inset .2s ease, width .2s ease, height .2s ease;
}

.student-emoticon-tutorial-panel {
  position: fixed;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid #d8c8f6;
  border-radius: 16px;
  background: #fffdf9;
  color: #44384f;
  box-shadow: 0 18px 48px rgba(28, 20, 39, .32);
  pointer-events: auto;
}

.student-emoticon-tutorial-panel small { color: #7156b7; font-weight: 900; }
.student-emoticon-tutorial-panel h2 { margin: 5px 0 8px; font-size: 1.08rem; }
.student-emoticon-tutorial-panel p { margin: 0; color: #6e6574; font-size: .82rem; line-height: 1.55; }
.student-emoticon-tutorial-panel > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 14px; }
.student-emoticon-tutorial-panel button { min-height: 44px; padding: 0 11px; border: 1px solid #d9d0df; border-radius: 9px; background: #fff; color: #5f5368; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.student-emoticon-tutorial-panel button.is-dismiss { border-color: #8c4a00; background: #ffd35f; color: #3b2600; }
.student-emoticon-tutorial-panel button.is-primary { border-color: #6d55b5; background: #6d55b5; color: #fff; }
.student-emoticon-tutorial-panel button:disabled { opacity: .45; }
