.world-book-page {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  height: 100%;
  min-height: 0;
  padding:
    max(54px, calc(env(safe-area-inset-top) + 40px))
    max(22px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
  background: rgba(247, 247, 245, .94);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(18px) scale(.99);
  transition: none;
}

.world-book-page.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.world-book-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.world-book-back,
.world-book-add,
.world-book-transfer-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #111;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.world-book-back span {
  display: block;
  width: 12px;
  height: 12px;
  border-left: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translate(2px, -2px);
}

.world-book-add span {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.world-book-add:disabled {
  color: rgba(0, 0, 0, .28);
  cursor: default;
}

.world-book-header-actions {
  display: flex;
  align-items: center;
  gap: 0;
}

.world-book-transfer {
  position: relative;
}

.world-book-transfer-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.world-book-transfer-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  width: 154px;
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 8px;
  background: rgba(250, 250, 249, .98);
  box-shadow: 7px 9px 22px rgba(0, 0, 0, .10);
}

.world-book-transfer-menu[hidden] {
  display: none;
}

.world-book-transfer-menu button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 10px;
  color: #111;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.world-book-transfer-menu button:hover,
.world-book-transfer-menu button:focus-visible {
  background: rgba(0, 0, 0, .055);
  outline: none;
}

.world-book-transfer-menu svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.world-book-transfer-menu span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-book-title {
  justify-self: center;
  display: grid;
  place-items: center;
  width: min(190px, 100%);
  min-width: 0;
  min-height: 38px;
  padding: 8px 18px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .30);
  box-shadow:
    6px 7px 18px rgba(0, 0, 0, .045),
    inset 1px 1px 0 rgba(255, 255, 255, .82),
    inset -1px -1px 0 rgba(0, 0, 0, .08);
}

.world-book-title span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.world-book-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-height: 46px;
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, .075);
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
  box-shadow:
    5px 6px 18px rgba(0, 0, 0, .045),
    inset 1px 1px 0 rgba(255, 255, 255, .82),
    inset -1px -1px 0 rgba(0, 0, 0, .075);
}

.world-book-tabs[hidden] {
  display: none;
}

.world-book-tabs button {
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  color: rgba(0, 0, 0, .58);
  border-radius: 999px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.world-book-tabs button[aria-selected="true"] {
  color: #080808;
  background: rgba(255, 255, 255, .46);
  box-shadow:
    3px 4px 12px rgba(0, 0, 0, .045),
    inset 1px 1px 0 rgba(255, 255, 255, .86),
    inset -1px -1px 0 rgba(0, 0, 0, .075);
}

.world-book-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 3px 2px 10px;
  scrollbar-width: none;
}

.world-book-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.world-book-transfer-status {
  margin: 0 2px 10px;
  color: rgba(0, 0, 0, .58);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 12px;
  line-height: 1.4;
}

.world-book-transfer-status:empty {
  display: none;
}

.world-book-transfer-status[data-tone="success"] {
  color: #24613c;
}

.world-book-transfer-status[data-tone="error"] {
  color: #8d2626;
}

.world-book-view {
  display: none;
}

.world-book-view.active {
  display: grid;
  gap: 14px;
}

.world-book-entry-card h3,
.world-book-entry-card p {
  margin: 0;
}

.world-book-list,
.world-book-group-list {
  display: grid;
  gap: 10px;
}

.world-book-empty,
.world-book-entry-card,
.world-book-group-item {
  border: 1px solid rgba(0, 0, 0, .075);
  background: rgba(255, 255, 255, .28);
  box-shadow:
    5px 6px 18px rgba(0, 0, 0, .045),
    inset 1px 1px 0 rgba(255, 255, 255, .82),
    inset -1px -1px 0 rgba(0, 0, 0, .075);
}

.world-book-empty {
  display: grid;
  place-items: center;
  min-height: 138px;
  padding: 18px;
  border-radius: 20px;
  color: rgba(0, 0, 0, .52);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
  text-align: center;
}

.world-book-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-height: 104px;
  padding: 15px 14px 14px 16px;
  border-radius: 20px;
  cursor: pointer;
  outline: none;
  touch-action: pan-x pan-y;
  user-select: none;
}

.world-book-entry-card:focus-visible,
.world-book-group-item:focus-visible {
  border-color: rgba(0, 0, 0, .26);
}

.world-book-entry-body {
  min-width: 0;
}

.world-book-entry-card h3 {
  color: #111;
  overflow-wrap: anywhere;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.2;
}

