:root {
  --paper: #f3fbff;
  --paper-2: #dff3fd;
  --card: #ffffff;
  --ink: #14304d;
  --ink-2: #47607a;
  --line: #c5dcea;
  --red: #d9141f;
  --red-dark: #ad0f18;
  --green: #245640;
  --serif: "Gowun Batang", "Apple SD Gothic Neo", "Noto Serif KR", serif;
  --sans: "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.25; word-break: keep-all; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }

.top { position: fixed; z-index: 3; left: 12px; top: 10px; display: flex; flex-direction: column; padding: 3px 12px; background: rgba(255, 255, 255, .93); border: 1.5px solid var(--ink); border-radius: 8px; line-height: 1.25; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.top-right { font-size: .76rem; }
.online { color: var(--ink-2); white-space: nowrap; }
.online b { color: var(--red); font-weight: 400; }
.link-btn { background: none; border: 0; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }


/* SVG 공용 원본은 화면에 나오지 않지만 display:none이면 참조가 끊깁니다. */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 버튼 */
.btn { border-radius: 6px; border: 1.5px solid var(--ink); padding: 9px 16px; background: var(--card); white-space: nowrap; }
.btn:hover { background: var(--paper-2); }
.btn.primary { background: var(--red); border-color: var(--red-dark); color: #fffaf0; }
.btn.primary:hover { background: var(--red-dark); }
.btn.primary:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn.danger.armed { background: var(--red); color: #fffaf0; }

/* 3D 화면: 왼쪽은 거리, 오른쪽은 꾸미기 메뉴입니다. */
#view { display: flex; height: 100dvh; }
.stage3d { position: relative; flex: 1; min-width: 0; overflow: hidden; background: #a8d8f5; container: street / inline-size; }
.world-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.dock { flex: none; width: 372px; height: 100%; overflow-y: auto; padding: 12px; background: var(--paper); border-left: 2px solid var(--ink); }
.tabs { display: flex; margin-bottom: 10px; }
.tabs button { flex: 1; min-height: 42px; background: var(--card); border: 1.5px solid var(--ink); }
.tabs button:first-child { border-radius: 6px 0 0 6px; }
.tabs button:not(:first-child) { border-left-width: 0; }
.tabs button:last-child { border-radius: 0 6px 6px 0; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fffaf0; }
.chips { position: absolute; z-index: 2; left: 150px; right: 12px; top: 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip { flex: none; padding: 6px 12px; min-height: 36px; border-radius: 18px; border: 1.5px solid var(--ink); background: rgba(255, 255, 255, .93); font-size: .84rem; white-space: nowrap; }
.chip b { font-weight: 400; color: var(--ink-2); }
.chip small { font-size: .74rem; color: var(--ink-2); }
.chip-busy small { color: #178a3e; }
.chip[aria-pressed="true"] small { color: #fff; }
.chip-full small { color: var(--red); font-weight: 700; }
.hangbar.tree-full { color: var(--red); }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red-dark); color: #fff; }
.chip[aria-pressed="true"] b { color: #ffe3e3; }
.bar { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: rgba(255, 255, 255, .93); border: 1.5px solid var(--ink); border-radius: 10px; }
.bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.round-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 1.05rem; line-height: 1; }
.dock-toggle { margin-left: auto; padding: 7px 12px; min-height: 40px; }
.round-btn.on { background: #ffe680; box-shadow: inset 0 0 0 2px #e0b400; }
.admin-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 8px; border-radius: 14px; background: #fff4f2; box-shadow: inset 0 0 0 1px #f2c4bd; }
.admin-pop .btn.armed { background: #d9141f; color: #fff; }
.panel h2 small { margin-left: 6px; font-family: var(--sans); font-size: .85rem; font-weight: 400; color: var(--ink-2); }
.twinkle { animation: twinkle 2.2s ease-in-out infinite; }
@keyframes swing {
  0% { transform: translateY(-46px) rotate(-14deg); opacity: 0; }
  35% { transform: translateY(0) rotate(11deg); opacity: 1; }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(3deg); }
  100% { transform: rotate(0); }
}
@keyframes twinkle { 50% { opacity: .15; } }

.hangbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .9rem; line-height: 1.35; color: var(--ink-2); word-break: keep-all; }
.hangbar .btn { padding: 5px 11px; font-size: .86rem; }
.hangbar strong { color: var(--ink); font-weight: 400; }

.panel { background: var(--card); border: 1.5px solid var(--ink); border-radius: 8px; padding: 20px; }
.look-panel .panel-label { margin-top: 10px; }
.look-panel .pick-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.look-panel .pick svg { height: 52px; }
.swatch-wheel { position: relative; background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.swatch-wheel[aria-pressed="true"]::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: var(--picked); border: 1.5px solid #fff; }
.wheel-pop { position: fixed; z-index: 25; width: 240px; max-width: calc(100vw - 16px); padding: 16px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 0 10px 28px rgba(20, 48, 77, .28); }
.wheel-box { position: relative; width: 100%; aspect-ratio: 1; }
.wheel-box canvas { display: block; width: 100%; height: 100%; border-radius: 50%; cursor: crosshair; touch-action: none; }
.wheel-marker { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 0 0 1.5px var(--ink); pointer-events: none; }
.wheel-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
.wheel-num { width: 68px; margin-left: auto; padding: 4px 8px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: 16px; }
.wheel-light { display: block; width: 100%; height: 14px; margin: 10px 0 4px; border-radius: 7px; border: 1px solid var(--line); appearance: none; -webkit-appearance: none; cursor: pointer; }
.wheel-light::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 1px 3px rgba(20, 48, 77, .4); }
.wheel-light::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.wheel-preview { width: 30px; height: 30px; flex: none; border-radius: 6px; border: 1.5px solid var(--line); }
.wheel-pop #wheelHex { flex: 1; min-width: 0; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; font-size: 16px; }
.wheel-pop .btn { padding: 6px 10px; font-size: .86rem; }
.look-swatches { gap: 6px; }
.look-swatches .swatch { width: 28px; height: 28px; }
.look-swatches .swatch-default { width: auto; padding: 0 10px; border-radius: 14px; background: #fff; font-size: .78rem; color: var(--ink); }
.look-panel .size-field { max-width: 420px; }
.look-note { margin: 12px 0 6px; font-size: .84rem; color: var(--ink-2); word-break: keep-all; }
.panel h2 { font-size: 1.15rem; margin: 0 0 10px; }
.panel-label { display: block; margin: 16px 0 6px; font-size: .92rem; color: var(--ink-2); }
.orn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.orn-opt { background: transparent; border: 1.5px solid transparent; border-radius: 6px; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; font-size: .72rem; line-height: 1.2; color: var(--ink-2); word-break: keep-all; min-height: 68px; }
.orn-opt { touch-action: none; }
.gar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gar-opt svg { width: 100%; height: 34px; }
.gar-opt { cursor: pointer; }
.orn-opt { cursor: grab; }
.drag-float { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; filter: drop-shadow(0 8px 8px rgba(20, 48, 77, .4)); }
.drag-float svg { display: block; width: 100%; height: 100%; }
.drag-float.will-remove svg { opacity: .7; }
.drag-float.over-tree svg { opacity: 0; }
.drag-badge { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); background: var(--red); color: #fff; font-size: .78rem; line-height: 1; padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.reset-row { flex: 0 1 auto; min-width: 0; }
.reset-row .btn { padding: 6px 12px; font-size: .86rem; white-space: normal; word-break: keep-all; }
.reset-row:empty { display: none; }
.btn:disabled { opacity: .45; cursor: default; }
.orn-opt svg { width: 38px; height: 38px; display: block; margin-bottom: 2px; }
.orn-opt:hover { background: var(--paper-2); }
.orn-opt[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); color: var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(20, 48, 77, .45); padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.field { display: block; margin-top: 14px; font-size: .92rem; color: var(--ink-2); }
.field input { display: block; width: 100%; margin-top: 5px; padding: 9px 11px; background: #ffffff; border: 1.5px solid var(--line); border-radius: 6px; color: var(--ink); font-size: 16px; }
.field input:focus { border-color: var(--ink); outline: none; }

.size-row { display: flex; align-items: flex-end; gap: 12px; }
.adjust-fields { flex: 1; min-width: 0; }
.size-field { min-width: 0; }
.field input.size-num { -moz-appearance: textfield; }
.field input.size-num { display: inline-block; width: 76px; margin: 0 4px 0 6px; padding: 4px 8px; }
.field input.size-range { padding: 0; border: 0; background: transparent; height: 32px; accent-color: var(--red); }
.size-preview { width: 72px; height: 72px; align-self: center; flex: none; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; }
.size-preview svg { display: block; width: 100%; height: 100%; }


/* 대화상자 */
.dlg { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 2px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--ink); padding: 24px; }
.dlg-small { width: min(380px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(20, 48, 77, .5); }
.dlg h2 { margin: 0 0 16px; font-size: 1.4rem; }
.dlg .field { margin-top: 0; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.pick { background: transparent; border: 1.5px solid var(--line); border-radius: 6px; padding: 6px 4px; font-size: .8rem; line-height: 1.25; word-break: keep-all; }
.pick svg { display: block; width: 100%; height: 66px; margin-bottom: 4px; }
.pick:hover { background: var(--paper-2); }
.pick[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.dlg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; justify-content: flex-end; }
.error { color: var(--red); margin: 12px 0 0; font-size: .92rem; }

/* 알림 */
.toasts { position: fixed; left: 50%; top: 66px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(420px, calc(100vw - 32px)); pointer-events: none; z-index: 20; }
.toast { background: var(--ink); color: #fffaf0; padding: 9px 16px; border-radius: 6px; font-size: .92rem; text-align: center; overflow-wrap: anywhere; animation: rise .22s ease-out; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 760px) {
  #view { flex-direction: column; }
  .dock { width: 100%; height: 46dvh; border-left: 0; border-top: 2px solid var(--ink); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .chips { left: 12px; top: 58px; }
  .panel { padding: 12px; }
  .dlg { padding: 18px; }
}
/* 넓은 화면: 메뉴가 옆에 있고 조정 칸도 항상 보입니다. */
.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.panel-head .adjust-btn { margin-left: auto; }
.icon-btn { padding: 5px 10px; min-height: 36px; font-size: .86rem; }
.btn.danger.muted { border-color: var(--line); color: var(--ink-2); }
.adjust-btn { display: none; }
.segment { display: none; }
.look-head { flex-wrap: wrap; margin-bottom: 0; }
.strip-label { margin-top: 12px; }
.item-pop { position: fixed; z-index: 15; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 8px; font-size: .86rem; transform: translate(-50%, calc(-100% - 14px)); box-shadow: 0 6px 18px rgba(20, 48, 77, .25); white-space: nowrap; }
.pot-none { margin: 6px 0; font-size: .84rem; color: var(--ink-2); word-break: keep-all; }
.item-pop .btn { padding: 4px 12px; border-color: var(--red); color: var(--red); }
/* 거리 화면이 좁을 때 */
@container street (max-width: 640px) {
  .bar { left: 8px; right: 8px; bottom: 8px; padding: 8px; gap: 6px; }
  .hangbar { font-size: .8rem; }
  .bar-row { flex-wrap: nowrap; gap: 5px; }
  .round-btn { width: 36px; height: 36px; flex: none; }
  .dock-toggle { flex: none; padding: 5px 9px; min-height: 36px; font-size: .84rem; }
  .zoom-btn { display: none; }
  #view:has(#dock:not([hidden])) .hangbar.plain { display: none; }
}
/* 휴대폰: 맨 아래 탭 한 줄, 누르면 한 줄 목록이 열리고 손가락으로 옆으로 넘깁니다. */
@media (max-width: 760px) {
  .brand { display: none; }
  .top { padding: 2px 10px; }
  .chips { left: 8px; right: 8px; top: 32px; }
  .chip { min-height: 32px; padding: 4px 10px; font-size: .8rem; }
  .bar { left: 8px; right: 8px; bottom: 8px; padding: 0; gap: 6px; background: none; border: 0; pointer-events: none; align-items: flex-end; }
  .bar > * { pointer-events: auto; }
  .bar-row { flex-wrap: nowrap; gap: 6px; }
  .round-btn { width: 38px; height: 38px; background: rgba(255, 255, 255, .93); }
  .dock-toggle, .zoom-btn { display: none; }
  .hangbar.plain { display: none; }
  .hangbar { width: 100%; padding: 6px 8px; background: rgba(255, 255, 255, .95); border: 1.5px solid var(--ink); border-radius: 8px; font-size: .8rem; }
  .hangbar .btn { padding: 4px 9px; font-size: .8rem; }
  .dock { flex: none; display: flex; flex-direction: column-reverse; width: 100%; height: auto; max-height: 52dvh; padding: 0; border-left: 0; border-top: 2px solid var(--ink); overflow: hidden; }
  .tabs { flex: none; margin: 0; padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1.5px solid var(--line); }
  .tabs button { min-height: 46px; border: 0; border-radius: 0 !important; background: transparent; font-size: .92rem; }
  .tabs button[aria-selected="true"] { background: var(--ink); color: #fffaf0; }
  #tabDeco, #tabLook, #tabMe, #tabNote { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
  .note-field textarea { min-height: 84px; }
  .panel { padding: 8px 10px; border: 0; border-radius: 0; }
  .panel h2, .strip-label, .look-part > .panel-label, .look-note { display: none; }
  .panel-head { margin-bottom: 6px; }
  .adjust-btn { display: block; }
  .adjust-btn[aria-pressed="true"] { background: var(--ink); color: #fffaf0; }
  .adjust-btn:disabled { opacity: .4; }
  .segment { display: flex; flex: none; }
  .segment button { min-height: 36px; padding: 4px 12px; background: var(--card); border: 1.5px solid var(--ink); font-size: .86rem; }
  .segment button:first-child { border-radius: 6px 0 0 6px; }
  .segment button:last-child { border-left: 0; border-radius: 0 6px 6px 0; }
  .segment button[aria-pressed="true"] { background: var(--ink); color: #fffaf0; }
  .look-head { flex-wrap: nowrap; margin-bottom: 6px; }
  .look-part { display: none; }
  .look-panel[data-part="tree"] .look-part[data-for="tree"], .look-panel[data-part="pot"] .look-part[data-for="pot"] { display: block; }
  /* 한 줄 목록 */
  .strip, .look-panel .pick-grid.strip { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x; scrollbar-width: none; padding-bottom: 2px; }
  .strip::-webkit-scrollbar, .swatches::-webkit-scrollbar { display: none; }
  .strip .orn-grid, .strip .gar-grid { display: contents; }
  .orn-opt { flex: none; width: 66px; min-height: 62px; touch-action: pan-x pinch-zoom; }
  .orn-opt svg { width: 32px; height: 32px; }
  .gar-opt { width: 84px; }
  .gar-opt svg { width: 100%; height: 30px; }
  .look-panel .pick { flex: none; width: 76px; padding: 4px; font-size: .74rem; }
  .look-panel .pick svg { height: 42px; }
  /* 조정 칸은 조정 버튼을 눌렀을 때만 */
  .adjust-panel { display: none; margin-top: 6px; }
  .adjust-open .adjust-panel { display: block; }
  .adjust-panel > .panel-label { display: none; }
  .swatches, .look-swatches { flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 4px 3px; scrollbar-width: none; touch-action: pan-x; }
  .swatch, .look-swatches .swatch { flex: none; width: 32px; height: 32px; }
  .look-swatches .swatch-default { width: auto; }
  .size-row { gap: 8px; }
  .size-preview { display: none; }
  .field { margin-top: 4px; font-size: .84rem; }
  .field input.size-range { height: 26px; }
  .me-name { margin-top: 0; margin-bottom: 6px; }
  #tabMe .panel-label { margin: 4px 0 2px; font-size: .84rem; }
  .dlg { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 부드러운 장난감 느낌: 테두리 대신 흰 알약 모양과 옅은 그림자 */
:root {
  --accent: #ec8a5e;
  --accent-dark: #d97446;
  --soft: 0 3px 12px rgba(120, 85, 60, .16);
  --ink: #4d4037;
  --ink-2: #8a7a6d;
  --line: #eadfd3;
  --paper: #fbf5ee;
  --paper-2: #f6ece0;
  --red: #e4664f;
  --red-dark: #cf5540;
  --serif: "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
.btn, .chip, .top, .bar, .panel, .round-btn, .segment button, .pick, .orn-opt, .item-pop, .dlg, .wheel-pop { border: 0; }
.top { padding: 5px 15px; border-radius: 18px; background: rgba(255, 255, 255, .95); box-shadow: var(--soft); }
.brand { font-weight: 700; }
.chip { min-height: 34px; padding: 5px 13px; border-radius: 17px; background: rgba(255, 255, 255, .95); box-shadow: var(--soft); font-weight: 700; }
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; }
.chip small { font-weight: 400; }
.chip-busy small { color: var(--accent-dark); }
.btn { border-radius: 16px; background: #fff; box-shadow: var(--soft); font-weight: 700; }
.btn:hover { background: var(--paper); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { background: #fff; }
.btn.danger { background: #fff; color: var(--red); }
.btn.danger.muted { color: var(--ink-2); }
.btn.danger.armed { background: var(--red); color: #fff; }
.round-btn { border-radius: 50%; background: rgba(255, 255, 255, .96); }
.bar { border-radius: 22px; background: rgba(255, 255, 255, .92); box-shadow: var(--soft); }
.dock { background: var(--paper); border-left: 0; box-shadow: -2px 0 14px rgba(120, 85, 60, .12); }
.panel { background: #fff; border-radius: 20px; box-shadow: var(--soft); }
.tabs { gap: 4px; padding: 4px; border-radius: 22px; background: #fff; box-shadow: var(--soft); }
.tabs button, .tabs button:first-child, .tabs button:last-child, .tabs button:not(:first-child) { border: 0; border-radius: 18px; background: transparent; font-weight: 700; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
.orn-opt { border-radius: 16px; }
.orn-opt:hover { background: var(--paper); }
.orn-opt[aria-pressed="true"] { background: #fde6d8; color: var(--ink); box-shadow: inset 0 0 0 2px var(--accent); }
.pick { border-radius: 16px; background: var(--paper); }
.pick[aria-pressed="true"] { background: #fde6d8; box-shadow: inset 0 0 0 2px var(--accent); }
.segment { padding: 3px; border-radius: 16px; background: var(--paper-2); }
.segment button, .segment button:first-child, .segment button:last-child { border: 0; border-radius: 13px; background: transparent; font-weight: 700; color: var(--ink-2); }
.segment button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(120, 85, 60, .2); }
.swatch { border: 0; box-shadow: 0 1px 4px rgba(120, 85, 60, .28); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.field input { border-radius: 14px; border-color: var(--line); }
.size-range { accent-color: var(--accent); }
.toast { border-radius: 18px; background: rgba(77, 64, 55, .92); }
.item-pop { border-radius: 18px; box-shadow: 0 4px 16px rgba(120, 85, 60, .28); }
.item-pop .btn { background: var(--accent); color: #fff; box-shadow: none; }
.dlg, .wheel-pop { border-radius: 24px; box-shadow: 0 10px 30px rgba(120, 85, 60, .25); }
@media (max-width: 760px) {
  .dock { border-top: 0; background: transparent; box-shadow: none; padding: 0 8px 8px; gap: 6px; }
  .tabs { padding: 4px; background: #fff; border: 0; border-radius: 22px; }
  .tabs button { min-height: 42px; border-radius: 18px !important; }
  .panel { border-radius: 20px; }
  #tabDeco, #tabLook, #tabMe { border-radius: 20px; }
  .hangbar { border: 0; border-radius: 16px; box-shadow: var(--soft); }
  #view { background: var(--paper); }
  .bar { background: none; box-shadow: none; }
}


/* ── 쪽지 ── */
.note-where { margin: 4px 0 0; font-weight: 700; color: var(--ink); word-break: keep-all; }
.note-field textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; min-height: 110px; resize: vertical; background: #fffdf7; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); font: 16px/1.5 'Gowun Dodum', system-ui, sans-serif; }
.note-field textarea:focus { border-color: var(--ink); outline: none; }
.note-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: .84rem; color: var(--ink-2); }
.note-send { width: 100%; margin-top: 10px; }
.note-card { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #ffe0ec; box-shadow: 0 1px 4px rgba(120, 85, 60, .15); }
.note-card p { flex: 1; margin: 0; white-space: pre-wrap; word-break: break-word; font-size: .92rem; }
.note-card .btn { flex: none; padding: 6px 10px; font-size: .84rem; }
.note-dlg { background: #fffaf0; }
.note-body { margin: 0; white-space: pre-wrap; word-break: break-word; font: 1.08rem/1.7 'Gowun Batang', serif; }
.note-author { margin: 16px 0 0; text-align: right; color: var(--ink-2); }
/* 탭이 네 개라 글자가 두 줄로 접히지 않게 */
.tabs button { white-space: nowrap; padding-inline: 6px; letter-spacing: -.02em; }
.note-info { margin: 12px 0 6px; font-size: .84rem; color: var(--ink-2); word-break: keep-all; }
