* {
  box-sizing: border-box;
}

.music-window {
  position: fixed; z-index: 1400; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(720px,calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0 9px 13px;
  overflow: auto; border-radius: 24px 24px 17px 17px;
  background: url("frame.png") center / 100% 100% no-repeat;
  box-shadow: 0 8px 32px #0007; color: #203f2a; font: 12px "Malgun Gothic",Arial,sans-serif;
}
.music-window[hidden] { display: none; }
.music-titlebar { height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px; font-size: 13px; user-select: none; touch-action: none; cursor: move; }
.music-titlebar > div { display: flex; align-self: flex-start; }
.music-titlebar button { width: 28px; height: 21px; padding: 0; border: 1px solid #6c8b79; background: linear-gradient(#e2f0e7,#97b4a2 50%,#6e917e 51%,#a6c4b0); color: #fff; text-shadow: 0 1px 2px #365442; cursor: pointer; }
.music-titlebar [data-action="close"] { width: 40px; border-radius: 0 0 4px 0; background: linear-gradient(#e8b4a4,#bd7260 50%,#a74330 51%,#ca8b70); font-size: 19px; }
.music-inner { border: 1px solid #608f73; background: #deeee3; }
.music-menubar { display: flex; justify-content: space-between; padding: 6px 10px; color: #526d5a; background: linear-gradient(#fbfefb,#d6e8db); font-size: 11px; }
.music-tabs { display: flex; gap: 26px; padding: 10px 14px; background: linear-gradient(#f3fbf5,#b3d8be 52%,#8bbb9b 53%,#c6e7cf); border-bottom: 1px solid #7ca98a; }
.music-content { display: grid; grid-template-columns: minmax(0,1fr) 195px; min-height: 295px; }
.music-stage { position: relative; min-width: 0; overflow: hidden; background: radial-gradient(ellipse at 15% 25%,#ffffffab,transparent 45%),linear-gradient(160deg,#295d43,#72bca0 55%,#d9efdb); color: #fff; }
.music-now { background: #102d23; padding: 10px 14px; }
.music-now small { color: #a7cfb5; font-size: 10px; }
.music-now h2 { font-size: 14px; font-weight: normal; margin: 4px 0 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.music-album { display: flex; align-items: center; gap: 18px; padding: 26px 22px; position: relative; z-index: 1; }
.music-cd { flex-shrink: 0; width: 88px; height: 88px; border-radius: 50%; border: 2px solid #eee; background: radial-gradient(circle,transparent 0 9%,#789a8d 10% 15%,#e2ebef 16% 20%,transparent 21%),conic-gradient(#dbe2e8,#faf3b3,#bbccef,#f5cbe0,#f5ffff,#b9d4c3,#dbe2e8); box-shadow: 0 2px 8px #0005; }
.music-playing .music-cd { animation: music-spin 7s linear infinite; }
.music-album-label { letter-spacing: 2px; font-size: 9px; opacity: .8; }
#music-album-title { margin: 8px 0; font-size: 15px; overflow-wrap: anywhere; text-shadow: 0 1px 3px #214d39; }
.music-stars { color: #f7dc64; text-shadow: 0 1px #a58d35; letter-spacing: 2px; }
#music-artist,#music-album-name,#music-track-meta { margin: 4px 0; overflow-wrap: anywhere; }
#music-artist { font-size: 13px; }
#music-album-name { opacity: .9; }
#music-track-meta { font-size: 10px; opacity: .75; }
.music-album p:empty { display: none; }
.music-visualizer { display: flex; align-items: flex-end; gap: 4px; height: 76px; padding: 0 14px 0; opacity: .65; }
.music-visualizer i { flex: 1; height: 100%; background: repeating-linear-gradient(to top,#f1fff6 0 5px,transparent 5px 8px); transform: scaleY(.025); transform-origin: bottom; transition: transform 65ms linear; }
.music-playlist { background: linear-gradient(#bcdcc7,#eaf5ed); border-left: 1px solid #709c7d; min-width: 0; }
.music-list-heading { display: flex; align-items: center; justify-content: space-between; padding: 8px; border-bottom: 1px solid #93baa0; }
.music-list-heading button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 19px; }
#music-tracks { list-style: none; margin: 0; padding: 5px; max-height: 255px; overflow: auto; scrollbar-width: thin; scrollbar-color: #7bba8d #deeee3; }
#music-tracks button { display: block; width: 100%; padding: 8px 6px; border: 1px solid transparent; background: transparent; color: #315c40; font: inherit; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
#music-tracks button:hover { background: #d7eadb; }
#music-tracks button.selected { border-color: #6eab80; background: #91c5a3; color: #12351e; }
.music-seek { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid #80a98d; background: linear-gradient(#f7fff9,#c6dfce); }
.music-seek input { flex: 1; min-width: 0; }
#music-time { flex-shrink: 0; font-size: 10px; font-variant-numeric: tabular-nums; }
.music-window input[type="range"] { accent-color: #598e6a; height: 15px; cursor: pointer; }
.music-controls { display: flex; align-items: center; gap: 7px; padding: 4px 12px; background: linear-gradient(#f8fff9,#b1d3bb); }
.music-controls button { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid #86ab91; color: #315e40; background: linear-gradient(#fff,#d9eadf 48%,#a0c8ad 51%,#f2fff6); box-shadow: inset 0 0 0 2px #ffffff80; cursor: pointer; }
.music-controls .music-play { width: 38px; height: 38px; font-size: 16px; }
.music-controls button[aria-pressed="true"] { background: #76b58c; color: #fff; }
.music-controls button:disabled { opacity: .45; cursor: default; }
.music-volume { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.music-volume input { width: 85px; }
#music-status { margin: 0; padding: 6px 12px; min-height: 29px; font-size: 10px; overflow-wrap: anywhere; }
.music-expanded { top: 94px !important; left: 18px !important; width: calc(100vw - 36px); max-height: calc(100dvh - 112px); transform: none !important; }
.music-expanded .music-content { min-height: 50dvh; }
.music-expanded #music-tracks { max-height: 45dvh; }
@keyframes music-spin { to { transform: rotate(360deg); } }
@media (max-width:560px) {
  .music-content { grid-template-columns: minmax(0,1fr); }
  .music-stage { min-height: 220px; }
  .music-playlist { border-left: 0; border-top: 1px solid #709c7d; }
  #music-tracks { max-height: 110px; }
  .music-album { padding: 16px; }
  .music-visualizer { height: 40px; }
  .music-controls { gap: 4px; padding: 4px 6px; }
  .music-volume input { width: 55px; }
}
@media (prefers-reduced-motion:reduce) { .music-playing .music-cd,.music-playing .music-visualizer i { animation: none; } }

.music-window { display: flex; flex-direction: column; height: min(465px,calc(100dvh - 32px)); overflow: hidden; container-type: inline-size; }
.music-titlebar { flex-shrink: 0; }
.music-inner { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.music-menubar,.music-tabs,.music-seek,.music-controls,#music-status { flex-shrink: 0; }
.music-content { flex: 1; min-height: 120px; grid-template-columns: minmax(0,1fr) clamp(150px,28%,300px); }
.music-stage { display: flex; flex-direction: column; min-height: 0; container-type: size; }
.music-stage::before { content: ""; position: absolute; inset: -8px; background-image: var(--album-background,none); background-position: center; background-size: cover; filter: blur(4px) brightness(.65); pointer-events: none; }
.music-stage > * { position: relative; }
.music-now { z-index: 1; }
.music-album { flex: 1; min-height: 0; padding: clamp(8px,4cqw,28px); gap: clamp(10px,4cqw,24px); }
.music-album > div:last-child { min-width: 0; }
.music-cd { width: clamp(45px,min(24cqw,38cqh),160px); height: auto; aspect-ratio: 1; }
#music-album-title { font-size: clamp(12px,3.5cqw,24px); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#music-album-title.has-typography { display: block; overflow: visible; }
#music-album-title img { display: block; width: min(100%,320px); max-height: clamp(40px,23cqh,120px); object-fit: contain; object-position: left center; }
.music-visualizer { height: clamp(20px,22cqh,140px); flex-shrink: 0; }
.music-playlist { display: flex; flex-direction: column; min-height: 0; }
.music-list-heading { flex-shrink: 0; }
#music-tracks,.music-expanded #music-tracks { flex: 1; min-height: 0; max-height: none; }
.music-expanded { height: calc(100dvh - 112px); }
.music-expanded .music-content { min-height: 120px; }
.music-controls { flex-wrap: wrap; }
.music-resize { position: absolute; z-index: 5; touch-action: none; }
.music-resize-n,.music-resize-s { left: 17px; right: 17px; height: 6px; cursor: ns-resize; }
.music-resize-n { top: 0; } .music-resize-s { bottom: 0; }
.music-resize-e,.music-resize-w { top: 17px; bottom: 17px; width: 7px; cursor: ew-resize; }
.music-resize-e { right: 0; } .music-resize-w { left: 0; }
.music-resize-ne,.music-resize-nw,.music-resize-se,.music-resize-sw { width: 17px; height: 17px; }
.music-resize-ne { top: 0; right: 0; cursor: nesw-resize; }
.music-resize-nw { top: 0; left: 0; cursor: nwse-resize; }
.music-resize-se { bottom: 0; right: 0; cursor: nwse-resize; }
.music-resize-sw { bottom: 0; left: 0; cursor: nesw-resize; }
.music-expanded .music-resize { display: none; }
.music-resizing { user-select: none; }
@container (max-width: 480px) {
  .music-content { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(100px,1fr) minmax(55px,.45fr); }
  .music-playlist { border-left: 0; border-top: 1px solid #709c7d; }
  .music-list-heading { padding: 2px 8px; }
  .music-controls { gap: 4px; padding: 4px 6px; }
  .music-volume input { width: 55px; }
  .music-tabs { padding: 6px 12px; }
}

.poppi-mascot {
  position: fixed; top: 0; left: 0; width: 55px; height: 72.5px;
  z-index: 1200; pointer-events: none; user-select: none;
  will-change: transform;
}
.poppi-mascot[hidden] { display: none; }
.poppi-pet { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; pointer-events: auto; cursor: pointer; transform-origin: 50% 95%; animation: poppi-breathe 2.2s ease-in-out infinite; }
.poppi-facing { display: block; width: 100%; height: 100%; transform: scaleX(var(--poppi-direction, 1)); }
.poppi-facing img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; filter: drop-shadow(0 4px 2px #264b3333); }
.poppi-walking .poppi-pet { animation: poppi-walk .38s ease-in-out infinite; }
.poppi-happy .poppi-pet { animation: poppi-hop .5s ease-in-out 2; }
.poppi-pet { touch-action: none; cursor: grab; }
.poppi-dragging .poppi-pet { cursor: grabbing; animation: none; }
.poppi-leaving { animation: poppi-exit .733s both; }
.poppi-leaving .poppi-pet { pointer-events: none; animation: none; }
@keyframes poppi-exit {
  0% { transform: translate3d(var(--poppi-exit-x),var(--poppi-exit-y),0) scale(1); animation-timing-function: ease-out; }
  16% { transform: translate3d(var(--poppi-exit-x),var(--poppi-exit-y),0) scale(1.1,.88); animation-timing-function: ease-out; }
  42% { transform: translate3d(var(--poppi-exit-x),var(--poppi-exit-top),0) scale(.97,1.04) rotate(-8deg); animation-timing-function: cubic-bezier(.5,0,.9,.45); }
  100% { transform: translate3d(var(--poppi-exit-x),var(--poppi-exit-bottom),0) rotate(18deg); }
}
.poppi-bubble { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); padding: 6px 10px; border: 1px solid #9ac8a7; border-radius: 9px; background: #f3fbf4; color: #35563e; font: 12px "Malgun Gothic",sans-serif; white-space: nowrap; opacity: 0; }
.poppi-speaking .poppi-bubble { opacity: 1; }
.poppi-sparkle { position: absolute; top: 3px; left: -10px; color: #e6b82e; font-size: 28px; opacity: 0; }
.poppi-happy .poppi-sparkle { animation: poppi-sparkle .65s ease-out 2; }
@keyframes poppi-breathe { 50% { transform: scale(1.025,.98) rotate(-1deg); } }
@keyframes poppi-walk { 0%,100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-7px) scale(1.02,.98); } }
@keyframes poppi-hop { 0%,100% { transform: translateY(0) scale(1,1); } 20% { transform: scale(1.08,.91); } 55% { transform: translateY(-22px) rotate(-7deg) scale(.97,1.04); } 80% { transform: scale(1.07,.94); } }
@keyframes poppi-sparkle { 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-8px,-25px) rotate(35deg); } }
@media (max-width:600px) { .poppi-mascot { width: 43px; height: 57px; } }
@media (prefers-reduced-motion:reduce) { .poppi-mascot .poppi-pet, .poppi-mascot .poppi-sparkle { animation: none; } }
@media (prefers-reduced-motion:reduce) {
  .poppi-leaving { animation: poppi-exit-fade .15s both; }
  @keyframes poppi-exit-fade { to { opacity: 0; } }
}

.page-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(40px, 25vw, 25dvh);
  height: auto;
  opacity: 0.3;
  z-index: 2147483647;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.effect-definitions {
  position: absolute;
  pointer-events: none;
}

html[data-windows7="true"] {
  filter: url("#mosaic-effect") url("#low-quality-effect");
}

html[data-windows7="true"],
html[data-windows7="true"] * {
  cursor: url("cursors/normal.cur"), default;
}

html[data-windows7="true"] a,
html[data-windows7="true"] a *,
html[data-windows7="true"] button:not(:disabled),
html[data-windows7="true"] button:not(:disabled) *,
html[data-windows7="true"] .settings-option,
html[data-windows7="true"] .settings-option * {
  cursor: url("cursors/link.cur"), pointer;
}

html[data-windows7="true"] button:disabled,
html[data-windows7="true"] button:disabled *,
html[data-windows7="true"] input:disabled {
  cursor: url("cursors/unavailable.cur"), not-allowed;
}

@font-face {
  font-family: "Product Sans";
  src: url("product-sans.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.home {
  height: calc(100dvh - 98px);
  overflow-y: auto;
  color: #333;
  font-family: Arial, "Malgun Gothic", sans-serif;
  background: #fff;
  border-radius: 0 0 22px 22px;
}

.nungle {
  margin: 0;
  font-family: "Product Sans", sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  color: #7bba8d;
}

body {
  margin: 0;
  padding-top: 84px;
  padding-right: 10px;
  padding-bottom: 14px;
  padding-left: 10px;
  background: url("frame.png") center / 100% 100% fixed no-repeat;
}

body::after {
  content: none;
  position: fixed;
  inset: 0;
  background: url("frame.png") center / 100% 100% no-repeat;
  clip-path: polygon(evenodd,
    0 0, 100% 0, 100% 100%, 0 100%, 0 0,
    10px 50px, 10px calc(100% - 14px),
    calc(100% - 10px) calc(100% - 14px),
    calc(100% - 10px) 50px, 10px 50px);
  pointer-events: none;
  z-index: 999;
}

.window-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 1000;
  -webkit-user-select: none;
  user-select: none;
}

.window-top img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.window-top-background {
  display: none;
}

#settings-toggle {
  cursor: pointer;
}

#settings-toggle:hover,
#settings-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.settings-panel {
  -webkit-user-select: none;
  user-select: none;
  border: 0.5px solid #000;
  position: fixed;
  top: 50px;
  right: 12px;
  z-index: 1100;
  width: min(360px, calc(100vw - 24px));
  height: min(300px, calc(100dvh - 62px));
  border-radius: 0;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  color: #111;
  font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
}

.settings-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
}

.settings-option:hover,
.settings-option:focus-within {
  background: #d7eadb;
  color: #000;
}

.language-option {
  width: 100%;
  min-height: 26px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
}

.settings-status {
  margin: 6px 10px;
  font-size: 12px;
}

.theme-check {
  appearance: none;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.theme-check::before {
  content: "✓";
  font-size: 16px;
  line-height: 1;
  visibility: hidden;
}

.theme-check:checked::before {
  visibility: visible;
}

.theme-check:focus-visible {
  outline: 2px solid #4e9764;
  outline-offset: 3px;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] .home {
  background: #181d1a;
  color: #eee;
}

html[data-theme="dark"] .browser-bookmarks {
  background: #293e30;
}

html[data-theme="dark"] .bookmark {
  color: #eee;
}

html[data-theme="dark"] .bookmark:hover,
html[data-theme="dark"] .bookmark:focus-visible {
  background: #ffffff18;
}

html[data-theme="dark"] .browser-address {
  background: rgba(22, 35, 27, 0.9);
  color: #edf5ef;
}

html[data-theme="dark"] .address-actions button {
  color: #b1c9b9;
}

html[data-theme="dark"] .settings-panel {
  background: #242b26;
  color: #eee;
}

.window-actions {
  position: absolute;
  top: 1px;
  right: 12px;
  width: 96px;
  user-select: none;
}

.window-caption-buttons,
.window-utility-buttons {
  display: flex;
  justify-content: flex-end;
}

.window-actions button {
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  opacity: 1;
  text-shadow: 0 1px 2px #365442;
  cursor: default;
  font-family: Arial, sans-serif;
}

.window-caption-buttons button {
  width: 27px;
  height: 19px;
  border: 1px solid #6c8b79;
  background: linear-gradient(#e2f0e7, #97b4a2 50%, #6e917e 51%, #a6c4b0);
  font-size: 15px;
  box-shadow: inset 0 0 1px 1px #ffffff80;
}

.window-caption-buttons button + button {
  border-left: 0;
}

.window-caption-buttons button:first-child {
  border-radius: 0 0 0 4px;
}

.window-caption-buttons .window-close {
  width: 42px;
  border-radius: 0 0 4px 0;
  border-color: #885e50;
  background: linear-gradient(#e8b4a4, #bd7260 50%, #a74330 51%, #ca8b70);
  font-size: 20px;
}

.window-utility-buttons {
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
  margin-top: 6px;
}

.window-utility-buttons button {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
}

.window-utility-buttons svg {
  width: 15px;
  height: 15px;
  fill: #fff;
  stroke: #6b8a77;
  stroke-width: 1;
  filter: drop-shadow(0 1px 1px #36544280);
}

.window-brand {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 16px;
}

.window-logo {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.window-title {
  font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 16px;
  line-height: 50px;
  color: #172d20;
  white-space: nowrap;
}

.browser-chrome {
  position: fixed;
  top: 50px;
  left: 10px;
  right: 10px;
  z-index: 1001;
  height: 34px;
  background: #383838;
  color: #eee;
  font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
}

.browser-toolbar {
  position: fixed;
  top: 0;
  left: 10px;
  right: 120px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 50px;
  padding: 4px 12px;
}

.browser-controls {
  transform: translate(4px, 3px);
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  color: #254a34;
  pointer-events: none;
  user-select: none;
}

.browser-controls img {
  display: block;
  object-fit: contain;
  clip-path: circle(40%);
  -webkit-user-drag: none;
}

.nav-back {
  width: 44px;
  height: 44px;
}

.nav-forward {
  width: 36px;
  height: 36px;
  transform: scaleX(-1);
}

.browser-chrome svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.browser-controls .muted {
  color: #888;
}

.browser-address {
  border: 0.5px solid #000;
  transform: translateY(6px);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 0 1 auto;
  height: 26px;
  padding: 0 14px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.65);
  color: #254a34;
  font-size: 16px;
}

.browser-address circle {
  fill: none;
}

.browser-tabs {
  display: flex;
  align-items: flex-end;
  min-width: 80px;
  flex: 0 1 244px;
  transform: translateY(8.5px);
  user-select: none;
}

.browser-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  height: 32px;
  padding: 0 5px 0 7px;
  border: 0.5px solid #748e7d;
  border-radius: 0;
  background: linear-gradient(#fff, #e3f1e7 55%, #c3decb);
  box-shadow: inset 0 1px 1px #fff;
  color: #203327;
  font-size: 12px;
}

.browser-tab img {
  flex-shrink: 0;
  pointer-events: none;
  -webkit-user-drag: none;
}

.browser-tab span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-tab button {
  border: 0;
  background: transparent;
  color: #6e8174;
  opacity: 1;
  font-size: 18px;
  padding: 0 2px;
}

.browser-new-tab {
  width: 24px;
  height: 32px;
  flex-shrink: 0;
  border: 0.5px solid #748e7d;
  border-left: 0;
  border-radius: 0;
  background: linear-gradient(#e2f1e7, #95b7a0);
}

html[data-theme="dark"] .browser-tab {
  background: linear-gradient(#43594a, #293e30);
  color: #eee;
  box-shadow: inset 0 1px 1px #ffffff30;
}

.address-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  user-select: none;
}

.address-actions button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #667b70;
  opacity: 1;
  cursor: default;
}

.address-actions .address-dropdown {
  width: 14px;
}

.address-actions svg {
  width: 16px;
  height: 16px;
}

.browser-address span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-bookmarks {
  background: #c3eecd;
  color: #000;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  overflow-x: auto;
}

.bookmark {
  -webkit-user-select: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  color: #000;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.bookmark:hover,
.bookmark:focus-visible {
  background: rgba(0, 0, 0, 0.1);
}

.bookmark img {
  -webkit-user-drag: none;
  pointer-events: none;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.search-header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 28px 18px;
}

.search-form {
  display: flex;
  align-items: center;
  width: 632px;
  min-width: 0;
  height: 44px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px #0002;
  background: #fff;
}

.search-form:focus-within,
.search-form:hover { box-shadow: 0 2px 7px #0003; }
.search-form input {
  width: 100%; min-width: 0; padding: 0 16px;
  border: 0; outline: 0; background: transparent; color: inherit;
  font: 16px Arial, sans-serif;
}
.search-form button {
  flex-shrink: 0; width: 42px; height: 38px; border: 0;
  background: transparent; color: #7bba8d; font-size: 25px; cursor: pointer;
}
.search-form #clear-search { color: #999; font-size: 21px; }
.search-form svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.search-categories {
  display: flex; gap: 24px; padding-left: 184px;
  border-bottom: 1px solid #ebebeb;
}
.search-categories button,
.search-categories a {
  padding: 14px 3px; border: 0; border-bottom: 3px solid transparent;
  background: transparent; color: #777; font: 13px Arial, "Malgun Gothic", sans-serif; cursor: pointer;
  text-decoration: none;
}
.search-categories button.active { border-bottom-color: #7bba8d; color: #4e8d60; font-weight: bold; }
.results-layout {
  display: grid; grid-template-columns: minmax(0, 632px) 320px;
  gap: 64px; max-width: 1016px; margin: 0 30px 0 184px;
}
.result-count { margin: 17px 0 25px; font-size: 13px; color: #808080; }
.search-result { margin: 0 0 29px; }
.search-result[hidden] { display: none; }
.result-link { display: inline-block; max-width: 100%; text-decoration: none; color: #1a0dab; }
.result-link:hover { text-decoration: underline; }
.search-result h2 { margin: 0 0 5px; font-size: 18px; font-weight: normal; line-height: 1.35; }
.result-url { color: #006621; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.result-url span { margin-left: 5px; font-size: 10px; }
.result-url #namu-result-url { margin-left: 0; font-size: inherit; }
.search-result p { margin: 4px 0 0; font-size: 13px; line-height: 1.7; }
.result-sitelinks { display: flex; gap: 22px; margin-top: 9px; }
.result-sitelinks a { font-size: 13px; color: #1a0dab; text-decoration: none; }
.result-sitelinks a:hover { text-decoration: underline; }
.knowledge-panel { align-self: start; margin-top: 52px; border: 1px solid #ddd; }
.knowledge-cover {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  height: 164px; background: #edf5ef; color: #7bba8d; font: 35px "Product Sans", sans-serif;
}
.knowledge-cover img { width: 90px; height: 90px; object-fit: contain; }
.knowledge-cover:has(.knowledge-photo) { height: auto; aspect-ratio: 5 / 3; overflow: hidden; }
.knowledge-cover .knowledge-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.knowledge-body { padding: 20px; }
.knowledge-body h2 { font-size: 27px; font-weight: normal; margin: 0 0 5px; }
.knowledge-subtitle { margin: 0 0 20px; color: #777; font-size: 13px; }
.knowledge-body > p:not(.knowledge-subtitle) { font-size: 13px; line-height: 1.8; }
.knowledge-detail { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; font-size: 12px; }
.search-footer { margin-top: 36px; padding: 20px 30px 20px 184px; background: #f2f2f2; border-top: 1px solid #e4e4e4; color: #777; font-size: 12px; }
.search-footer span { padding: 0 12px; }
.search-footer a { color: inherit; text-decoration: none; }
.search-footer a:hover { text-decoration: underline; }
.search-footer button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.search-footer button:hover { text-decoration: underline; }
.patch-note-dialog { width: min(540px,calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0 9px 12px; border: 0; border-radius: 22px 22px 16px 16px; background: url("frame.png") center / 100% 100% no-repeat; color: #263e2e; box-shadow: 0 6px 24px #0005; }
.patch-note-dialog::backdrop { background: #0004; }
.patch-note-titlebar { display: flex; align-items: center; justify-content: space-between; height: 36px; padding-left: 9px; user-select: none; }
.patch-note-titlebar h2 { margin: 0; font-size: 13px; font-weight: normal; }
.patch-note-titlebar button { align-self: flex-start; width: 40px; height: 23px; border: 1px solid #886d62; border-radius: 0 0 4px 4px; background: linear-gradient(#e8b4a4,#bd7260 50%,#a74330 51%,#ca8b70); color: #fff; font-size: 20px; cursor: pointer; }
.patch-note-body { padding: 20px 24px; max-height: calc(100dvh - 112px); overflow: auto; background: #fff; border: .5px solid #6c8b79; font: 13px/1.7 "Malgun Gothic",Arial,sans-serif; scrollbar-width: thin; scrollbar-color: #7bba8d #eef5f0; }
.patch-note-body time { color: #758879; font-size: 12px; }
.patch-note-body h3 { margin: 18px 0 8px; color: #527e5f; font-size: 15px; }
.patch-note-body ul { margin: 0; padding-left: 19px; }
.patch-note-body li + li { margin-top: 7px; }
html[data-theme="dark"] .patch-note-body { background: #202823; color: #dce7df; }
html[data-theme="dark"] .patch-note-body h3 { color: #a4cbae; }
.video-results { grid-column: 1 / -1; max-width: 900px; }
.video-results[hidden] { display: none; }
.video-result { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 20px; margin-bottom: 25px; }
.video-thumbnail { position: relative; padding: 0; border: 0; background: #111; aspect-ratio: 16 / 9; cursor: pointer; overflow: hidden; }
.video-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-thumbnail span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 30px; text-shadow: 0 1px 8px #000; }
.video-title { padding: 0; border: 0; background: transparent; color: #1a0dab; font: 18px Arial,"Malgun Gothic",sans-serif; text-align: left; cursor: pointer; }
.video-title:hover { text-decoration: underline; }
.video-title { text-decoration: none; }
.video-meta { color: #006621; font-size: 12px; line-height: 1.6; }
.video-description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.6; }
#video-player-area { position: relative; padding: 30px 16px 16px; margin-bottom: 25px; background: #202020; }
#video-player iframe { width: 100%; aspect-ratio: 16 / 9; min-height: 200px; border: 0; display: block; }
#video-close { position: absolute; top: 0; right: 8px; color: #fff; font-size: 26px; border: 0; background: transparent; cursor: pointer; }
#video-original { display: inline-block; margin-top: 12px; color: #ccc; font-size: 13px; }
html[data-theme="dark"] .video-title { color: #a6b9f6; }
html[data-theme="dark"] .video-meta { color: #9dc6a9; }
@media(max-width:600px) {
  .video-result { grid-template-columns: 130px minmax(0,1fr); gap: 12px; }
  .video-title { font-size: 15px; }
}
.results-layout.images-view {
  display: block;
  max-width: none;
  margin: 0 28px;
}
.gallery-toolbar { display: flex; align-items: center; gap: 16px; padding-top: 20px; font-size: 13px; }
.gallery-toolbar a { color: #4e8d60; text-decoration: none; }
#gallery-source { display: flex; flex-wrap: wrap; gap: 14px; }
#gallery-refresh { margin-left: auto; flex-shrink: 0; }
.image-preview {
  position: relative;
  display: flex;
  flex: 0 0 100%;
  gap: 32px;
  width: 100%;
  padding: 30px;
  background: #202020;
  color: #ddd;
  box-shadow: inset 0 2px 8px #0008;
}
.image-preview[hidden] { display: none; }
.preview-image-area { display: flex; justify-content: center; align-items: center; flex: 1; min-width: 0; }
.preview-image-area img { display: block; max-width: 100%; max-height: 58dvh; object-fit: contain; }
.preview-details { align-self: center; width: 300px; max-width: 38%; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.preview-account { color: #fff; text-decoration: none; font-size: 18px; }
#preview-text { white-space: pre-wrap; max-height: 220px; overflow-y: auto; }
#preview-text {
  padding-right: 12px;
  scrollbar-width: thin;
  scrollbar-color: #7bba8d #303730;
}
#preview-text::-webkit-scrollbar { width: 7px; }
#preview-text::-webkit-scrollbar-track { background: #303730; border-radius: 4px; }
#preview-text::-webkit-scrollbar-thumb {
  background: #7bba8d;
  border: 1px solid #303730;
  border-radius: 4px;
}
#preview-text::-webkit-scrollbar-thumb:hover { background: #a0cfad; }
#preview-text::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
#preview-dimensions { color: #999; font-size: 12px; }
.preview-post { display: inline-block; margin-top: 12px; padding: 7px 16px; border: 1px solid #666; background: #333; color: #fff; text-decoration: none; }
.preview-post:hover { background: #484848; }
.preview-close { position: absolute; top: 6px; right: 10px; border: 0; background: transparent; color: #bbb; font-size: 28px; cursor: pointer; }
.gallery-card.gallery-selected img { outline: 3px solid #7bba8d; outline-offset: -3px; }
@media (max-width: 740px) {
  .image-preview { flex-direction: column; padding: 28px 16px 18px; gap: 16px; }
  .preview-details { width: 100%; max-width: none; }
}
.gallery-toolbar button { border: 1px solid #ccc; padding: 5px 12px; background: #f7f7f7; color: inherit; font: inherit; cursor: pointer; }
.gallery-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px 14px; padding-bottom: 20px; }
.gallery-card { flex: 0 0 auto; width: 180px; max-width: 100%; min-width: 0; text-decoration: none; color: inherit; }
.gallery-card img { display: block; width: 100%; height: 220px; object-fit: contain; background: #edf5ef; }
.gallery-card:hover img { box-shadow: 0 2px 7px #0004; }
.gallery-card > span { display: block; margin-top: 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.gallery-card small { display: block; margin-top: 4px; color: #777; font-size: 11px; }
html[data-theme="dark"] .gallery-toolbar button { background: #293e30; border-color: #46504a; }
#gallery-source .gallery-source-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: #4e8d60;
  user-select: none;
}
#gallery-source .gallery-source-toggle[aria-pressed="false"] { color: #999; }
#gallery-source .gallery-source-toggle:hover { text-decoration: underline; }
#gallery-source .gallery-source-toggle:focus-visible { outline: 1px solid #7bba8d; outline-offset: 4px; }
html[data-theme="dark"] #gallery-source .gallery-source-toggle { color: #9dc6a9; }
html[data-theme="dark"] #gallery-source .gallery-source-toggle[aria-pressed="false"] { color: #888; }
html[data-theme="dark"] .gallery-card img { background: #293e30; }
html[data-theme="dark"] .search-form { background: #242b26; border-color: #46504a; }
html[data-theme="dark"] .search-categories,
html[data-theme="dark"] .knowledge-panel { border-color: #46504a; }
html[data-theme="dark"] .result-link,
html[data-theme="dark"] .result-sitelinks a { color: #a6b9f6; }
html[data-theme="dark"] .result-url { color: #9dc6a9; }
html[data-theme="dark"] .knowledge-cover { background: #293e30; }
html[data-theme="dark"] .search-footer { background: #242b26; border-color: #46504a; }
@media (max-width: 1100px) {
  .results-layout { gap: 28px; margin-left: 40px; grid-template-columns: minmax(0, 1fr) 280px; }
  .search-categories { padding-left: 40px; }
  .search-footer { padding-left: 40px; }
}
@media (max-width: 740px) {
  .search-header { gap: 12px; padding: 22px 16px 14px; flex-wrap: wrap; }
  .search-header .nungle { font-size: 30px; }
  .search-form { width: 100%; }
  .search-categories { padding-left: 16px; }
  .results-layout { display: block; margin: 0 16px; }
  .knowledge-panel { margin: 30px 0; }
  .search-footer { padding-left: 16px; }
}