.world-book-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.world-book-entry-meta span {
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(0, 0, 0, .065);
  border-radius: 999px;
  color: rgba(0, 0, 0, .58);
  background: rgba(255, 255, 255, .24);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, .75),
    inset -1px -1px 0 rgba(0, 0, 0, .055);
  overflow-wrap: anywhere;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 11px;
  line-height: 1.2;
}

.world-book-entry-meta .world-book-keyword-chip {
  color: #111;
}

.world-book-entry-content {
  display: -webkit-box;
  margin-top: 10px;
  color: rgba(0, 0, 0, .64);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
  line-height: 1.5;
}

.world-book-entry-switch {
  position: relative;
  display: block;
  width: 50px;
  height: 30px;
  flex: none;
}

.world-book-entry-switch input,
.world-book-toggle-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.world-book-entry-switch span,
.world-book-toggle-field i {
  position: relative;
  display: block;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: #111;
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, .28),
    inset -1px -1px 3px rgba(0, 0, 0, .18);
}

.world-book-entry-switch span::after,
.world-book-toggle-field i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 24px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    2px 3px 8px rgba(0, 0, 0, .14),
    inset 1px 1px 0 rgba(255, 255, 255, .88),
    inset -1px -1px 0 rgba(0, 0, 0, .08);
  transition: transform .18s ease, left .18s ease;
}

.world-book-entry-switch input:not(:checked) + span,
.world-book-toggle-field input:not(:checked) + i {
  background: rgba(0, 0, 0, .11);
}

.world-book-entry-switch input:not(:checked) + span::after,
.world-book-toggle-field input:not(:checked) + i::after {
  left: 4px;
}

.world-book-group-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 15px 16px;
  border-radius: 20px;
  text-align: left;
  cursor: pointer;
  touch-action: pan-x pan-y;
  user-select: none;
}

.world-book-group-item span {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.world-book-group-item strong {
  color: #111;
  overflow-wrap: anywhere;
  font-size: 17px;
  font-weight: 620;
  line-height: 1.2;
}

.world-book-group-item i {
  justify-self: end;
  width: 10px;
  height: 10px;
  border-top: 1.4px solid rgba(0, 0, 0, .48);
  border-right: 1.4px solid rgba(0, 0, 0, .48);
  transform: rotate(45deg);
}

.world-book-dialog {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: end center;
  padding:
    max(70px, calc(env(safe-area-inset-top) + 56px))
    max(20px, env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  background: rgba(245, 245, 243, .58);
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.world-book-dialog.open {
  opacity: 1;
  pointer-events: auto;
}

.world-book-dialog-card {
  display: grid;
  gap: 13px;
  width: min(100%, 420px);
  max-height: min(680px, calc(100dvh - 112px));
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, .085);
  border-radius: 22px;
  background: rgba(250, 250, 249, .98);
  box-shadow:
    8px 10px 26px rgba(0, 0, 0, .08),
    inset 1px 1px 0 rgba(255, 255, 255, .86),
    inset -1px -1px 0 rgba(0, 0, 0, .075);
  overflow-y: auto;
  scrollbar-width: none;
}

.world-book-dialog-card::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.world-book-dialog-card header {
  display: grid;
  gap: 4px;
}

.world-book-dialog-card h2,
.world-book-dialog-card p,
.world-book-segment-field {
  margin: 0;
}

.world-book-dialog-card h2 {
  color: #111;
  font-size: 21px;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.2;
}

.world-book-dialog-card header p,
.world-book-form-status {
  color: rgba(0, 0, 0, .52);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 12px;
  line-height: 1.35;
}

.world-book-field {
  display: grid;
  gap: 8px;
  color: #111;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
  font-weight: 600;
}

.world-book-field input,
.world-book-field textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 15px;
  outline: none;
  background: rgba(255, 255, 255, .64);
  box-shadow:
    inset 1px 1px 2px rgba(0, 0, 0, .045),
    inset -1px -1px 0 rgba(255, 255, 255, .78);
  font: inherit;
}

.world-book-field input {
  height: 42px;
  padding: 0 12px;
}

.world-book-field textarea {
  min-height: 86px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.5;
}

.world-book-field input:focus,
.world-book-field textarea:focus {
  border-color: rgba(0, 0, 0, .32);
}

.world-book-toggle-field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, .075);
  border-radius: 18px;
  background: rgba(255, 255, 255, .26);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, .82),
    inset -1px -1px 0 rgba(0, 0, 0, .065);
}

