:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #25382f;
  background: #254637;
  font-synthesis: none;
  letter-spacing: 0;
  color-scheme: light;
  --green: #2c6d49;
  --ink: #25382f;
  --soft: #f2f5f1;
  --line: #e3e9e2;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  height: 100dvh;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #deaa4b;
  outline-offset: 3px;
}
button svg,
a svg {
  pointer-events: none;
}
svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  flex-shrink: 0;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
}
button:active {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
#world {
  position: fixed;
  inset: 0;
  overflow: hidden;
  outline: none;
  touch-action: none;
}
#first-paint {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
#canvas-host {
  position: absolute;
  inset: 0;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: max(24px, env(safe-area-inset-top))
    max(28px, env(safe-area-inset-right)) 30px
    max(28px, env(safe-area-inset-left));
  background: linear-gradient(#14271d66, transparent);
  pointer-events: none;
}
.topbar > * {
  pointer-events: auto;
}
.brand {
  font-weight: 720;
  font-size: 34px;
  text-decoration: none;
  color: white;
  text-shadow: 0 2px 8px #16281944;
  white-space: nowrap;
}
.brand-dot {
  color: #f5cd76;
}
.search-launch {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 400px;
  max-width: 42vw;
  padding: 14px 20px;
  height: 52px;
  border-radius: 30px;
  color: #566459;
  background: #ffffffed;
  box-shadow: 0 3px 18px #17271c14;
  text-align: left;
  font-size: 15px;
}
.search-launch kbd {
  margin-left: auto;
  font: 13px inherit;
  color: #869187;
  border: 1px solid #dbe2dc;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  text-align: center;
  padding-top: 1px;
}
.icon-button {
  height: 46px;
  width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #e9eee7;
}
.menu-launch {
  justify-self: end;
  height: 52px;
  width: 52px;
  background: #fffffff2;
  box-shadow: 0 3px 18px #17271c14;
}
.menu-launch svg {
  width: 25px;
  height: 25px;
}
.nearby {
  position: absolute;
  z-index: 5;
  background: #fffffff5;
  box-shadow: 0 5px 20px #18251930;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 8px;
  max-width: 250px;
  transform: translate(-50%, -100%);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.nearby svg {
  width: 18px;
  height: 18px;
}
.nearby:active {
  transform: translate(-50%, calc(-100% + 1px));
}
.speech {
  position: absolute;
  z-index: 6;
  transform: translate(-50%, -100%);
  background: white;
  border-radius: 8px;
  padding: 15px 17px;
  box-shadow: 0 5px 24px #15231a30;
  width: 270px;
  max-width: calc(100vw - 28px);
  font-size: 14px;
  line-height: 1.5;
  pointer-events: none;
}
.speech:after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: calc(50% - 7px);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid white;
}
.speech strong {
  display: block;
  color: var(--green);
  font-size: 12px;
  margin-bottom: 4px;
}
.panel {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: 440px;
  max-width: calc(100vw - 24px);
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: -10px 0 55px #183b251f;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
}
.panel::backdrop {
  background: #11231824;
  backdrop-filter: blur(1px);
}
#panel-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.panel-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 22px 17px;
  border-bottom: 1px solid var(--line);
}
.panel-head h1 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.panel-head .eyebrow {
  font-size: 12px;
  color: #758277;
  margin: 0 0 6px;
  display: block;
}
.panel-head .close {
  margin-left: auto;
}
.panel-head .category-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--green);
}
.panel-head .category-icon svg {
  width: 25px;
  height: 25px;
}
.panel-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  padding: 0 22px max(24px, env(safe-area-inset-bottom));
  scrollbar-width: thin;
}
.saved-foot { flex-wrap: wrap; }
.bookmark-tools section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.bookmark-tools h2 { font-size: 18px; margin: 0 0 10px; }
.bookmark-tools p { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.bookmark-file { display: grid; gap: 10px; font-weight: 600; font-size: 14px; }
.bookmark-file input { width: 100%; min-height: 44px; font: inherit; }
.bookmark-file input::file-selector-button { min-height: 44px; border: 1px solid var(--line); background: var(--soft); border-radius: 6px; padding: 0 12px; margin-right: 8px; cursor: pointer; }
.bookmark-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.bookmark-item label { display: flex; gap: 10px; align-items: start; min-height: 44px; }
.bookmark-item input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; accent-color: var(--green); }
.bookmark-item span { min-width: 0; }
.bookmark-item strong, .bookmark-item small { display: block; overflow-wrap: anywhere; }
.bookmark-item strong { font-size: 14px; }
.bookmark-item small { font-size: 12px; line-height: 1.5; color: #59685e; margin: 4px 0 8px; }
.bookmark-item select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: white; padding: 8px; }
.bookmark-paging { display: flex; align-items: center; justify-content: space-between; margin: 12px 0; }
.bookmark-paging button:disabled { opacity: .35; cursor: default; }
.bookmark-count, .bookmark-paging span { font-size: 13px; }
.bookmark-privacy { color: #59685e; }
.tabs {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}
.tab {
  font-size: 14px;
  padding: 18px 0 14px;
  border-bottom: 3px solid transparent;
  color: #7a847c;
}
.tab[aria-selected="true"] {
  border-color: var(--green);
  color: var(--ink);
  font-weight: 600;
}
.site-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.site-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  padding: 13px 0;
}
.site-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--mark-bg, #f1f3ef);
  color: var(--mark, #315941);
  font-size: 20px;
  font-weight: 720;
}
.site-meta {
  min-width: 0;
  flex: 1;
}
.site-name {
  display: block;
  font-weight: 600;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.site-desc {
  display: block;
  font-size: 12px;
  color: #7a847c;
  margin-top: 5px;
  line-height: 1.4;
}
.site-link .external {
  width: 17px;
  height: 17px;
  color: #78887c;
  flex-shrink: 0;
}
.save-site {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.save-site svg {
  width: 19px;
  height: 19px;
  color: #9aaba0;
}
.save-site[aria-pressed="true"] svg {
  fill: #ddb867;
  color: #c59534;
}
.site-menu {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #839086;
}
.site-menu svg {
  width: 17px;
  height: 17px;
}
.site-actions {
  width: 100%;
  padding: 8px 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.site-actions button {
  font-size: 12px;
  padding: 9px 10px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.site-actions svg {
  width: 15px;
  height: 15px;
}
.default-label {
  font-size: 10px;
  display: inline-block;
  color: #48704f;
  background: #edf4ec;
  padding: 3px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.panel-foot {
  padding: 16px 22px max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.text-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--green);
}
.text-action svg {
  width: 19px;
  height: 19px;
}
.panel-foot .text-action {
  flex: 1;
}
.empty {
  padding: 36px 6px;
  text-align: center;
  color: #78857b;
  line-height: 1.6;
  font-size: 14px;
}
.empty svg {
  width: 29px;
  height: 29px;
  display: block;
  margin: 0 auto 12px;
  color: #879b85;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 6px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green);
  color: white;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
.secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--soft);
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
}
.searchbox {
  margin: 18px 22px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ccd8cd;
  border-radius: 6px;
  padding: 11px 13px;
  flex-shrink: 0;
}
.searchbox input {
  border: 0;
  outline: none;
  min-width: 0;
  flex: 1;
  font-size: 16px;
  background: transparent;
  color: var(--ink);
}
.searchbox:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 2px #32744919;
}
.searchbox input:focus-visible {
  outline: none;
}
.searchbox svg {
  width: 20px;
  color: #7d8c80;
}
.group-label {
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #869086;
  margin: 25px 0 9px;
}
.place-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 65px;
  padding: 12px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.place-row .place-icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--green);
  flex-shrink: 0;
}
.place-row .place-icon svg {
  width: 21px;
  height: 21px;
}
.place-row .place-meta {
  flex: 1;
  min-width: 0;
}
.place-row strong {
  font-size: 14px;
  display: block;
  font-weight: 600;
}
.place-row small {
  font-size: 12px;
  color: #7c887e;
  display: block;
  line-height: 1.4;
  margin-top: 4px;
}
.place-row > svg {
  width: 17px;
  color: #94a394;
}
.menu-list {
  padding-top: 10px;
}
.menu-item {
  min-height: 61px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.menu-item svg {
  color: #5c7f66;
  width: 21px;
}
.menu-item > span {
  flex: 1;
}
.menu-item > svg:last-child {
  width: 17px;
  color: #929c94;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 67px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.settings-row > svg {
  width: 20px;
  color: #69806e;
}
.settings-row label {
  flex: 1;
  cursor: pointer;
}
.settings-row input[type="checkbox"] {
  appearance: none;
  cursor: pointer;
  width: 42px;
  height: 25px;
  border-radius: 20px;
  background: #d8e0d7;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.settings-row input[type="checkbox"]:before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #23362033;
  transition: transform 0.2s;
}
.settings-row input[type="checkbox"]:checked {
  background: var(--green);
}
.settings-row input[type="checkbox"]:checked:before {
  transform: translateX(17px);
}
.settings-row select {
  max-width: 160px;
  border: 1px solid #dbe3da;
  padding: 7px;
  border-radius: 4px;
  background: white;
}
.avatar-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.avatar-layout .avatar-preview {
  flex: 0 0 clamp(116px, 23dvh, 205px);
  margin: 12px 22px 0;
}
.avatar-layout .panel-foot {
  flex-shrink: 0;
}
.avatar-layout .panel-foot .primary {
  width: 100%;
}
.wardrobe-tabs {
  justify-content: space-between;
  gap: 16px;
}
.wardrobe-tabs .tab {
  min-width: 60px;
  min-height: 46px;
}
.wardrobe {
  padding-top: 16px;
}
.avatar-preview {
  height: 230px;
  display: grid;
  place-items: center;
  position: relative;
  margin: 10px 0 24px;
  background: #edf3ed;
  border-radius: 8px;
  overflow: hidden;
}
.avatar-preview canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.portrait-tools {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}
.portrait-tools .icon-button {
  background: #ffffffdc;
}
.wardrobe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.wardrobe .form-group {
  margin: 0;
  min-width: 0;
}
.wardrobe .form-group > label {
  margin-bottom: 8px;
}
.wardrobe .form-group select {
  padding: 12px 8px;
}
.backpack-option {
  align-self: end;
  min-height: 46px;
  margin-bottom: 0;
  padding: 0;
  border-bottom: 0;
  gap: 7px;
}
.backpack-option > svg {
  width: 16px;
  height: 16px;
}
.backpack-option label {
  font-size: 13px;
  padding: 12px 0;
}
.backpack-option input[type="checkbox"] {
  flex-shrink: 0;
}
.form-group {
  margin: 22px 0;
}
.form-group > label,
.form-group legend {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 11px;
}
.swatches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--swatch);
  border: 3px solid white;
  box-shadow: 0 0 0 1px #dbe3da;
}
.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--green);
}
.swatch:hover {
  box-shadow: 0 0 0 2px #879a86;
}
.form-group input[type="text"],
.form-group input[type="url"],
.form-group select {
  display: block;
  width: 100%;
  min-height: 46px;
  border: 1px solid #cdd8ce;
  border-radius: 5px;
  padding: 12px;
  font-size: 16px;
  background: white;
}
.form-error {
  font-size: 13px;
  color: #a24237;
  margin: 10px 0;
  min-height: 20px;
}
.form-actions {
  display: flex;
  gap: 12px;
  margin: 25px 0;
}
.form-actions > * {
  flex: 1;
}
.person-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0 18px;
}
.person-portrait {
  width: 102px;
  height: 116px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #e9f0e7;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--green);
}
.person-portrait canvas {
  position: absolute;
  inset: 0;
}
.person-bio {
  font-size: 12px;
  line-height: 1.5;
  color: #677b6b;
  margin: 10px 0 0;
}
.person-portrait svg {
  width: 28px;
  height: 28px;
}
.person-intro strong {
  font-size: 18px;
  display: block;
}
.person-intro small {
  font-size: 12px;
  color: #7e8b80;
  display: block;
  margin-top: 5px;
}
.conversation {
  font-size: 16px;
  line-height: 1.8;
  padding: 22px 0 25px;
  color: #3e5245;
  border-top: 1px solid var(--line);
  min-height: 160px;
}
.conversation-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.conversation-actions button {
  flex: 1;
  min-width: 130px;
}
.hint-note {
  font-size: 12px;
  line-height: 1.6;
  color: #8a958c;
  margin: 24px 0;
}
.copyright {
  font-size: 11px;
  color: #8f9991;
  line-height: 1.6;
  margin: 24px 0 0;
}
.link-footer {
  display: flex;
  gap: 20px;
  font-size: 12px;
  margin: 22px 0;
}
.link-footer a {
  color: #65816a;
  text-underline-offset: 4px;
}
.key-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: #627767;
}
.key-row kbd {
  font: 12px monospace;
  color: var(--ink);
}
#toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: max(30px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: calc(100vw - 36px);
  padding: 13px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 30px #18332030;
  font-size: 14px;
  color: var(--ink);
  text-align: center;
}
#loading {
  position: fixed;
  bottom: 27px;
  left: 27px;
  padding: 10px;
  border-radius: 50%;
  background: #ffffffde;
  z-index: 8;
}
#loading span {
  display: block;
  width: 19px;
  height: 19px;
  border: 2px solid #d9e4d9;
  border-top-color: #3d7248;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
