.economy-dashboard-main .student-home-redesign {
  --home-green: #238a3d;
  --home-green-deep: #13652c;
  --home-ink: #17304e;
  --home-muted: #6c7887;
  --home-line: #ead6b7;
  display: grid;
  min-width: 0;
  gap: 18px;
  padding: 22px 26px 30px;
  border: 1px solid rgba(188, 136, 61, .35);
  border-radius: 24px;
  background: rgba(255, 253, 247, .97);
  color: var(--home-ink);
  box-shadow: 0 16px 38px rgba(92, 55, 17, .15);
}

.economy-dashboard-main .student-home-redesign.economy-wallet-home-stage {
  width: 100%;
  min-height: 100%;
  overflow: visible;
}

.economy-dashboard-main .student-home-redesign :is(h2, h3, p) { margin: 0; }
.economy-dashboard-main .student-home-redesign :is(a, button) { font: inherit; }
.economy-dashboard-main .student-home-redesign a { color: inherit; text-decoration: none; }

.economy-dashboard-main .student-home-identity-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(190px, 1fr) minmax(220px, .9fr) auto;
  min-height: 74px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--home-line);
  padding: 0 4px 16px;
}

.economy-dashboard-main .student-home-identity,
.economy-dashboard-main .student-home-token-status,
.economy-dashboard-main .student-home-identity-actions { display: flex; align-items: center; }
.economy-dashboard-main .student-home-identity { gap: 10px; }
.economy-dashboard-main .student-home-avatar-source { width: 46px; height: 46px; border: 2px solid #d5b264; box-shadow: 0 3px 8px rgba(66, 46, 9, .14); }
.economy-dashboard-main .student-home-identity div { display: grid; gap: 1px; }
.economy-dashboard-main .student-home-identity small { color: var(--home-muted); font-size: 11px; font-weight: 800; }
.economy-dashboard-main .student-home-identity strong { font-size: 18px; }
.economy-dashboard-main .student-home-class-pill { border: 1px solid #bad0dc; border-radius: 8px; background: #f6fbfd; padding: 7px 10px; color: #32506e; font-size: 11px; font-weight: 900; white-space: nowrap; }

.economy-dashboard-main .student-home-rank { min-width: 0; border-left: 1px solid var(--home-line); padding-left: 18px; }
.economy-dashboard-main .student-home-rank details { position: relative; }
.economy-dashboard-main .student-home-rank summary { width: auto; min-height: 38px; display: flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 0; cursor: pointer; list-style: none; box-shadow: none; }
.economy-dashboard-main .student-home-rank summary::-webkit-details-marker { display: none; }
.economy-dashboard-main .student-home-rank > img { display: block; float: left; width: 42px; height: 42px; margin: 1px 8px 0 0; object-fit: contain; }
.economy-dashboard-main .student-home-rank summary::before { display: none; }
.economy-dashboard-main .student-home-rank .economy-dashboard-level-summary { font-size: 14px; font-weight: 1000; }
.economy-dashboard-main .student-home-rank > p { margin-top: -4px; padding-left: 50px; color: var(--home-muted); font-size: 10px; font-weight: 800; }
.economy-dashboard-main .student-home-rank .economy-dashboard-level-popover { z-index: 120; }

.economy-dashboard-main .student-home-token-status { min-width: 0; gap: 8px; border-left: 1px solid var(--home-line); padding-left: 18px; }
.economy-dashboard-main .student-home-token-status a { display: grid; grid-template-columns: 34px auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-width: 96px; }
.economy-dashboard-main .student-home-token-status img { grid-row: 1 / 3; width: 32px; height: 32px; object-fit: contain; }
.economy-dashboard-main .student-home-token-status span { color: var(--home-muted); font-size: 10px; font-weight: 900; }
.economy-dashboard-main .student-home-token-status strong { font-size: 16px; }
.economy-dashboard-main .student-home-identity-actions { justify-content: end; gap: 8px; }
.economy-dashboard-main .student-home-identity-actions button { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #ead0aa; border-radius: 10px; background: #fffdf8; padding: 0 13px; color: #422f1b; font-size: 11px; font-weight: 900; cursor: pointer; }

.economy-dashboard-main .student-home-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.economy-dashboard-main .student-home-summary-card { position: relative; min-width: 0; min-height: 244px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; border: 1px solid var(--home-line); border-radius: 17px; background: linear-gradient(180deg, #fffefa, #fffaf1); padding: 17px 16px 14px; box-shadow: 0 4px 12px rgba(115, 76, 20, .05); }
.economy-dashboard-main .student-home-summary-card header { min-height: 42px; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; column-gap: 9px; }
.economy-dashboard-main .student-home-summary-card header h2 { font-size: 16px; }
.economy-dashboard-main .student-home-summary-card header small { grid-column: 2; color: var(--home-muted); font-size: 9px; font-weight: 800; }
.economy-dashboard-main .student-home-summary-icon { grid-row: 1 / 3; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: #eff7ef; }
.economy-dashboard-main .student-home-summary-icon img { width: 32px; height: 32px; object-fit: contain; }
.economy-dashboard-main .student-home-summary-card > a { min-height: 36px; display: grid; place-items: center; border: 1px solid #edcc9b; border-radius: 9px; background: linear-gradient(180deg, #fffdf7, #fff2dc); font-size: 11px; font-weight: 900; }
.economy-dashboard-main .student-home-summary-card > div:not(.student-home-schedule-actions) { min-height: 0; overflow: hidden; }
.economy-dashboard-main .student-home-summary-card button:is([data-student-href], .economy-wallet-notice-item) { width: 100%; min-height: 36px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; border: 0; border-bottom: 1px solid #efe3d2; border-radius: 0; background: transparent; padding: 5px 2px; color: var(--home-ink); text-align: left; box-shadow: none; cursor: pointer; }
.economy-dashboard-main .student-home-summary-card button:is([data-student-href], .economy-wallet-notice-item) :is(strong, span, em, small) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.economy-dashboard-main .student-home-summary-card button:is([data-student-href], .economy-wallet-notice-item) em { color: var(--home-green); font-size: 9px; font-style: normal; font-weight: 900; }
.economy-dashboard-main .student-home-summary-card button:is([data-student-href], .economy-wallet-notice-item) strong { font-size: 10px; }
.economy-dashboard-main .student-home-summary-card button:is([data-student-href], .economy-wallet-notice-item) span { color: var(--home-muted); font-size: 9px; }
.economy-dashboard-main .student-home-summary-card .economy-wallet-notice-copy { display: grid; gap: 2px; }
.economy-dashboard-main .student-home-summary-card .economy-wallet-notice-badges { display: flex; gap: 3px; }
.economy-dashboard-main .student-home-summary-card .economy-wallet-notice-badges em { border-radius: 999px; background: #fff0d8; padding: 3px 5px; color: #a24b20; }
.economy-dashboard-main .student-home-schedule-actions { position: absolute; top: 17px; right: 14px; display: flex; gap: 3px; }
.economy-dashboard-main .student-home-schedule-actions button { min-width: 28px; min-height: 28px; border: 1px solid #d9e5d8; border-radius: 7px; background: #fff; color: var(--home-green-deep); font-size: 10px; font-weight: 900; cursor: pointer; }
.economy-dashboard-main .student-home-summary-card--schedule > small { color: var(--home-muted); font-size: 9px; font-weight: 800; }
.economy-dashboard-main .student-home-summary-card--meal > small { color: var(--home-muted); font-size: 9px; font-weight: 800; overflow-wrap: anywhere; }
.economy-dashboard-main .student-home-summary-card--schedule #studentScheduleSummary button { grid-template-columns: 34px minmax(0, 1fr); }
.economy-dashboard-main .student-home-summary-card--schedule .economy-wallet-today-unit { display: none; }
.economy-dashboard-main .economy-wallet-meal-list { margin: 0; padding-left: 18px; font-size: 10px; font-weight: 800; line-height: 1.75; }

.economy-dashboard-main .student-home-tools-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 14px; }
.economy-dashboard-main .student-home-tools-panel { min-width: 0; display: grid; gap: 13px; border: 1px solid #dfd8c8; border-radius: 18px; background: rgba(255,255,255,.68); padding: 16px; }
.economy-dashboard-main .student-home-tools-panel > header { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 10px; }
.economy-dashboard-main .student-home-tools-panel > header div { display: flex; align-items: center; gap: 8px; }
.economy-dashboard-main .student-home-tools-panel > header i { color: #f2a400; font-size: 20px; }
.economy-dashboard-main .student-home-tools-panel--favorites > header i { color: #23944b; }
.economy-dashboard-main .student-home-tools-panel h2 { font-size: 17px; }
.economy-dashboard-main .student-home-tools-panel header small { margin-left: auto; color: var(--home-muted); font-size: 9px; font-weight: 800; }
.economy-dashboard-main .student-home-tools-panel header > strong { font-size: 12px; }
.economy-dashboard-main .student-home-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.economy-dashboard-main .student-home-tool-grid--favorites { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.economy-dashboard-main .student-home-tool-card { position: relative; min-width: 0; min-height: 138px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; border: 1px solid #e9ddca; border-radius: 15px; background: #fffefa; padding: 13px 8px; text-align: center; }
.economy-dashboard-main .student-home-tool-card--recommended::before { content: '★'; position: absolute; top: -1px; left: 8px; color: #ffb200; font-size: 22px; }
.economy-dashboard-main .student-home-tool-icon { display: grid; width: 54px; height: 54px; place-items: center; overflow: hidden; border-radius: 18px; background: #e7f4e3; color: var(--home-green); font-size: 29px; }
.economy-dashboard-main .student-home-tool-icon img { width: 100%; height: 100%; object-fit: contain; }
.economy-dashboard-main .student-home-tool-card strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.economy-dashboard-main .student-home-tool-card small { display: -webkit-box; max-width: 100%; overflow: hidden; color: var(--home-muted); font-size: 9px; font-weight: 700; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.economy-dashboard-main .student-home-tool-empty { min-height: 138px; border: 1px dashed #c7d2c4; border-radius: 15px; background: rgba(255,255,255,.56); color: #399c52; font-size: 28px; cursor: pointer; }
.economy-dashboard-main .student-home-tool-empty span { display: block; margin-top: 5px; color: var(--home-muted); font-size: 9px; font-weight: 800; }
.economy-dashboard-main .student-home-tool-cta { min-height: 44px; border: 1px solid #187833; border-radius: 10px; background: linear-gradient(180deg, #55a927, #23852d); color: #fff; font-size: 13px; font-weight: 1000; box-shadow: inset 0 1px rgba(255,255,255,.5); cursor: pointer; }

.economy-dashboard-main .student-home-secondary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.economy-dashboard-main .student-home-secondary-grid > article { min-width: 0; min-height: 150px; border: 1px solid var(--home-line); border-radius: 16px; background: #fffdf8; padding: 16px; }
.economy-dashboard-main .student-home-secondary-grid header { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 9px; margin-bottom: 12px; }
.economy-dashboard-main .student-home-secondary-grid h2 { font-size: 15px; }
.economy-dashboard-main .student-home-secondary-grid header > a { min-height: 32px; display: inline-flex; align-items: center; border: 1px solid #d9e5d8; border-radius: 8px; padding: 0 10px; color: var(--home-green-deep); font-size: 10px; font-weight: 900; }
.economy-dashboard-main .student-home-secondary-grid article > a { display: block; color: var(--home-muted); font-size: 11px; font-weight: 800; }

.student-favorite-dialog { width: min(980px, calc(100% - 30px)); height: min(850px, calc(100vh - 30px)); max-width: none; max-height: none; overflow: hidden; border: 7px solid #c68b48; border-radius: 28px; background: #fffcf5; color: #18314e; box-shadow: 0 25px 70px rgba(18, 24, 18, .5); }
.student-favorite-dialog::backdrop { background: rgba(12, 22, 17, .72); }
.student-favorite-dialog #studentFavoriteForm { height: 100%; display: grid; grid-template-rows: auto auto minmax(270px, 1fr) auto; gap: 12px; max-height: none; padding: 14px 16px 16px; }
.student-favorite-dialog-head { display: flex; align-items: start; justify-content: center; text-align: center; }
.student-favorite-dialog-head > div > span { color: #258046; font-size: 10px; font-weight: 1000; letter-spacing: .12em; }
.student-favorite-dialog-head h2 { margin: 3px 0 4px; font-size: 27px; }
.student-favorite-dialog-head p { margin: 0; color: #667383; font-size: 12px; }
.student-favorite-dialog-head > button { position: absolute; top: 14px; right: 16px; width: 46px; min-height: 46px; border: 1px solid #d9b884; border-radius: 11px; background: #fffaf0; color: #5d4021; font-size: 23px; cursor: pointer; }
.student-favorite-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 170px)); justify-content: center; gap: 10px; }
.student-favorite-slot { position: relative; min-height: 112px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid #e0c49c; border-radius: 14px; background: #fffefa; padding: 10px; text-align: center; }
.student-favorite-slot .student-home-tool-icon { display: grid; width: 48px; height: 48px; place-items: center; overflow: hidden; border-radius: 16px; background: #e5f4e6; color: #238a3d; font-size: 25px; }
.student-favorite-slot .student-home-tool-icon img { width: 100%; height: 100%; object-fit: contain; }
.student-favorite-slot strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.student-favorite-slot > button { position: absolute; top: 6px; right: 6px; width: 30px; min-height: 30px; border: 1px solid #dfc59d; border-radius: 50%; background: #fff; color: #624427; cursor: pointer; }
.student-favorite-slot.is-empty { border-style: dashed; border-color: #6bad7c; color: #238a3d; font-size: 30px; }
.student-favorite-slot.is-empty small { color: #238a3d; font-size: 10px; font-weight: 900; }
.student-favorite-browser { min-height: 0; display: grid; grid-template-columns: 190px minmax(0, 1fr); overflow: hidden; border: 1px solid #e4c79e; border-radius: 14px; background: #fff; }
.student-favorite-browser > aside { border-right: 1px solid #e4d5be; padding: 13px; }
.student-favorite-search { display: flex; min-height: 42px; align-items: center; gap: 8px; border: 1px solid #cbd3dc; border-radius: 9px; padding: 0 10px; }
.student-favorite-search i { color: #718095; }
.student-favorite-search input { width: 100%; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 11px; }
.student-favorite-browser nav { display: grid; gap: 6px; margin-top: 10px; }
.student-favorite-browser nav button { min-height: 42px; display: flex; align-items: center; gap: 8px; border: 1px solid #ebd7b9; border-radius: 9px; background: #fffaf2; padding: 0 12px; color: #35465a; font-size: 11px; font-weight: 900; text-align: left; cursor: pointer; }
.student-favorite-browser nav button.is-active { border-color: #82ac5f; background: #eff8df; color: #1f7540; }
.student-favorite-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 9px; overflow-y: auto; padding: 16px; }
.student-favorite-option { min-height: 92px; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid #eadcc7; border-radius: 12px; background: #fffdf9; padding: 10px; }
.student-favorite-option .student-home-tool-icon { display: grid; width: 54px; height: 54px; place-items: center; overflow: hidden; border-radius: 17px; background: #e5f4e6; color: #238a3d; font-size: 26px; }
.student-favorite-option .student-home-tool-icon img { width: 100%; height: 100%; object-fit: contain; }
.student-favorite-option-copy { min-width: 0; display: grid; gap: 3px; }
.student-favorite-option-copy strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.student-favorite-option-copy small { color: #667383; font-size: 9px; line-height: 1.35; }
.student-favorite-option-copy em { width: fit-content; border-radius: 999px; background: #eaf3fb; padding: 3px 7px; color: #39739c; font-size: 8px; font-style: normal; font-weight: 900; }
.student-favorite-option > button { min-width: 48px; min-height: 42px; border: 1px solid #72b58a; border-radius: 9px; background: #fff; color: #1c7941; font-weight: 1000; cursor: pointer; }
.student-favorite-option > button.is-selected { border-color: #f09c8d; color: #d85c4a; }
.student-favorite-dialog footer { display: grid; grid-template-columns: minmax(250px, 1fr) 96px 1fr auto; align-items: center; gap: 12px; }
.student-favorite-dialog footer > p:first-child { margin: 0; color: #687180; font-size: 10px; font-weight: 800; line-height: 1.5; }
.student-favorite-dialog footer > output { min-height: 50px; display: grid; place-items: center; border: 1px solid #dfc59c; border-radius: 10px; background: #fff; color: #174730; font-size: 22px; font-weight: 1000; }
.student-favorite-dialog footer > .student-favorite-status { min-height: 0; margin: 0; color: #bd3f31; font-size: 10px; }
.student-favorite-dialog-actions { display: grid; grid-template-columns: 92px 200px; gap: 10px; }
.student-favorite-dialog-actions button { min-height: 52px; border: 1px solid #cfae7b; border-radius: 11px; background: #fffaf1; color: #513a20; font-weight: 1000; cursor: pointer; }
.student-favorite-dialog-actions button:last-child { border-color: #1c792e; background: linear-gradient(180deg, #65b429, #26892e); color: #fff; }

@media (max-width: 1100px) {
  .economy-dashboard-main .student-home-identity-bar { grid-template-columns: minmax(190px, 1.2fr) minmax(170px, 1fr) minmax(180px, .9fr); }
  .economy-dashboard-main .student-home-identity-actions { grid-column: 1 / -1; justify-content: end; }
  .economy-dashboard-main .student-home-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .economy-dashboard-main .student-home-tools-layout { grid-template-columns: 1fr; }
}

@media (min-width: 1101px) {
  .economy-dashboard-main .student-home-redesign { gap: 12px; padding: 16px 20px 24px; }
  .economy-dashboard-main .student-home-identity-bar { min-height: 62px; padding-bottom: 10px; }
  .economy-dashboard-main .student-home-summary-card { min-height: 202px; padding: 13px 13px 11px; }
  .economy-dashboard-main .student-home-summary-card header { min-height: 36px; }
  .economy-dashboard-main .student-home-summary-icon { width: 34px; height: 34px; }
  .economy-dashboard-main .student-home-summary-icon img { width: 29px; height: 29px; }
  .economy-dashboard-main .student-home-tools-panel { gap: 10px; padding: 13px; }
  .economy-dashboard-main .student-home-tool-card,
  .economy-dashboard-main .student-home-tool-empty { min-height: 116px; }
  .economy-dashboard-main .student-home-tool-icon { width: 46px; height: 46px; font-size: 24px; }
  .economy-dashboard-main .student-home-secondary-grid { display: none; }
}

@media (max-width: 760px) {
  .economy-dashboard-main .student-home-redesign { padding: 16px; }
  .economy-dashboard-main .student-home-identity-bar { grid-template-columns: 1fr; }
  .economy-dashboard-main .student-home-rank,
  .economy-dashboard-main .student-home-token-status { border-left: 0; padding-left: 0; }
  .economy-dashboard-main .student-home-summary-grid,
  .economy-dashboard-main .student-home-secondary-grid { grid-template-columns: 1fr; }
  .economy-dashboard-main .student-home-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-favorite-dialog #studentFavoriteForm { grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .student-favorite-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-favorite-browser { grid-template-columns: 1fr; }
  .student-favorite-browser > aside { border-right: 0; border-bottom: 1px solid #e4d5be; }
  .student-favorite-browser nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .student-favorite-options { grid-template-columns: 1fr; }
  .student-favorite-dialog footer { grid-template-columns: 1fr; }
  .student-favorite-dialog-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
