:root {
  --jf-white: rgba(255, 255, 255, 0.92);
  --jf-muted: rgba(226, 240, 255, 0.74);
  --jf-line: rgba(210, 244, 255, 0.28);
  --jf-line-strong: rgba(210, 244, 255, 0.48);
  --jf-panel: rgba(7, 14, 25, 0.62);
  --jf-panel-soft: rgba(255, 255, 255, 0.065);
  --jf-accent: rgba(127, 218, 255, 0.95);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
.jf-world-body {
  min-height: 100vh;
  overflow: hidden;
  background: #07111e;
  color: var(--jf-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jf-world-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.jf-world-game {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.jf-world-game canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.jf-world-topbar {
  position: absolute;
  z-index: 5;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.jf-world-brand,
.jf-world-status {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--jf-line);
  background: rgba(5, 12, 22, 0.46);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  color: var(--jf-white);
}

.jf-world-brand {
  min-height: 54px;
  padding: 8px 18px 8px 8px;
  text-decoration: none;
}

.jf-world-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #07111e;
  font-weight: 800;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #e9fbff, #77d9ff);
}

.jf-world-brand strong,
.jf-world-brand small {
  display: block;
  line-height: 1.1;
}

.jf-world-brand strong { font-size: 14px; }
.jf-world-brand small { margin-top: 3px; color: var(--jf-muted); font-size: 11px; }

.jf-world-status {
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
  color: var(--jf-muted);
}

.jf-dialog {
  position: absolute;
  z-index: 8;
  left: clamp(14px, 3vw, 44px);
  right: clamp(14px, 3vw, 44px);
  bottom: clamp(14px, 3vw, 36px);
  min-height: 154px;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--jf-line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(5, 11, 21, 0.78), rgba(12, 28, 47, 0.62));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 180ms ease, opacity 180ms ease;
}

.jf-dialog.is-hidden {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}

.jf-dialog-portrait {
  position: relative;
  align-self: stretch;
  min-height: 120px;
  border: 1px solid var(--jf-line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.jf-dialog-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: jfPortraitIdle 4.8s ease-in-out infinite;
}

.jf-dialog-portrait.is-speaking {
  box-shadow: inset 0 0 0 1px rgba(127, 218, 255, 0.28), 0 0 34px rgba(127, 218, 255, 0.18);
}

.jf-dialog-portrait.is-speaking img {
  animation-duration: 2.1s;
}

.jf-dialog-portrait.is-speaking .jf-dialog-pulse {
  animation: jfVoicePulse 900ms ease-in-out infinite;
}

.jf-dialog-pulse {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--jf-accent);
  box-shadow: 0 0 0 7px rgba(127, 218, 255, 0.12), 0 0 28px rgba(127, 218, 255, 0.86);
}

.jf-dialog-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.jf-dialog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--jf-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jf-dialog-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jf-dialog-tool,
.jf-dialog-close {
  min-height: 30px;
  border: 1px solid var(--jf-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--jf-white);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0 11px;
}

.jf-dialog-tool[aria-pressed="true"] {
  border-color: rgba(127, 218, 255, 0.72);
  background: rgba(127, 218, 255, 0.15);
}

.jf-dialog-tool:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.jf-dialog-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 0;
}

.jf-dialog p {
  margin: 0;
  max-width: 980px;
  color: var(--jf-white);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.48;
}

.jf-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jf-dialog-actions button,
.jf-dialog-input button {
  border: 1px solid var(--jf-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--jf-white);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 9px 13px;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.jf-dialog-actions button:hover,
.jf-dialog-input button:hover,
.jf-dialog-tool:hover:not(:disabled),
.jf-dialog-close:hover {
  border-color: rgba(127, 218, 255, 0.86);
  background: rgba(127, 218, 255, 0.12);
  transform: translateY(-1px);
}

.jf-dialog-input {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.jf-dialog-input input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--jf-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--jf-white);
  font: inherit;
  font-size: 14px;
  outline: none;
  padding: 10px 14px;
}

.jf-dialog-input input::placeholder { color: rgba(226, 240, 255, 0.48); }
.jf-dialog-input input:focus { border-color: rgba(127, 218, 255, 0.82); }

@keyframes jfPortraitIdle {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.025) translateY(-2px); }
}

