:root {
  --shima-layer-content: 1;
  --shima-layer-sticky: 180;
  --shima-layer-footer: 800;
  --shima-layer-float: 900;
  --shima-layer-toast: 1200;
  --shima-reforge-ink: #dcedf7;
  --shima-reforge-muted: #88a4b5;
  --shima-reforge-line: rgba(175, 220, 235, 0.18);
  --shima-reforge-line-strong: rgba(157, 231, 222, 0.43);
  --shima-reforge-panel: rgba(7, 19, 32, 0.94);
  --shima-reforge-panel-soft: rgba(13, 31, 48, 0.88);
  --shima-reforge-accent: #8be7dc;
  --shima-reforge-blue: #a9ddf4;
  --shima-reforge-warn: #f1ce8b;
}

body[data-shima-reforge-mounted="1"] {
  overflow-x: hidden;
}

body[data-shima-reforge-mounted="1"] #mini-ui-fixed {
  z-index: var(--shima-layer-footer) !important;
}

body[data-shima-reforge-mounted="1"] .zero-assist-toast,
body[data-shima-reforge-mounted="1"] #linkage-toast,
body[data-shima-reforge-mounted="1"] #commercial-suggest-toast {
  z-index: var(--shima-layer-toast) !important;
}

body[data-shima-reforge-mounted="1"]:not([data-shima-legacy-tools="1"]) #ui-search-bar,
body[data-shima-reforge-mounted="1"]:not([data-shima-legacy-tools="1"]) #zero-assist-toolbar,
body[data-shima-reforge-mounted="1"]:not([data-shima-legacy-tools="1"]) #zero-filter-empty,
body[data-shima-reforge-mounted="1"]:not([data-shima-legacy-tools="1"]) #floater-btn,
body[data-shima-reforge-mounted="1"]:not([data-shima-legacy-tools="1"]) #floater-list,
body[data-shima-reforge-mounted="1"]:not([data-shima-legacy-tools="1"]) #footer-search-btn,
body[data-shima-reforge-mounted="1"]:not([data-shima-legacy-tools="1"]) #footer-history-btn {
  display: none !important;
}

@media (min-width: 701px) {
  body[data-shima-reforge-mounted="1"]:not([data-shima-legacy-tools="1"]) #zero-selection-tray {
    display: none !important;
  }
}

.shima-reforge-command,
.shima-reforge-dialog,
.shima-reforge-dialog *,
.shima-reforge-command *,
.shima-shelf-pager,
.shima-shelf-pager * {
  box-sizing: border-box;
  writing-mode: horizontal-tb;
}

.shima-shelf-pager {
  display: none;
}

.shima-reforge-command {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(420px, 1.6fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 11px 12px;
  border: 1px solid var(--shima-reforge-line);
  border-top-color: rgba(232, 250, 255, 0.33);
  border-radius: 15px;
  background:
    radial-gradient(circle at 4% 0, rgba(154, 228, 240, 0.1), transparent 37%),
    linear-gradient(135deg, rgba(8, 25, 41, 0.98), rgba(9, 18, 32, 0.98));
  box-shadow: 0 14px 35px rgba(0, 5, 14, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--shima-reforge-ink);
}

.shima-reforge-command__heading {
  min-width: 0;
}

.shima-reforge-eyebrow {
  display: block;
  color: #7094a8;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  line-height: 1.2;
}

.shima-reforge-command__heading > strong {
  display: block;
  margin-top: 2px;
  color: #ecfaff;
  font-size: 1rem;
  line-height: 1.25;
}

.shima-reforge-command__heading > small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--shima-reforge-muted);
  font-size: 0.64rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shima-reforge-command__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 7px;
  min-width: 0;
}

.shima-reforge-command__button {
  min-width: 0;
  min-height: 38px;
  margin: 0 !important;
  padding: 6px 8px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #8fa8b9 !important;
  box-shadow: none !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  line-height: 1.2;
  white-space: nowrap;
}

.shima-reforge-command__button {
  border-color: rgba(142, 187, 205, 0.17) !important;
  background: rgba(12, 31, 48, 0.7) !important;
}

