.cloud-student-page #studentPortal {
  padding-top: 16px;
}

.cloud-student-page #studentPortal .space-hero {
  min-height: 370px;
}

.cloud-student-page .student-commerce {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  border-radius: 0;
  box-shadow: none;
  margin: 0 0 20px;
  padding: 24px 0 28px;
}

.cloud-student-page .product-art-cloud img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.shop-fulfillment-dialog { border: 1px solid rgba(91, 216, 255, .45); border-radius: 18px; color: #f7fbff; background: #101a32; box-shadow: 0 24px 80px rgba(0,0,0,.55); max-width: min(520px, calc(100vw - 32px)); width: 100%; padding: 0; }
.shop-fulfillment-dialog::backdrop { background: rgba(3, 8, 20, .72); backdrop-filter: blur(4px); }
.shop-fulfillment-form { display: grid; gap: 14px; padding: 24px; }
.shop-dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.shop-dialog-head h2 { margin: 3px 0 0; font-size: 1.35rem; }
.shop-dialog-close { background: transparent; border: 0; color: #dbe8ff; font-size: 1.7rem; line-height: 1; padding: 0 4px; cursor: pointer; }
.shop-fulfillment-form label { display: grid; gap: 6px; color: #dbe8ff; font-size: .9rem; }
.shop-fulfillment-form input, .shop-fulfillment-form textarea { width: 100%; box-sizing: border-box; border: 1px solid rgba(150, 190, 240, .35); border-radius: 10px; padding: 10px 12px; color: #fff; background: rgba(3, 10, 27, .8); font: inherit; }
.shop-fulfillment-form textarea { min-height: 86px; resize: vertical; }
.shop-dialog-privacy { margin: 0; color: #9db0ce; font-size: .78rem; }
.shop-dialog-actions { display: flex; justify-content: end; gap: 10px; margin-top: 4px; }
@media (max-width: 560px) { .shop-fulfillment-form { padding: 18px; } .shop-dialog-actions { flex-direction: column-reverse; } .shop-dialog-actions button { width: 100%; } }

.cloud-student-page .student-commerce-head h2 {
  color: #f7fbff;
  font-size: 1.65rem;
}

.cloud-student-page .commerce-wallet {
  background: rgba(255, 211, 106, .08);
  border: 1px solid rgba(255, 211, 106, .35);
  border-radius: 6px;
  min-width: 150px;
  padding: 10px 14px;
}

.cloud-student-page .commerce-tabs {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  overflow: visible;
  padding: 0;
}

.cloud-student-page .commerce-tab {
  align-items: center;
  border-color: rgba(255, 255, 255, .15);
  border-radius: 0;
  display: inline-flex;
  font-size: .94rem;
  gap: 8px;
  justify-content: center;
  min-height: 50px;
  min-width: 0;
  padding: 8px;
}

.cloud-student-page .commerce-tab:first-child { border-radius: 6px 0 0 6px; }
.cloud-student-page .commerce-tab:last-child { border-radius: 0 6px 6px 0; }
.cloud-student-page .commerce-tab + .commerce-tab { border-left: 0; }
.cloud-student-page .commerce-tab.is-active {
  background: rgba(67, 217, 255, .15);
  box-shadow: inset 0 -3px 0 var(--cyan), 0 0 22px rgba(67, 217, 255, .1);
}
.cloud-student-page .commerce-tab:disabled { cursor: not-allowed; opacity: .45; }

.commerce-tab-icon {
  background-color: currentColor;
  display: inline-block;
  flex: 0 0 19px;
  height: 19px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 19px;
}

.commerce-tab-icon[data-icon="award"] { mask-image: url("/achievement-icons/award.svg"); }
.commerce-tab-icon[data-icon="shopping-bag"] { mask-image: url("/achievement-icons/shopping-bag.svg"); }
.commerce-tab-icon[data-icon="receipt"] { mask-image: url("/achievement-icons/receipt.svg"); }

.cloud-student-page .achievement-grid-cloud {
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cloud-student-page .achievement-card-cloud {
  align-items: start;
  background: linear-gradient(155deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  border-color: color-mix(in srgb, var(--badge-accent) 38%, rgba(255, 255, 255, .1));
  gap: 12px;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 180px;
  padding: 16px;
  position: relative;
  transition: border-color 180ms ease, transform 180ms ease;
}

.cloud-student-page .achievement-card-cloud.is-unlocked {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--badge-accent) 45%, transparent), 0 10px 28px rgba(0, 0, 0, .2);
}

.cloud-student-page .achievement-card-cloud.is-unlocked:hover {
  border-color: var(--badge-accent);
  transform: translateY(-2px);
}

.cloud-student-page .achievement-card-cloud.is-locked { opacity: .76; }

.cloud-student-page .achievement-orb-cloud {
  background: color-mix(in srgb, var(--badge-accent) 22%, #111629);
  border: 0;
  border-radius: 0;
  box-shadow: 0 0 22px color-mix(in srgb, var(--badge-accent) 28%, transparent), inset 0 0 0 2px color-mix(in srgb, var(--badge-accent) 70%, white);
  clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%);
  height: 64px;
  max-width: none;
  position: relative;
  width: 64px;
}

.achievement-symbol-cloud {
  background: var(--badge-accent);
  height: 30px;
  mask-image: var(--achievement-icon);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 30px;
}

.achievement-status-cloud {
  align-items: center;
  background: #0d1425;
  border: 1px solid var(--badge-accent);
  border-radius: 50%;
  bottom: 1px;
  color: var(--badge-accent);
  display: flex;
  font-size: 12px;
  height: 18px;
  justify-content: center;
  position: absolute;
  right: 1px;
  width: 18px;
}

.cloud-student-page .achievement-card-cloud.is-locked .achievement-symbol-cloud {
  background: #aab4c8;
}

.cloud-student-page .achievement-card-cloud h3 { font-size: 1rem; line-height: 1.3; }
.cloud-student-page .achievement-card-cloud p { margin-bottom: 12px; }
.cloud-student-page .achievement-meta-cloud { gap: 6px; }
.cloud-student-page .achievement-meta-cloud span:last-child { white-space: nowrap; }
.cloud-student-page .achievement-card-cloud small { display: block; margin-top: 8px; }

@media (max-width: 900px) {
  .cloud-student-page .achievement-grid-cloud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .cloud-student-page #studentPortal .space-hero { min-height: 390px; padding-bottom: 164px; }
  .cloud-student-page #studentPortal .globe-stage { width: 265px; }
  .cloud-student-page #studentPortal .mission-card { bottom: 16px; padding: 12px; }
  .cloud-student-page #studentPortal .mission-card strong { font-size: 1.35rem; }
  .cloud-student-page #studentPortal .mission-stats { margin-top: 8px; padding-top: 8px; }
  .cloud-student-page .student-commerce { padding-top: 18px; }
  .cloud-student-page .student-commerce-head { flex-direction: row; }
  .cloud-student-page .commerce-wallet { min-width: 112px; }
  .cloud-student-page .commerce-tab { font-size: .78rem; gap: 4px; }
  .commerce-tab-icon { flex-basis: 16px; height: 16px; width: 16px; }
  .cloud-student-page .achievement-grid-cloud { grid-template-columns: 1fr; }
  .cloud-student-page .achievement-card-cloud { min-height: 0; }
}

@media (max-width: 390px) {
  .cloud-student-page .student-commerce { padding-top: 14px; }
  .cloud-student-page .student-commerce-head { align-items: flex-start; flex-direction: row; gap: 8px; }
  .cloud-student-page .student-commerce-head > div:first-child { min-width: 0; }
  .cloud-student-page .student-commerce-head h2 { font-size: 1.2rem; }
  .cloud-student-page .commerce-wallet { min-width: 94px; padding: 8px; width: auto; }
  .cloud-student-page .commerce-wallet strong { font-size: .98rem; }
  .cloud-student-page .commerce-tab-icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cloud-student-page .achievement-card-cloud { transition: none; }
  .cloud-student-page .achievement-card-cloud.is-unlocked:hover { transform: none; }
}
.shop-product-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; }
.shop-product-form textarea { min-height:72px; }
.shop-product-list { display:grid; gap:10px; margin-top:16px; }
.shop-product-admin { display:flex; justify-content:space-between; gap:12px; padding:14px; border:1px solid rgba(130,170,220,.22); border-radius:12px; }
.shop-product-admin span,.shop-product-admin p { display:block; color:#aebfdc; margin:4px 0 0; }
.shop-fulfillment-summary { display:block; color:#d6e4ff; margin-top:6px; word-break:break-word; }

/* Full product images and details, shared by desktop and mobile. */
.cloud-student-page .product-detail-open { position:relative; display:block; width:100%; padding:0; border:0; cursor:zoom-in; color:inherit; font:inherit; text-align:left; }
.cloud-student-page .product-detail-open:focus-visible { outline:3px solid #5bd8ff; outline-offset:4px; }
.cloud-student-page .product-detail-hint { position:absolute; z-index:2; right:8px; bottom:8px; padding:4px 8px; border-radius:8px; color:#fff; background:rgba(4,12,29,.8); font-size:12px; }
.product-detail-dialog { box-sizing:border-box; width:min(880px,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:90vh; max-height:90dvh; padding:0; border:1px solid rgba(91,216,255,.45); border-radius:18px; color:#f7fbff; background:#101a32; box-shadow:0 24px 80px rgba(0,0,0,.55); overflow:auto; overscroll-behavior:contain; }
.product-detail-dialog::backdrop { background:rgba(3,8,20,.8); backdrop-filter:blur(4px); }
.product-detail-content { display:grid; gap:16px; min-width:0; padding:24px; }
.product-detail-content h2 { overflow-wrap:anywhere; }
.product-detail-image-wrap { display:flex; align-items:center; justify-content:center; min-width:0; border-radius:12px; background:#070f20; }
.product-detail-image { display:block; width:auto; height:auto; max-width:100%; max-height:60vh; max-height:60dvh; object-fit:contain; }
.product-detail-description { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
@media(max-width:560px) { .product-detail-content { padding:16px; gap:12px; } }