@keyframes jfVoicePulse {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.45); opacity: 1; }
}

@media (max-width: 760px) {
  .jf-world-topbar {
    top: 12px;
    left: 12px;
    right: 12px;
  }
  .jf-world-status { display: none; }
  .jf-dialog {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
  }
  .jf-dialog-portrait { min-height: 84px; border-radius: 16px; }
  .jf-dialog-tools { gap: 6px; }
  .jf-dialog-tool { padding: 0 8px; font-size: 10px; }
  .jf-dialog-input { display: none; }
}

.jf-world-nav {
  position: absolute;
  z-index: 6;
  top: 86px;
  left: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: auto;
}

.jf-world-nav button,
.jf-world-nav a {
  border: 1px solid rgba(210, 244, 255, 0.26);
  border-radius: 999px;
  background: rgba(5, 12, 22, 0.34);
  color: rgba(244, 251, 255, 0.86);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  padding: 10px 13px;
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.jf-world-nav button:hover,
.jf-world-nav a:hover {
  border-color: rgba(127, 218, 255, 0.78);
  background: rgba(127, 218, 255, 0.11);
  transform: translateY(-1px);
}

.jf-world-panel {
  position: absolute;
  z-index: 7;
  top: 150px;
  right: clamp(14px, 3vw, 44px);
  width: min(440px, calc(100vw - 28px));
  max-height: calc(100vh - 360px);
  overflow: auto;
  border: 1px solid var(--jf-line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(5, 11, 21, 0.76), rgba(12, 28, 47, 0.58));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.jf-world-panel.is-hidden {
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
}

.jf-world-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.jf-world-panel-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--jf-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.jf-world-panel h2,
.jf-world-panel h3,
.jf-world-panel p {
  margin: 0;
}

.jf-world-panel h2 {
  color: var(--jf-white);
  font-size: 22px;
  line-height: 1.1;
}

.jf-world-panel > p {
  color: var(--jf-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.jf-world-panel-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--jf-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--jf-white);
  cursor: pointer;
}

.jf-world-panel-cards {
  display: grid;
  gap: 10px;
}

.jf-world-panel-card {
  border: 1px solid rgba(210, 244, 255, 0.20);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.jf-world-panel-card h3 {
  color: var(--jf-white);
  font-size: 15px;
  line-height: 1.25;
}

.jf-world-panel-card p {
  color: rgba(226, 240, 255, 0.72);
  font-size: 13px;
  line-height: 1.48;
  margin-top: 7px;
}

.jf-world-panel-meta {
  display: inline-flex;
  margin-top: 10px;
  color: rgba(127, 218, 255, 0.82);
  font-size: 11px;
}

.jf-world-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.jf-world-panel-actions button {
  border: 1px solid var(--jf-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--jf-white);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 8px 11px;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.jf-world-panel-actions button:hover,
.jf-world-panel-close:hover {
  border-color: rgba(127, 218, 255, 0.86);
  background: rgba(127, 218, 255, 0.12);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .jf-world-nav {
    top: 74px;
    left: 12px;
    right: 12px;
  }
  .jf-world-panel {
    top: 126px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 300px);
    border-radius: 20px;
    padding: 14px;
  }
}

.jf-dialog-mic[aria-pressed="true"] {
  border-color: rgba(255, 214, 102, 0.82);
  background: rgba(255, 214, 102, 0.14);
  color: #fff7d6;
}

.jf-dialog-mic:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.jf-dialog-input-status {
  align-self: center;
  min-width: 96px;
  color: rgba(226, 240, 255, 0.62);
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .jf-dialog-input-status { display: none; }
}

.jf-world-entrance {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(127, 218, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(2, 8, 18, 0.92), rgba(8, 22, 40, 0.88));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 1;
  transition: opacity 520ms ease, transform 520ms ease;
  pointer-events: auto;
}

.jf-world-entrance.is-hidden {
  opacity: 0;
  transform: scale(1.025);
  pointer-events: none;
}

.jf-world-entrance-card {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid rgba(210, 244, 255, 0.28);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.48);
  padding: 34px;
  text-align: center;
}

.jf-world-entrance-card span,
.jf-world-entrance-card small {
  display: block;
  color: rgba(226, 240, 255, 0.72);
}

.jf-world-entrance-card span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.jf-world-entrance-card strong {
  display: block;
  margin: 12px 0 10px;
  color: #f5fbff;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.jf-world-entrance-card small {
  font-size: 14px;
}

.jf-world-room-title {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  min-width: min(420px, calc(100vw - 40px));
  border: 1px solid rgba(210, 244, 255, 0.22);
  border-radius: 999px;
  background: rgba(5, 12, 22, 0.34);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
  color: var(--jf-white);
  padding: 10px 20px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: none;
}

.jf-world-room-title span,
.jf-world-room-title strong {
  display: block;
  line-height: 1.15;
}

.jf-world-room-title span {
  color: rgba(226, 240, 255, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jf-world-room-title strong {
  margin-top: 3px;
  color: #f5fbff;
  font-size: 18px;
}

.jf-world-map {
  position: absolute;
  z-index: 6;
  left: 20px;
  top: 142px;
  width: 210px;
  border: 1px solid rgba(210, 244, 255, 0.22);
  border-radius: 24px;
  background: rgba(5, 12, 22, 0.32);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.24);
  padding: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.jf-world-map-label {
  margin: 2px 4px 10px;
  color: rgba(127, 218, 255, 0.78);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.jf-world-map button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: rgba(244, 251, 255, 0.76);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 9px 10px;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.jf-world-map button span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(210, 244, 255, 0.38);
  box-shadow: 0 0 0 5px rgba(210, 244, 255, 0.055);
}

.jf-world-map button:hover,
.jf-world-map button.is-active,
.jf-world-nav button.is-active {
  border-color: rgba(127, 218, 255, 0.62);
  background: rgba(127, 218, 255, 0.11);
  color: #ffffff;
}

.jf-world-map button.is-active span {
  background: rgba(127, 218, 255, 0.98);
  box-shadow: 0 0 0 5px rgba(127, 218, 255, 0.13), 0 0 20px rgba(127, 218, 255, 0.62);
}

.jf-world-transitioning .jf-world-game {
  filter: blur(3px) brightness(0.82);
}

@media (max-width: 980px) {
  .jf-world-room-title {
    top: 78px;
    min-width: auto;
    left: auto;
    right: 12px;
    transform: none;
    text-align: right;
  }
  .jf-world-map {
    display: none;
  }
}

@media (max-width: 760px) {
  .jf-world-room-title {
    display: none;
  }
  .jf-world-entrance-card {
    border-radius: 24px;
    padding: 26px 20px;
  }
}


/* Mobile world mode: phone UI is not a scaled-down desktop. */
.jf-world-mobile-controls {
  display: none;
}

@media (max-width: 760px) {
  .jf-world-body {
    min-height: 100svh;
    overflow: hidden;
  }

  .jf-world-shell {
    height: 100svh;
  }

  .jf-world-topbar {
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: 10px;
    right: 10px;
    z-index: 14;
  }

  .jf-world-brand {
    min-height: 48px;
    max-width: calc(100vw - 20px);
    padding: 7px 12px 7px 7px;
  }

  .jf-world-brand-mark {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .jf-world-brand strong {
    font-size: 13px;
  }

  .jf-world-brand small {
    display: none;
  }

  .jf-world-nav {
    display: none;
  }

  .jf-world-mobile-controls {
    position: absolute;
    z-index: 15;
    top: calc(66px + env(safe-area-inset-top, 0px));
    left: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    pointer-events: auto;
  }

  .jf-world-mobile-controls button {
    flex: 1 1 0;
    min-height: 42px;
    border: 1px solid rgba(210, 244, 255, 0.28);
    border-radius: 999px;
    background: rgba(5, 12, 22, 0.54);
    color: rgba(244, 251, 255, 0.92);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .jf-world-map {
    display: block;
    position: fixed;
    z-index: 18;
    top: auto;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: min(58svh, 420px);
    overflow: auto;
    border-radius: 24px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(5, 11, 21, 0.94), rgba(12, 28, 47, 0.88));
    box-shadow: 0 32px 110px rgba(0, 0, 0, 0.58);
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
    transition: transform 190ms ease, opacity 190ms ease;
  }

  .jf-mobile-map-open .jf-world-map {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .jf-world-map-label {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .jf-world-map button {
    min-height: 48px;
    font-size: 14px;
    border-radius: 18px;
  }

  .jf-world-panel {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: 48svh;
    border-radius: 22px;
    padding: 14px;
    z-index: 16;
  }

  .jf-world-panel.is-hidden {
    transform: translateY(18px);
  }

  .jf-world-panel h2 {
    font-size: 19px;
  }

  .jf-world-panel > p,
  .jf-world-panel-card p {
    font-size: 13px;
  }

  .jf-dialog {
    z-index: 17;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    min-height: 0;
    max-height: 52svh;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
    overflow: auto;
  }

  .jf-mobile-map-open .jf-dialog {
    pointer-events: none;
    opacity: 0.22;
  }

  .jf-mobile-dialog-closed .jf-dialog {
    transform: translateY(calc(100% - 58px));
    opacity: 0.96;
  }

  .jf-dialog-portrait {
    min-height: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .jf-dialog-content {
    gap: 8px;
  }

  .jf-dialog-meta {
    min-height: 38px;
    align-items: center;
  }

  .jf-dialog-tools {
    gap: 5px;
  }

  .jf-dialog-tool,
  .jf-dialog-close {
    min-height: 32px;
    font-size: 10px;
    padding: 0 9px;
  }

  .jf-dialog p {
    max-width: none;
    font-size: 14px;
    line-height: 1.42;
  }

  .jf-dialog-actions {
    max-height: 92px;
    overflow: auto;
    padding-bottom: 2px;
  }

  .jf-dialog-actions button,
  .jf-dialog-input button {
    min-height: 38px;
    font-size: 12px;
    padding: 8px 11px;
  }

  .jf-dialog-input {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 6px;
  }

  .jf-dialog-input input {
    min-height: 38px;
    font-size: 13px;
    padding: 8px 11px;
  }

  .jf-dialog-input-status {
    display: none;
  }

  .jf-world-entrance-card {
    width: calc(100vw - 24px);
    padding: 24px 18px;
  }

  .jf-world-entrance-card strong {
    font-size: 36px;
  }
}

.jf-dialog-language {
  min-height: 34px;
  border: 1px solid rgba(216, 232, 255, 0.28);
  border-radius: 999px;
  background: rgba(6, 18, 34, 0.74);
  color: rgba(237, 247, 255, 0.92);
  padding: 0 10px;
  font-size: 12px;
  outline: none;
}
@media (max-width: 768px) {
  .jf-dialog-language { max-width: 96px; font-size: 10px; padding: 0 6px; }
}

/* World UI separation pass: product stations are panels; AI is a compact mentor dock. */
@media (min-width: 981px) {
  .jf-world-panel {
    top: 150px;
    left: clamp(250px, 15vw, 340px);
    right: auto;
    width: min(640px, calc(100vw - 760px));
    min-width: 500px;
    max-height: calc(100vh - 210px);
  }

  .jf-dialog {
    left: auto;
    right: clamp(18px, 2vw, 34px);
    bottom: clamp(18px, 2vw, 34px);
    width: min(430px, calc(100vw - 40px));
    min-height: 0;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
  }

  .jf-dialog-portrait {
    min-height: 58px;
    max-height: 72px;
    border-radius: 16px;
    align-self: start;
  }

  .jf-dialog-content {
    gap: 8px;
  }

  .jf-dialog-meta {
    align-items: flex-start;
    gap: 8px;
    letter-spacing: 0.06em;
  }

  .jf-dialog-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .jf-dialog-language {
    max-width: 118px;
  }

  .jf-dialog p {
    max-width: none;
    font-size: 13px;
    line-height: 1.45;
  }

  .jf-dialog-actions {
    max-height: 76px;
    overflow: auto;
    padding-right: 2px;
  }

  .jf-dialog-actions button,
  .jf-dialog-input button {
    font-size: 11px;
    padding: 7px 10px;
  }

  .jf-dialog-input {
    gap: 6px;
  }

  .jf-dialog-input input {
    font-size: 12px;
    padding: 8px 11px;
  }

  .jf-dialog-input-status {
    display: none;
  }
}

@media (min-width: 981px) and (max-width: 1280px) {
  .jf-world-panel {
    left: 22px;
    top: 156px;
    width: min(560px, calc(100vw - 500px));
    min-width: 420px;
  }
}
