/* Shared panel rhythm. Scene artwork and scene controls retain their own styles. */
:root { --community-radius: 18px; --community-space: 20px; --community-gold: #eac67e; --community-muted: #b7c4d2; --community-line: #bda36b40; }
:is(.unified-center-panel, .member-trade-dialog, .farm-drawer, .fishery-drawer, .modal) { box-sizing: border-box; line-height: 1.6; }
:is(.member-trade-dialog, .farm-drawer, .fishery-drawer, .modal:not([data-mm-panel])), #accountWorkspace > .control-panel { border-radius: var(--community-radius); }
:is(.farm-drawer, .fishery-drawer, .modal:not([data-mm-panel])), #accountWorkspace > .control-panel { padding: var(--community-space); }
:is(.unified-center-panel, .member-trade-dialog, .farm-drawer, .fishery-drawer, .modal) :is(h2, h3) { line-height: 1.4; letter-spacing: 0; }
:is(.unified-center-panel, .member-trade-dialog, .farm-drawer, .fishery-drawer, #accountWorkspace) :is(button, select, input:not([type=checkbox]):not([type=radio])) { min-height: 44px; }
:is(.unified-center-panel, .member-trade-dialog, .farm-drawer, .fishery-drawer, #accountWorkspace) button { border-radius: 10px; }
:is(.unified-center-header button, .drawer-close, .fishery-drawer > header button, .modal__close) { min-width: 44px; min-height: 44px; flex-shrink: 0; }
:is(.unified-center-panel, .member-trade-dialog, .farm-drawer, .fishery-drawer, .home-today, .account-quick-access) :is(a, button, select, input):focus-visible { outline: 2px solid #c69b42; outline-offset: 3px; }
:is(.unified-center-panel, .farm-drawer, .fishery-drawer) { scrollbar-width: thin; }
.unified-center-shell { overflow: hidden; }
.unified-center-panel { width: min(480px, 100vw); padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); background: #fbf8f1; color: #263b37; color-scheme: light; }
@keyframes unified-center-in { from { transform: translateX(18px); } }
.unified-center-header { padding-bottom: 4px; }
.unified-center-header small { display: block; color: #52635a; font-size: 12px; margin-bottom: 4px; }
.unified-center-header h2 { font-size: 22px; }
.unified-center-tabs { background: #eaece4; border: 0; padding: 4px; border-radius: 13px; gap: 4px; }
.unified-center-tabs button[aria-selected=true] { background: #fffefb; color: #31584b; border-color: #b7c3ae; }
.unified-center-view.member-history { --member-field: #fffefb; --member-line: #d5d9cc; --member-muted: #52645b; }
.unified-center-view.member-history .member-history-controls { background: #fbf8f1; gap: 8px; }
.unified-center-view .member-history-row { padding: 18px 0; }
.unified-center-empty { line-height: 1.8; padding: 20px 8px; }
.unified-center-load-error { padding: 14px; border: 1px solid #d8ada0; border-radius: 12px; background: #fff1ea; }
.unified-center-launcher { border-radius: 50%; background: #13273b; border-color: #c7ab71; }
/* A page with its own visible bell does not need a second floating bell. */
body:has(.notification-button) > .unified-center-launcher,
body:not(.mm-member-ready):has(#accountWorkspace:not([hidden])) > .unified-center-launcher,
body.mm-member-ready:is([data-mm-view=me], [data-mm-view=all]) > .unified-center-launcher { display: none; }
[data-notice-count] { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; color: #fff; background: #a83b34; font: 700 11px/1 system-ui, sans-serif; }
[data-notice-count][hidden] { display: none; }
.mm-bell { position: relative; }
.mm-bell [data-notice-count] { position: absolute; top: 0; right: -2px; }
.home-today, .account-quick-access { color: #f9edcf; border: 1px solid var(--community-line); border-radius: var(--community-radius); padding: 22px; background: linear-gradient(125deg, #142c42, #0b192a 70%); box-shadow: 0 12px 35px #0002; }
.experience-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.experience-heading h2 { margin: 4px 0 0; color: #f5dfac; font-size: 22px; line-height: 1.4; }
.experience-heading small { display: block; color: var(--community-muted); font-size: 12px; line-height: 1.6; }
.experience-heading button, .experience-inline-status button { border: 1px solid var(--community-line); border-radius: 10px; padding: 8px 13px; min-height: 44px; color: #f2d79e; background: #ffffff08; font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.home-today-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-today-card { position: relative; min-width: 0; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 6px 10px; padding: 16px; border: 1px solid #9db4cf26; border-radius: 13px; background: #c6d8ee05; color: inherit; text-decoration: none; transition: background .16s, border-color .16s; }
.home-today-card[data-pending=true] { border-color: #d8b56675; background: #d1b06b0b; }
.experience-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #f0d28c; background: #d5b76c15; font-size: 25px; }
.home-today-card strong { font-size: 15px; }
.home-today-card p { grid-column: 1 / -1; margin: 3px 0; min-height: 40px; font-size: 12px; line-height: 1.7; color: var(--community-muted); overflow-wrap: anywhere; }
.home-today-action { grid-column: 1 / -1; padding-top: 4px; font-size: 13px; color: #f2d79e; display: flex; justify-content: space-between; }
.experience-inline-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; color: #f3bdb0; font-size: 13px; }
.account-quick-summary { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: center; padding: 16px 0 20px; border-top: 1px solid var(--community-line); }
.account-quick-summary a { color: inherit; text-decoration: none; min-height: 44px; }
.account-quick-summary small { display: block; color: var(--community-muted); font-size: 12px; }
.account-quick-summary strong { display: block; font-size: 27px; font-variant-numeric: tabular-nums; color: #f3d28c; margin-top: 3px; }
.account-quick-summary .account-checkin-status { display: flex; align-items: center; color: #d8c89e; font-size: 13px; }
.account-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.account-quick-grid a { display: grid; gap: 6px; justify-items: center; padding: 16px 8px; min-width: 0; border-radius: 12px; border: 1px solid #9db4cf26; background: #c6d8ee05; color: inherit; text-decoration: none; text-align: center; }
.account-quick-grid a > span { color: #f0d28c; font-size: 25px; line-height: 1.2; }
.account-quick-grid strong { font-size: 14px; font-weight: 600; }
.account-quick-grid small { color: var(--community-muted); font-size: 12px; }
.account-quick-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; }
.account-quick-footer a { display: flex; align-items: center; min-height: 44px; color: #c6d1de; text-decoration: none; font-size: 13px; }
#accountWorkspace :is(h3, section) { scroll-margin-top: 90px; }
@media (hover: hover) {
  .home-today-card:hover, .account-quick-grid a:hover { background: #b9cfeb10; border-color: #d8b56680; }
  .experience-heading button:hover, .account-quick-footer a:hover { color: #fff2ca; }
}
@media (min-width: 821px) {
  .app-shell:has(> .home-today) { display: flex; flex-direction: column; justify-content: flex-start; gap: 18px; padding-bottom: 65px; }
  .app-shell > .home-today { width: min(calc(100vw - 40px), 1180px); }
}
@media (max-width: 820px) {
  .home-today { order: 4; width: 100%; margin-top: 18px; padding: 16px; }
  .home-today-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .home-today-card { padding: 12px; grid-template-columns: 26px 1fr; gap: 6px; }
  .home-today-card strong { font-size: 13px; }
  .experience-symbol { width: 26px; height: 28px; font-size: 21px; }
  .experience-heading h2 { font-size: 20px; }
  .experience-heading small { font-size: 11px; }
  .cosmic-stage.is-dinner-open > .home-today { display: none; }
}
@media (max-width: 760px) {
  :root { --community-space: 16px; }
  .unified-center-panel { padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); }
  .account-quick-access--mobile { margin: 16px 14px 20px; padding: 16px; }
  .account-quick-access--mobile .account-notice-button { display: none; }
  .account-quick-access--mobile .account-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-quick-access--mobile .account-quick-summary { gap: 8px; }
  .account-quick-summary strong { font-size: 23px; }
  .account-quick-summary .account-checkin-status { font-size: 12px; }
  .mm-bell, .topbar .notification-button { min-width: 44px; min-height: 44px; }
  #accountWorkspace :is(h3, section) { scroll-margin-top: 74px; }
  .mm-member-ready #accountWorkspace > .mm-panel-visible { content-visibility: visible; contain-intrinsic-size: none; }
}
@media (prefers-reduced-motion: reduce) { .home-today-card { transition: none; } }