.world-book-toggle-field span {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.world-book-toggle-field strong {
  color: #111;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
  line-height: 1.2;
}

.world-book-toggle-field small {
  color: rgba(0, 0, 0, .52);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 11px;
  line-height: 1.3;
}

.world-book-keyword-field[hidden] {
  display: none;
}

.world-book-range-field span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.world-book-range-field b {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

.world-book-range-field input[type="range"] {
  height: 30px;
  padding: 0;
  accent-color: #111;
  background: transparent;
  box-shadow: none;
}

.world-book-range-field input[type="range"]::-webkit-slider-runnable-track {
  height: 9px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
  box-shadow:
    inset 1px 1px 2px rgba(0, 0, 0, .08),
    inset -1px -1px 0 rgba(255, 255, 255, .72);
}

.world-book-range-field input[type="range"]::-webkit-slider-thumb {
  width: 23px;
  height: 23px;
  margin-top: -8px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 50%;
  -webkit-appearance: none;
  appearance: none;
  background: #111;
  box-shadow:
    2px 3px 9px rgba(0, 0, 0, .16),
    inset 1px 1px 0 rgba(255, 255, 255, .24);
}

.world-book-range-field input[type="range"]::-moz-range-track {
  height: 9px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
  box-shadow:
    inset 1px 1px 2px rgba(0, 0, 0, .08),
    inset -1px -1px 0 rgba(255, 255, 255, .72);
}

.world-book-range-field input[type="range"]::-moz-range-thumb {
  width: 23px;
  height: 23px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 50%;
  background: #111;
  box-shadow:
    2px 3px 9px rgba(0, 0, 0, .16),
    inset 1px 1px 0 rgba(255, 255, 255, .24);
}

.world-book-segment-field {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 0;
  border: 0;
}

.world-book-segment-field legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: #111;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
  font-weight: 600;
}

.world-book-segment-field label {
  position: relative;
  min-width: 0;
}

.world-book-segment-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.world-book-segment-field span {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid rgba(0, 0, 0, .075);
  border-radius: 999px;
  color: rgba(0, 0, 0, .58);
  background: rgba(255, 255, 255, .24);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, .76),
    inset -1px -1px 0 rgba(0, 0, 0, .065);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.world-book-segment-field input:checked + span {
  color: #111;
  background: rgba(255, 255, 255, .50);
  box-shadow:
    3px 4px 12px rgba(0, 0, 0, .045),
    inset 1px 1px 0 rgba(255, 255, 255, .86),
    inset -1px -1px 0 rgba(0, 0, 0, .075);
}

.world-book-form-status {
  min-height: 17px;
}

.world-book-form-status[data-tone="error"] {
  color: #8d2626;
}

.world-book-dialog-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
}

.world-book-dialog-actions button {
  min-width: 68px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(0, 0, 0, .075);
  border-radius: 14px;
  color: #111;
  background: rgba(255, 255, 255, .28);
  box-shadow:
    4px 5px 14px rgba(0, 0, 0, .045),
    inset 1px 1px 0 rgba(255, 255, 255, .82),
    inset -1px -1px 0 rgba(0, 0, 0, .075);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
  cursor: pointer;
}

.world-book-dialog-actions button[type="submit"] {
  color: #fff;
  border-color: rgba(0, 0, 0, .18);
  background: #111;
  box-shadow:
    4px 5px 14px rgba(0, 0, 0, .08),
    inset 1px 1px 0 rgba(255, 255, 255, .20);
}

.world-book-dialog-actions .world-book-danger-action {
  border-color: rgba(115, 24, 24, .28);
  background: #7b2222;
}

html.night-mode .world-book-page {
  background:
    radial-gradient(circle at 50% 5%, rgba(255, 255, 255, .07), transparent 32%),
    rgba(17, 16, 15, .94);
}

html.night-mode .world-book-back,
html.night-mode .world-book-add,
html.night-mode .world-book-transfer-button,
html.night-mode .world-book-title span,
html.night-mode .world-book-entry-card h3,
html.night-mode .world-book-entry-meta .world-book-keyword-chip,
html.night-mode .world-book-group-item strong,
html.night-mode .world-book-dialog-card h2,
html.night-mode .world-book-field,
html.night-mode .world-book-toggle-field strong,
html.night-mode .world-book-segment-field legend,
html.night-mode .world-book-segment-field input:checked + span,
html.night-mode .world-book-dialog-actions button,
html.night-mode .world-book-transfer-menu button {
  color: var(--ink);
}

