/* v257: shorter Overview. Daily Challenge = banner with the map as background, rewards as small tiles;
   short daily quest cards; Shibuya row; Server card on top. */
body #panel-overview .latest-clear-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "info" "earned" "rewards"; grid-template-rows: auto auto auto auto; gap: 0; padding: 0; overflow: hidden; border-radius: 16px; }
body #panel-overview .stage-art { grid-area: 1 / 1 / 3 / 2; position: relative; min-height: 0; height: 100%; margin: 0; border: 0; border-radius: 0; background: #111428; }
body #panel-overview .stage-art-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; filter: saturate(1.1); }
body #panel-overview .stage-art::after { content: ""; display: block; position: absolute; inset: 0; box-shadow: none; border: 0; transform: none; height: auto; background: linear-gradient(180deg, rgb(9 11 26 / 55%) 0%, rgb(9 11 26 / 25%) 38%, rgb(13 15 32 / 92%) 100%); }
body #panel-overview .latest-clear-top { position: relative; z-index: 1; margin: 0; padding: 12px 12px 0; }
body #panel-overview .latest-clear-top .mini-label { color: #ffffff; font-size: 13px; white-space: nowrap; text-shadow: 0 1px 6px rgb(0 0 0 / 60%); }
body #panel-overview .latest-clear-info { position: relative; z-index: 1; margin: 0; padding: 56px 14px 14px; }
body #panel-overview .latest-clear-info h3 { color: #ffffff; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; text-shadow: 0 2px 10px rgb(0 0 0 / 65%); }
body #panel-overview .latest-clear-info p { margin-top: 4px; color: #dcd8f5; font-size: 12px; line-height: 1.45; text-shadow: 0 1px 6px rgb(0 0 0 / 70%); }
body #panel-overview #daily-earned { padding: 12px 12px 14px; border-top: 1px solid rgb(255 255 255 / 6%); }
body #panel-overview #daily-earned .panel-eyebrow { display: block; margin: 0 0 8px; }
body #panel-overview .daily-reward-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 0; }
body #panel-overview .daily-reward-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 0; padding: 10px 6px 8px; border: var(--at-tile-border); border-radius: 12px; background: linear-gradient(160deg, rgb(127 216 255 / 8%), var(--at-tile) 60%); text-align: center; }
body #panel-overview .daily-reward-icon { order: 0; width: 32px; height: 32px; }
body #panel-overview .daily-reward-icon img { width: 32px; height: 32px; object-fit: contain; }
body #panel-overview .daily-reward-amount { order: 1; margin: 2px 0 0; color: #ffffff; font-size: 15px; font-weight: 800; }
body #panel-overview .daily-reward-name { order: 2; max-width: 100%; overflow: hidden; color: var(--at-dim); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.quest-group.is-daily .quest-item-text span { display: none; }
#panel-overview .quest-group.server-group { margin-bottom: 12px; }
.quest-group.server-group .server-row { padding: 8px 12px; border: var(--at-tile-border); border-radius: 10px; background: var(--at-tile); font-size: 13px; }
@media (min-width: 721px) {
  body #panel-overview .latest-clear-info { padding-top: 84px; }
}
@media (max-width: 720px) {
  body #panel-overview .daily-reward-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quest-group.is-daily { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* v257: loading card while an account opens (no old content flashes) */
html.aa-loading-profile #directory-view { display: none !important; }
html.aa-loading-profile #profile-view { display: block !important; }
html.aa-loading-profile #profile-view > * { visibility: hidden; }
html.aa-loading-profile #profile-view::before { content: "กำลังโหลดข้อมูลไอดี…"; display: grid; place-items: center; min-height: 220px; margin: 24px 0; padding-top: 64px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 18px; background: radial-gradient(circle at 50% 38%, rgb(143 123 255 / 18%), transparent 9rem), linear-gradient(140deg, #181b30, #101426); color: #b9b6d6; font-size: 14px; font-weight: 600; }
html.aa-loading-profile #profile-view::after { content: ""; position: absolute; top: 104px; left: 50%; width: 34px; height: 34px; margin-left: -17px; border: 3px solid rgb(255 255 255 / 12%); border-top-color: #9d8cff; border-radius: 50%; animation: aa-load-spin 0.8s linear infinite; }
html.aa-loading-profile #profile-view { position: relative; }
@keyframes aa-load-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { html.aa-loading-profile #profile-view::after { animation-duration: 2.4s; } }