#walk-marker {
  position: absolute;
  width: 22px;
  height: 10px;
  border: 2px solid #fffbcf;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  z-index: 4;
}
.noscript {
  position: fixed;
  bottom: 30px;
  left: 30px;
  padding: 20px;
  background: white;
  border-radius: 8px;
}
#world.keyboard-mode:focus-visible {
  outline: 3px solid #daba68;
  outline-offset: -3px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1000px) {
  .panel.search-panel {
    inset: 100px auto auto 50%;
    transform: translateX(-50%);
    width: 580px;
    height: calc(100dvh - 160px);
    max-height: 660px;
    border-radius: 8px;
  }
  .search-panel .panel-head {
    padding-bottom: 15px;
  }
  .search-panel .searchbox {
    margin-top: 16px;
  }
}
@media (max-width: 700px) {
  .topbar {
    gap: 10px;
    padding: max(16px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right)) 28px
      max(17px, env(safe-area-inset-left));
    grid-template-columns: 1fr auto auto;
  }
  .brand {
    font-size: 28px;
  }
  .search-launch {
    padding: 0;
    justify-content: center;
    height: 45px;
    width: 45px;
    max-width: none;
    border-radius: 50%;
    background: #fffffff2;
    color: var(--ink);
  }
  .search-launch span,
  .search-launch kbd {
    display: none;
  }
  .menu-launch {
    height: 45px;
    width: 45px;
  }
  .panel {
    inset: auto 0 0;
    width: 100%;
    max-width: 100%;
    height: 60dvh;
    max-height: calc(100dvh - max(80px, env(safe-area-inset-top)));
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -8px 35px #182f2220;
  }
  .panel.search-panel,
  .panel.menu-panel,
  .panel.directory-panel,
  .panel.metro-panel,
  .panel.bookmarks-panel,
  .panel.avatar-panel {
    height: 82dvh;
  }
  .panel-head {
    padding: 16px 18px 13px;
  }
  .panel-head h1 {
    font-size: 22px;
  }
  .panel-head .icon-button {
    width: 44px;
    height: 44px;
  }
  .panel-head .category-icon {
    width: 40px;
    height: 40px;
  }
  .tabs {
    padding: 0 20px;
  }
  .tab {
    padding: 13px 0 11px;
  }
  .panel-scroll {
    padding: 0 20px max(18px, env(safe-area-inset-bottom));
  }
  .panel-foot {
    padding: 10px 20px max(14px, env(safe-area-inset-bottom));
  }
  .site-row {
    min-height: 72px;
  }
  .site-link {
    gap: 11px;
  }
  .site-mark {
    height: 36px;
    width: 36px;
    font-size: 18px;
  }
  .site-name {
    font-size: 14px;
  }
  .site-desc {
    font-size: 11px;
  }
  .site-menu {
    width: 44px;
  }
  .save-site {
    width: 44px;
  }
  .searchbox {
    margin: 14px 20px 6px;
  }
  .nearby {
    font-size: 13px;
    padding: 9px 12px;
  }
  .avatar-preview {
    height: 200px;
  }
  .speech {
    font-size: 13px;
    width: 240px;
  }
  #loading {
    left: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 360px) {
  .wardrobe [data-avatar-field="outfit"],
  .wardrobe [data-avatar-field="accessory"] {
    grid-column: 1 / -1;
  }
}
@media (max-height: 520px) and (min-width: 600px) {
  .panel.avatar-panel {
    width: min(640px, 100vw);
    max-width: 100vw;
  }
  .avatar-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .avatar-layout .avatar-preview {
    grid-column: 1;
    grid-row: 1 / -1;
    margin: 12px 0 12px 18px;
    height: auto;
    min-height: 0;
  }
  .avatar-layout .wardrobe-tabs,
  .avatar-layout .panel-scroll,
  .avatar-layout .panel-foot {
    grid-column: 2;
  }
  .topbar {
    padding-top: 12px;
  }
  .brand {
    font-size: 25px;
  }
  .search-launch {
    height: 46px;
  }
  .menu-launch {
    width: 46px;
    height: 46px;
  }
  .panel {
    inset: 0 0 0 auto;
    width: 390px;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .panel-head {
    padding: 12px 18px;
  }
  .avatar-preview {
    height: 180px;
  }
}
.zombie-hud {
  position: fixed;
  z-index: 9;
  left: max(16px, env(safe-area-inset-left));
  top: calc(max(24px, env(safe-area-inset-top)) + 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(360px, calc(100% - 24px));
  min-height: 64px;
  padding: 8px 10px 8px 14px;
  border: 1px solid #d6e1d6;
  border-radius: 8px;
  background: #f9fcf9f5;
  color: #294138;
  box-shadow: 0 4px 20px #17372e24;
}
.zombie-status {
  min-width: 0;
}
.zombie-status > strong {
  font-size: 13px;
}
.zombie-status > div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 3px;
}
.zombie-chances {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.zombie-chances svg {
  width: 14px;
  height: 14px;
  color: #a5415c;
}
.zombie-time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  min-width: 38px;
}
.zombie-wake {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 10px;
  color: #294138;
  background: #e4eee7;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
}
.zombie-wake:hover {
  background: #d8e7de;
}
.zombie-wake svg {
  width: 18px;
  height: 18px;
}
body[data-zombie="on"] #toast {
  top: calc(max(24px, env(safe-area-inset-top)) + 140px);
  bottom: auto;
}
@media (max-width: 700px) {
  .zombie-hud {
    top: calc(max(16px, env(safe-area-inset-top)) + 57px);
    width: calc(100% - 32px);
  }
  body[data-zombie="on"] #toast {
    top: calc(max(16px, env(safe-area-inset-top)) + 133px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  #loading span {
    animation-duration: 2s;
  }
}
.site-origin {
  display: block;
  margin-top: 4px;
  color: #347375;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}
.creation-detail {
  display: block;
  margin-top: 2px;
  color: #68746f;
  font-size: 12px;
  line-height: 1.5;
}
.creation-row .site-name,
.creation-row .site-desc,
.creation-row .site-origin,
.creation-row .creation-detail {
  white-space: normal;
  overflow-wrap: anywhere;
}
.creations-notice {
  margin: 12px 0 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.65;
  color: #566760;
}
.creations-notice strong { color: var(--ink); }
.creations-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-bottom: 8px; }
.creations-filters .searchbox { margin: 0; min-width: 0; }
.creations-filters select { max-width: 140px; min-height: 44px; }
.collection-tabs { gap: 0; justify-content: space-between; }
.collection-tabs .tab { min-height: 48px; min-width: 0; padding-left: 4px; padding-right: 4px; }
@media (max-width: 699px) {
  .creations-panel, .creations-collection { height: 82dvh; }
}
@media (max-width: 380px) {
  .collection-tabs .tab { font-size: 12px; }
  .creations-filters { grid-template-columns: minmax(0, 1fr); }
  .creations-filters select { max-width: none; width: 100%; }
  .creation-row { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
  .creation-row .site-link { flex-basis: 100%; }
  .creation-row .save-site, .creation-row .site-menu { margin-bottom: 6px; }
}