.shima-reforge-command__button:hover,
.shima-reforge-command__button:focus-visible {
  border-color: var(--shima-reforge-line-strong) !important;
  color: #eafcff !important;
  outline: none;
}

.shima-reforge-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.65em;
  height: 1.65em;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(139, 231, 220, 0.13);
  color: var(--shima-reforge-accent);
  font-size: 0.68rem;
  font-weight: 950;
  vertical-align: middle;
}

.shima-reforge-jump {
  animation: shimaReforgeJump 1.5s ease-out !important;
}

@keyframes shimaReforgeJump {
  0%, 40% {
    outline: 3px solid rgba(139, 231, 220, 0.72);
    outline-offset: 4px;
    box-shadow: 0 0 0 7px rgba(139, 231, 220, 0.09), 0 14px 35px rgba(0, 5, 14, 0.34) !important;
  }
  100% { outline-color: transparent; outline-offset: 1px; }
}

.shima-reforge-dialog {
  width: min(920px, calc(100vw - 28px));
  max-width: 920px;
  max-height: calc(100svh - 28px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(183, 228, 241, 0.26);
  border-radius: 20px;
  background: #081522;
  color: var(--shima-reforge-ink);
  box-shadow: 0 28px 90px rgba(0, 3, 10, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.shima-reforge-dialog:not([open]) {
  display: none;
}

.shima-reforge-dialog::backdrop {
  background: rgba(0, 7, 16, 0.72);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.shima-reforge-dialog__shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  max-height: calc(100svh - 30px);
  overflow: hidden;
}

.shima-reforge-dialog__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(174, 220, 235, 0.16);
  background:
    radial-gradient(circle at 0 0, rgba(139, 231, 220, 0.11), transparent 37%),
    rgba(9, 24, 39, 0.98);
}

.shima-reforge-dialog__heading {
  min-width: 0;
}

.shima-reforge-dialog__heading h2 {
  margin: 3px 0 0;
  color: #effbff;
  font-size: 1.08rem;
  line-height: 1.25;
}

.shima-reforge-dialog__close {
  flex: 0 0 auto;
  min-height: 36px;
  margin: 0 !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(172, 217, 234, 0.2) !important;
  border-radius: 10px !important;
  background: rgba(21, 42, 60, 0.74) !important;
  color: #b8d3e1 !important;
  box-shadow: none !important;
  font-size: 0.7rem !important;
  font-weight: 900 !important;
}

.shima-reforge-dialog__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
}

.shima-reforge-menu {
  width: min(760px, calc(100vw - 28px));
}

.shima-reforge-menu[data-shima-reforge-menu-view="shelves"] {
  width: min(560px, calc(100vw - 28px));
}

.shima-reforge-menu[data-shima-reforge-menu-view="shelves"] .shima-reforge-menu-tools,
.shima-reforge-menu[data-shima-reforge-menu-view="shelves"] .shima-reforge-dialog__note,
.shima-reforge-menu[data-shima-reforge-menu-view="shelves"] .shima-reforge-directory > summary {
  display: none;
}

.shima-reforge-menu[data-shima-reforge-menu-view="shelves"] .shima-reforge-directory {
  padding: 0;
  border: 0;
  background: transparent;
}

.shima-reforge-menu[data-shima-reforge-menu-view="shelves"] .shima-reforge-shelf-directory {
  margin-top: 0;
}

.shima-reforge-menu-card {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 11px;
  border: 1px solid rgba(171, 217, 233, 0.15);
  border-radius: 14px;
  background: rgba(13, 31, 48, 0.68);
}

.shima-reforge-menu-card h3,
.shima-reforge-menu-card h4 {
  margin: 0;
  color: #dff2f9;
  font-size: 0.78rem;
  line-height: 1.35;
}

.shima-reforge-menu-card > p {
  margin: 4px 0 0;
  color: var(--shima-reforge-muted);
  font-size: 0.67rem;
  line-height: 1.55;
}

.shima-reforge-menu-actions,
.shima-reforge-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.shima-reforge-menu-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shima-reforge-menu-button,
.shima-reforge-directory__button {
  min-width: 0;
  min-height: 40px;
  margin: 0 !important;
  padding: 7px 9px !important;
  overflow-wrap: anywhere;
  border: 1px solid rgba(155, 203, 221, 0.18) !important;
  border-radius: 10px !important;
  background: rgba(17, 40, 59, 0.78) !important;
  color: #bcd7e4 !important;
  box-shadow: none !important;
  font-size: 0.68rem !important;
  font-weight: 850 !important;
  line-height: 1.35;
}

.shima-reforge-menu-button.is-active,
.shima-reforge-menu-button[aria-pressed="true"] {
  border-color: var(--shima-reforge-line-strong) !important;
  background: rgba(68, 142, 136, 0.23) !important;
  color: #e4fffb !important;
}

.shima-reforge-help-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.shima-reforge-help-link:hover {
  border-color: var(--shima-reforge-line-strong) !important;
  color: #e4fffb !important;
}

.shima-reforge-help-link:focus-visible {
  outline: 2px solid #a5f3e7;
  outline-offset: 3px;
}

.shima-reforge-directory > summary {
  cursor: pointer;
  color: #dff2f9;
  font-size: 0.78rem;
  font-weight: 900;
  list-style-position: inside;
}

.shima-reforge-shelf-directory {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.shima-reforge-directory__group {
  min-width: 0;
}

.shima-reforge-directory__group h4 {
  margin-bottom: 5px;
  color: #7897aa;
  font-size: 0.61rem;
  letter-spacing: 0.05em;
}

.shima-reforge-directory__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.shima-reforge-directory__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  text-align: left;
}

.shima-reforge-directory__button.is-current {
  border-color: rgba(111, 231, 214, 0.58) !important;
  background: linear-gradient(110deg, rgba(51, 125, 116, 0.42), rgba(40, 77, 112, 0.42)) !important;
  color: #effffc !important;
}

.shima-reforge-directory__button[aria-current="location"]::after {
  content: "現在地";
  flex: 0 0 auto;
  margin-inline-start: 8px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(120, 234, 216, 0.16);
  color: #9af0e3;
  font-size: 0.56rem;
  white-space: nowrap;
}

.shima-reforge-dialog__note {
  margin: 0;
  padding: 9px 10px;
  border: 1px dashed rgba(139, 231, 220, 0.22);
  border-radius: 11px;
  color: #88a7b8;
  font-size: 0.65rem;
  line-height: 1.55;
}

.shima-reforge-search .shima-reforge-dialog__shell {
  height: min(860px, calc(100svh - 30px));
}

.shima-reforge-search__controls {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 8px;
  padding: 11px 13px 10px;
  border-bottom: 1px solid rgba(174, 220, 235, 0.14);
  background: rgba(8, 22, 36, 0.98);
}

.shima-reforge-search__input {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(151, 205, 224, 0.28);
  border-radius: 12px;
  outline: none;
  background: #0d2032;
  color: #edfaff;
  font-size: 0.88rem;
  line-height: 1.35;
}

.shima-reforge-search__input:focus {
  border-color: rgba(139, 231, 220, 0.65);
  box-shadow: 0 0 0 3px rgba(139, 231, 220, 0.08);
}

.shima-reforge-search__input::placeholder {
  color: #607e90;
}

.shima-reforge-filter-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.shima-reforge-filter-label {
  color: #6f8ea1;
  font-size: 0.61rem;
  font-weight: 900;
}

.shima-reforge-filter-group,
.shima-reforge-filter-toggles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
}

