/* Embedded catalog filters: four readable, equal-width buttons on one row. */
/* Action warnings use dark, readable ink on the existing parchment surface. */
body dialog.action-notice264 h3,
body dialog.action-notice264 p,
body dialog.action-notice264 .kg-button,
body dialog.action-notice264 [data-kg-text] {
 color: #302116 !important;
 text-shadow: none !important;
}
body dialog.action-notice264 p {
 overflow-wrap: anywhere;
}
/* Page footers cannot escape above the centre's dialogs and menu drawer. */
body.game-shell #game-content > #main {
 position: relative;
 isolation: isolate;
 z-index: 0;
}
body.game-shell.quick142-open #game-content > dialog.menu-covered264[inert] {
 visibility: visible;
}
/* Each menu notification belongs to its row, not the scrollable list. */
body #quick-menu142 .quick142-row {
 position: relative;
}
body #quick-menu142 .quick142-row > .notice-count256 {
 flex: none;
 min-width: 13.333px;
 top: 50%;
 right: 12px;
 bottom: auto;
 left: auto;
 transform: translateY(-50%);
}
body .pm-goods .grade-tabs {
 display: grid !important;
 grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
 gap: 4px;
}
body .pm-goods .grade-tabs > button {
 min-width: 0 !important;
 min-height: 40px !important;
 padding: 9px 3px !important;
 font-size: clamp(11px, 2.65vw, 15px) !important;
 line-height: 1.2 !important;
 white-space: nowrap !important;
}