html.night-mode .world-book-add:disabled {
  color: rgba(241, 238, 231, .28);
}

html.night-mode .world-book-empty,
html.night-mode .world-book-entry-content,
html.night-mode .world-book-entry-meta span,
html.night-mode .world-book-dialog-card header p,
html.night-mode .world-book-toggle-field small,
html.night-mode .world-book-form-status,
html.night-mode .world-book-transfer-status,
html.night-mode .world-book-tabs button,
html.night-mode .world-book-segment-field span {
  color: rgba(241, 238, 231, .58);
}

html.night-mode .world-book-title,
html.night-mode .world-book-tabs,
html.night-mode .world-book-empty,
html.night-mode .world-book-entry-card,
html.night-mode .world-book-group-item,
html.night-mode .world-book-toggle-field,
html.night-mode .world-book-segment-field span,
html.night-mode .world-book-entry-meta span,
html.night-mode .world-book-dialog-actions button,
html.night-mode .world-book-transfer-menu {
  border-color: rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .055);
  box-shadow:
    4px 5px 16px rgba(0, 0, 0, .22),
    inset 1px 1px 0 rgba(255, 255, 255, .08),
    inset -1px -1px 0 rgba(0, 0, 0, .18);
}

html.night-mode .world-book-transfer-menu {
  background: rgba(26, 25, 23, .98);
}

html.night-mode .world-book-transfer-menu button:hover,
html.night-mode .world-book-transfer-menu button:focus-visible {
  background: rgba(255, 255, 255, .08);
}

html.night-mode .world-book-transfer-status[data-tone="success"] {
  color: #91c9a5;
}

html.night-mode .world-book-transfer-status[data-tone="error"] {
  color: #e49a9a;
}

html.night-mode .world-book-tabs button[aria-selected="true"],
html.night-mode .world-book-segment-field input:checked + span {
  background: rgba(255, 255, 255, .10);
}

html.night-mode .world-book-entry-switch span,
html.night-mode .world-book-toggle-field i {
  background: #f1eee7;
}

html.night-mode .world-book-entry-switch span::after,
html.night-mode .world-book-toggle-field i::after {
  background: #11100f;
}

html.night-mode .world-book-entry-switch input:not(:checked) + span,
html.night-mode .world-book-toggle-field input:not(:checked) + i {
  background: rgba(255, 255, 255, .16);
}

html.night-mode .world-book-group-item i {
  border-color: rgba(241, 238, 231, .45);
}

html.night-mode .world-book-dialog {
  background: rgba(17, 16, 15, .68);
}

html.night-mode .world-book-dialog-card {
  border-color: rgba(255, 255, 255, .10);
  background: rgba(26, 25, 23, .96);
  box-shadow:
    8px 10px 26px rgba(0, 0, 0, .26),
    inset 1px 1px 0 rgba(255, 255, 255, .08),
    inset -1px -1px 0 rgba(0, 0, 0, .22);
}

html.night-mode .world-book-field input,
html.night-mode .world-book-field textarea {
  color: var(--ink);
  border-color: rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .06);
}

html.night-mode .world-book-field input:focus,
html.night-mode .world-book-field textarea:focus {
  border-color: rgba(241, 238, 231, .42);
}

html.night-mode .world-book-range-field input[type="range"]::-webkit-slider-runnable-track,
html.night-mode .world-book-range-field input[type="range"]::-moz-range-track {
  border-color: rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .10);
  box-shadow:
    inset 1px 1px 3px rgba(0, 0, 0, .26),
    inset -1px -1px 3px rgba(255, 255, 255, .06);
}

html.night-mode .world-book-range-field input[type="range"]::-webkit-slider-thumb,
html.night-mode .world-book-range-field input[type="range"]::-moz-range-thumb {
  border-color: rgba(255, 255, 255, .16);
  background: var(--ink);
}

html.night-mode .world-book-dialog-actions button[type="submit"] {
  color: #11100f;
  border-color: rgba(255, 255, 255, .12);
  background: var(--ink);
}

html.night-mode .world-book-dialog-actions .world-book-danger-action {
  color: #fff;
  border-color: rgba(255, 255, 255, .10);
  background: #8d2c2c;
}

@media (max-width: 380px) {
  .world-book-page {
    padding-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right));
  }

  .world-book-title {
    width: min(150px, 100%);
  }

  .world-book-dialog-card {
    padding: 16px;
  }

  .world-book-entry-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .world-book-entry-switch {
    justify-self: end;
  }
}