.shima-reforge-filter-toggles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-left: 55px;
}

.shima-reforge-filter {
  min-width: 0;
  min-height: 34px;
  margin: 0 !important;
  padding: 5px 7px !important;
  border: 1px solid rgba(151, 200, 219, 0.16) !important;
  border-radius: 9px !important;
  background: rgba(17, 38, 56, 0.75) !important;
  color: #88a3b4 !important;
  box-shadow: none !important;
  font-size: 0.64rem !important;
  font-weight: 900 !important;
  line-height: 1.2;
  white-space: normal;
}

.shima-reforge-filter.is-active,
.shima-reforge-filter[aria-pressed="true"] {
  border-color: rgba(139, 231, 220, 0.5) !important;
  background: rgba(61, 135, 130, 0.24) !important;
  color: #ddfff9 !important;
}

.shima-reforge-search__status {
  margin: 0;
  color: #69899c;
  font-size: 0.61rem;
  line-height: 1.45;
}

.shima-reforge-search__results {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  padding: 11px 13px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.shima-reforge-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 7px 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(161, 207, 224, 0.15);
  border-radius: 13px;
  background: rgba(13, 31, 48, 0.72);
}

.shima-reforge-result.is-selected {
  border-color: rgba(139, 231, 220, 0.45);
  background: linear-gradient(135deg, rgba(42, 105, 101, 0.24), rgba(13, 31, 48, 0.76));
}

.shima-reforge-result[data-channel="negative"] {
  border-left: 3px solid rgba(220, 138, 169, 0.54);
}

.shima-reforge-result__badges {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.shima-reforge-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 6px;
  border: 1px solid rgba(151, 202, 220, 0.15);
  border-radius: 999px;
  background: rgba(27, 55, 75, 0.72);
  color: #8eacbc;
  font-size: 0.56rem;
  font-weight: 950;
  line-height: 1.15;
}

.shima-reforge-badge[data-tone="negative"] {
  border-color: rgba(222, 146, 173, 0.25);
  background: rgba(113, 45, 70, 0.25);
  color: #efabc4;
}

.shima-reforge-result__copy {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.shima-reforge-result__copy h3 {
  margin: 0;
  color: #e4f4fa;
  font-size: 0.78rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.shima-reforge-result__copy code {
  display: block;
  margin-top: 3px;
  color: #88a8ba;
  font: 0.62rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
  white-space: normal;
}

.shima-reforge-result__description,
.shima-reforge-result__path {
  margin: 4px 0 0;
  color: #7795a7;
  font-size: 0.61rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.shima-reforge-result__path {
  color: #668497;
}

.shima-reforge-result__actions {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  align-self: center;
  flex-direction: column;
  gap: 6px;
  width: 94px;
}

.shima-reforge-result__toggle,
.shima-reforge-result__reveal,
.shima-reforge-selection-item__remove {
  width: 100%;
  min-height: 36px;
  margin: 0 !important;
  padding: 5px 8px !important;
  border: 1px solid rgba(139, 231, 220, 0.3) !important;
  border-radius: 9px !important;
  background: rgba(45, 113, 107, 0.22) !important;
  color: #cffff8 !important;
  box-shadow: none !important;
  font-size: 0.64rem !important;
  font-weight: 950 !important;
}

.shima-reforge-result__reveal {
  border-color: rgba(151, 201, 221, 0.2) !important;
  background: rgba(22, 46, 66, 0.76) !important;
  color: #aac7d7 !important;
}

.shima-reforge-search__more {
  flex: 0 0 auto;
  min-height: 42px;
  margin: 0 13px 12px !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(139, 231, 220, 0.3) !important;
  border-radius: 10px !important;
  background: rgba(45, 113, 107, 0.2) !important;
  color: #cffff8 !important;
  box-shadow: none !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
}

.shima-reforge-search__more[hidden] {
  display: none !important;
}

.shima-reforge-empty {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 22px;
  border: 1px dashed rgba(157, 205, 224, 0.18);
  border-radius: 14px;
  text-align: center;
}

.shima-reforge-empty strong {
  color: #bed6e3;
  font-size: 0.78rem;
}

.shima-reforge-empty p {
  max-width: 500px;
  margin: 6px 0 0;
  color: #6f8da0;
  font-size: 0.66rem;
  line-height: 1.55;
}

.shima-reforge-selection__status {
  padding: 10px 11px;
  border: 1px solid rgba(139, 231, 220, 0.2);
  border-radius: 12px;
  background: rgba(44, 111, 105, 0.15);
  color: #aee8df;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.5;
}

.shima-reforge-selection__status[data-tone="warning"] {
  border-color: rgba(241, 206, 139, 0.3);
  background: rgba(121, 89, 36, 0.17);
  color: #f1d69e;
}

.shima-reforge-selection__status[data-tone="empty"] {
  border-color: rgba(160, 202, 219, 0.16);
  background: rgba(19, 40, 58, 0.66);
  color: #87a4b5;
}

.shima-reforge-selection-group {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(160, 205, 223, 0.14);
  border-radius: 13px;
  background: rgba(13, 31, 48, 0.66);
}

.shima-reforge-selection-group h3 {
  margin: 0 0 7px;
  color: #cce2ec;
  font-size: 0.72rem;
}

.shima-reforge-selection-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.shima-reforge-selection-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}

.shima-reforge-selection-item__copy {
  display: block;
  min-width: 0;
  min-height: 42px;
  margin: 0 !important;
  padding: 7px 9px !important;
  border: 1px solid rgba(152, 201, 219, 0.14) !important;
  border-radius: 9px !important;
  background: rgba(18, 40, 58, 0.76) !important;
  color: #c7dee9 !important;
  box-shadow: none !important;
  text-align: left;
}

.shima-reforge-selection-item__copy strong,
.shima-reforge-selection-item__copy small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shima-reforge-selection-item__copy strong {
  font-size: 0.67rem;
}

.shima-reforge-selection-item__copy small {
  margin-top: 3px;
  color: #6d8a9c;
  font-size: 0.57rem;
}

.shima-reforge-selection-item__remove {
  min-height: 42px;
  border-color: rgba(222, 146, 173, 0.22) !important;
  background: rgba(105, 42, 65, 0.18) !important;
  color: #eab0c4 !important;
}

@media (max-width: 900px) {
  .shima-reforge-command {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .shima-reforge-command__actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shima-reforge-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body[data-shima-reforge-mounted="1"] {
    --shima-layer-sticky: 160;
  }

  body[data-shima-reforge-mounted="1"][data-shima-mobile-view="shelf"][data-shima-shelf-pager-mounted="1"] {
    padding-bottom: calc(var(--builder-footer-height, 72px) + 68px + env(safe-area-inset-bottom)) !important;
  }

  .shima-reforge-command {
    display: none;
  }

  body[data-shima-mobile-view="shelf"] #shima-shelf-pager {
    position: fixed;
    z-index: 790;
    left: 50%;
    bottom: calc(var(--builder-footer-height, 72px) + 6px);
    display: grid;
    grid-template-columns: minmax(48px, 0.72fr) minmax(0, 3.2fr) minmax(48px, 0.72fr) minmax(48px, 0.68fr);
    align-items: stretch;
    gap: 5px;
    width: min(calc(100vw - 14px), 986px);
    margin: 0;
    padding: 5px;
    border: 1px solid rgba(189, 231, 244, 0.28);
    border-radius: 14px;
    background: rgba(5, 24, 37, 0.965);
    box-shadow: 0 12px 34px rgba(0, 5, 14, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transform: translateX(-50%);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    pointer-events: auto;
    isolation: isolate;
  }

  #shima-shelf-pager[hidden] {
    display: none !important;
  }

  #shima-shelf-pager button,
  #shima-shelf-pager .shima-shelf-pager__current {
    min-width: 0;
    min-height: 42px;
    margin: 0 !important;
    border-radius: 10px !important;
    font-size: 0.68rem !important;
    font-weight: 900;
    line-height: 1.15;
  }

  #shima-shelf-pager button {
    position: relative;
    z-index: 1;
    display: flex;
    flex: none !important;
    align-items: center;
    justify-content: center;
    padding: 6px 4px !important;
    border: 1px solid rgba(165, 211, 228, 0.16) !important;
    background: rgba(16, 36, 52, 0.9) !important;
    color: #b8cfda !important;
    box-shadow: none !important;
    white-space: nowrap;
    pointer-events: auto;
    touch-action: manipulation;
  }

  #shima-shelf-pager button:disabled {
    border-color: transparent !important;
    background: rgba(10, 25, 38, 0.55) !important;
    color: #526b79 !important;
    opacity: 0.7;
    transform: none !important;
  }

  #shima-shelf-pager .shima-shelf-pager__current {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 7px;
    overflow: hidden;
    border: 1px solid rgba(113, 226, 209, 0.42) !important;
    background: linear-gradient(110deg, rgba(48, 113, 108, 0.38), rgba(43, 76, 116, 0.42)) !important;
    color: #edfffc !important;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }

  #shima-shelf-pager .shima-shelf-pager__current::after {
    content: "⌄";
    flex: 0 0 auto;
    margin-inline-start: 5px;
    color: #8de8dc;
    font-size: 0.78em;
  }

  #shima-shelf-pager .shima-shelf-pager__current:focus-visible {
    outline: 2px solid rgba(141, 232, 220, 0.92);
    outline-offset: 1px;
  }

  #shima-shelf-pager .shima-shelf-pager__top {
    color: #8de8dc !important;
    letter-spacing: 0.04em;
  }

  #zero-mobile-view-switch {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  #zero-mobile-view-switch button {
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 6px 3px !important;
    overflow: hidden;
    font-size: 0.67rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #zero-mobile-view-switch button > span {
    min-width: 1.55em !important;
    height: 1.55em !important;
    padding-inline: 3px !important;
    font-size: 0.61rem !important;
  }

  #shima-mobile-menu-view {
    border-color: rgba(170, 217, 233, 0.2) !important;
    background: #101b2d !important;
    color: #a6becd !important;
  }

  .shima-reforge-dialog,
  .shima-reforge-menu,
  .shima-reforge-search {
    width: calc(100vw - 14px);
    max-width: calc(100vw - 14px);
    max-height: calc(100svh - 14px);
    border-radius: 16px;
  }

  .shima-reforge-dialog__shell,
  .shima-reforge-search .shima-reforge-dialog__shell {
    width: 100%;
    height: calc(100svh - 16px);
    max-height: calc(100svh - 16px);
  }

  .shima-reforge-dialog__header {
    padding: 11px;
  }

  .shima-reforge-dialog__heading h2 {
    font-size: 0.98rem;
  }

  .shima-reforge-dialog__body {
    padding: 9px;
  }

  .shima-reforge-search__controls {
    gap: 7px;
    padding: 9px;
  }

  .shima-reforge-search__input {
    min-height: 45px;
    font-size: 0.82rem;
  }

  .shima-reforge-filter-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 5px;
  }

  .shima-reforge-filter-toggles {
    padding-left: 47px;
  }

  .shima-reforge-filter {
    min-height: 36px;
    padding-inline: 4px !important;
    font-size: 0.59rem !important;
  }

  .shima-reforge-search__results {
    gap: 7px;
    padding: 9px;
  }

  .shima-reforge-result {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 6px;
    padding: 9px;
  }

  .shima-reforge-result__badges {
    grid-column: 1;
    grid-row: 1;
  }

  .shima-reforge-result__copy {
    grid-column: 1;
    grid-row: 2;
  }

  .shima-reforge-result__actions {
    grid-column: 1;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .shima-reforge-result__toggle,
  .shima-reforge-result__reveal {
    min-height: 40px;
  }

  .shima-reforge-directory__list {
    grid-template-columns: 1fr;
  }

  .shima-reforge-menu-actions,
  .shima-reforge-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shima-reforge-menu-button {
    min-height: 43px;
  }

  body[data-shima-mobile-view="selected"] .shima-reforge-dialog[open] {
    display: block !important;
  }
}

@media (max-width: 390px) {
  .shima-reforge-filter-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shima-reforge-filter-toggles {
    grid-template-columns: 1fr;
  }

  .shima-reforge-menu-actions,
  .shima-reforge-menu-grid {
    grid-template-columns: 1fr;
  }

  #zero-mobile-view-switch button {
    font-size: 0.62rem !important;
  }

  #shima-shelf-pager button,
  #shima-shelf-pager .shima-shelf-pager__current {
    font-size: 0.62rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shima-reforge-jump {
    animation: none !important;
  }
}
