:root { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; color: #20383d; background: #e9f0ed; font-synthesis: none; }
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; }
body { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid #197d9b; outline-offset: 3px; }
.app { position: relative; width: min(100%, 430px); height: min(880px, calc(100dvh - 70px)); min-height: 720px; display: flex; flex-direction: column; overflow: hidden; border: 5px solid #213b40; border-radius: 28px; background: #f8faf5; box-shadow: 0 24px 65px #42635f31; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 15px 22px 5px; min-height: 65px; }
.brand { font-size: 42px; line-height: 1; font-weight: 950; }
.brand span { color: #ff6a55; }
.top-actions { display: flex; align-items: center; gap: 7px; }
.reset-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #c9d9d2; border-radius: 6px; background: #fff; color: #52716e; font-size: 25px; line-height: 1; }
.reset-button:hover { color: #20383d; }
.heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding: 5px 22px 12px; }
.eyebrow { margin: 0 0 2px; color: #68817f; font-size: 11px; font-weight: 800; }
h1 { margin: 0; font-size: 27px; line-height: 1.2; font-weight: 900; }
.member-badge { display: flex; align-items: baseline; gap: 3px; white-space: nowrap; color: #6b8783; font-size: 12px; }
.member-badge strong { color: #e95e4d; font-size: 22px; }
.member-icon { color: #6b8783; font-size: 8px; letter-spacing: 0; margin-right: 6px; }
.avatar-control { display: flex; align-items: center; gap: 6px; height: 36px; padding: 2px 8px; border: 1px solid #cbded4; border-radius: 6px; background: #fff; color: #20383d; font-size: 11px; font-weight: 850; white-space: nowrap; }
.avatar-control:hover { border-color: #89b2a1; background: #fcfff8; }
.avatar-indicator { position: relative; display: block; flex: 0 0 25px; height: 32px; overflow: hidden; border-radius: 6px; background: #eaf3e9; }
.avatar-indicator::before { position: absolute; content: ""; top: 3px; left: 8px; width: 10px; height: 12px; border-radius: 50%; background: var(--skin, #e5b187); box-shadow: 0 16px 0 5px var(--shirt, #ff735d); }
.avatar-indicator::after { position: absolute; content: ""; top: 2px; left: 7px; width: 12px; height: 6px; border-radius: 60% 60% 25% 25%; background: var(--hair, #333a3b); }
.building-wrap { position: relative; flex: 1; min-height: 0; overflow: hidden; border-top: 1px solid #d8e8e0; border-bottom: 1px solid #d8e8e0; background: #e9f4f0; }
.building-wrap svg { display: block; width: 100%; height: 100%; }
#lift-car { transition: transform 1.1s ease-in-out; }
.floor-label text { fill: #264449; font-size: 15px; font-weight: 850; }
.toast { position: absolute; top: 14px; left: 50%; max-width: calc(100% - 30px); padding: 8px 12px; border: 2px solid #20383d; border-radius: 6px; background: #fffdf7; box-shadow: 3px 4px 0 #20383d; transform: translate(-50%, -10px); opacity: 0; pointer-events: none; white-space: nowrap; color: #20383d; font-size: 12px; font-weight: 800; transition: transform .2s, opacity .2s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.bottom-panel { padding: 14px 20px 17px; background: #f8faf5; }
.panel-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.panel-line strong { font-size: 17px; }
.panel-line span { color: #778f89; font-size: 11px; }
.destination-group { display: flex; gap: 8px; }
.destination { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; justify-content: center; height: 43px; padding: 0 5px; border: 2px solid #cddbd2; border-radius: 6px; background: #fff; color: #536f6b; font-size: 12px; font-weight: 800; }
.destination.selected { border-color: #20383d; background: #eff9d9; color: #20383d; }
.destination-icon { font-size: 18px; line-height: 1; }
.primary { position: relative; display: block; width: 100%; height: 73px; margin-top: 12px; border: 3px solid #20383d; border-radius: 7px; box-shadow: 0 6px 0 #20383d; color: #20383d; font-size: 25px; line-height: 1; font-weight: 950; transition: transform .12s, box-shadow .12s; }
.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #20383d; }
.primary:active { transform: translateY(5px); box-shadow: 0 1px 0 #20383d; }
.primary span { position: absolute; top: 19px; right: 19px; font-size: 24px; font-weight: 500; }
.create { background: #c7ef42; }
.alert { background: #ff6c57; font-size: 28px; }
.location-rail { margin-top: 16px; padding-top: 11px; border-top: 1px solid #d6e3da; }
.rail-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rail-heading label { font-size: 13px; font-weight: 850; }
.rail-heading output { color: #3e695c; font-size: 13px; font-weight: 850; }
#location-range { display: block; width: calc(66.6667% + 28px); height: 30px; margin: 6px calc(16.6667% - 14px) 0; padding: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: grab; }
#location-range:active { cursor: grabbing; }
#location-range:disabled { opacity: .6; cursor: wait; }
#location-range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(to right, #c7ef42 var(--progress, 0%), #d7e3dc var(--progress, 0%)); box-shadow: inset 0 0 0 1px #a6bdb1; }
#location-range::-moz-range-track { height: 8px; border-radius: 8px; background: linear-gradient(to right, #c7ef42 var(--progress, 0%), #d7e3dc var(--progress, 0%)); box-shadow: inset 0 0 0 1px #a6bdb1; }
#location-range::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -10px; appearance: none; -webkit-appearance: none; border: 3px solid #20383d; border-radius: 50%; background: #ff735d; box-shadow: 0 2px 0 #20383d; }
#location-range::-moz-range-thumb { width: 23px; height: 23px; border: 3px solid #20383d; border-radius: 50%; background: #ff735d; box-shadow: 0 2px 0 #20383d; }
.rail-stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2px; }
.rail-column { display: flex; align-items: center; flex-direction: column; min-width: 0; }
.rail-stop { padding: 0 2px; border: 0; background: transparent; color: #829891; }
.floor-stop { display: grid; justify-items: center; gap: 1px; width: 100%; min-height: 31px; }
.floor-stop strong { font-size: 12px; line-height: 1.2; }
.floor-stop span { font-size: 10px; line-height: 1.2; white-space: nowrap; }
.floor-stop.selected { color: #20383d; }
.rail-connector { width: 2px; height: 9px; background: #b7cfc1; }
.elevator-stop { width: 48px; min-height: 25px; border: 1px solid #bbcec4; border-radius: 4px; background: #fff; font-size: 11px; font-weight: 800; }
.elevator-stop.selected { border-color: #20383d; background: #c7ef42; color: #20383d; }
.rail-stop:disabled { cursor: wait; }
.overlay[hidden], [hidden] { display: none !important; }
.overlay { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-end; }
.overlay-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: #1b303b99; }
.sheet { position: relative; z-index: 1; width: 100%; max-height: calc(100% - 35px); overflow-y: auto; padding: 20px 20px max(24px, env(safe-area-inset-bottom)); border-radius: 12px 12px 0 0; background: #fbfcf7; box-shadow: 0 -10px 34px #1a363535; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet h2 { margin: 0; font-size: 23px; font-weight: 900; }
.sheet-close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #ccdcd5; border-radius: 5px; background: #fff; color: #415f5a; font-size: 26px; line-height: 1; }
.avatar-preview { display: grid; place-items: center; height: 155px; margin: 10px 0 15px; border-radius: 7px; background: #e9f5ed; }
.avatar-preview svg { width: 155px; height: 155px; }
.customize-field { margin: 14px 0; }
.customize-field h3 { margin: 0 0 9px; font-size: 13px; font-weight: 850; }
.hair-options { display: flex; gap: 7px; }
.hair-options button { flex: 1; min-width: 0; min-height: 39px; padding: 4px; border: 2px solid #d7e2da; border-radius: 5px; background: #fff; color: #4d6863; font-size: 11px; font-weight: 800; }
.hair-options button.selected { border-color: #315b4d; background: #eaf6dc; color: #20383d; }
.swatch-row { display: flex; gap: 12px; }
.swatch { width: 38px; height: 38px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #a8bbb2; }
.swatch.selected { box-shadow: 0 0 0 3px #20383d; }
.save-avatar { width: 100%; height: 55px; margin-top: 8px; border: 2px solid #20383d; border-radius: 6px; background: #c7ef42; color: #20383d; font-size: 16px; font-weight: 900; }
.preview-note { margin: 12px 0 0; color: #58716d; font-size: 11px; text-align: center; }
.notification-button { min-height: 36px; padding: 0 9px; border: 1px solid #20383d; border-radius: 6px; background: #fff; color: #20383d; font-size: 11px; font-weight: 800; white-space: nowrap; }
.notification-button.enabled { border-color: #539b73; background: #e8f5df; color: #285c43; }
.end-call { display: block; min-height: 34px; margin: 8px auto 0; padding: 0 10px; border: 0; background: transparent; color: #496a64; font-size: 12px; font-weight: 800; text-decoration: underline; }
.name-field { display: grid; gap: 6px; margin-top: 18px; color: #415f5a; font-size: 13px; font-weight: 800; }
.name-field input { width: 100%; height: 44px; padding: 0 10px; border: 2px solid #cbded4; border-radius: 6px; background: #fff; color: #20383d; font: inherit; font-size: 16px; }
.name-field input:focus { border-color: #315b4d; outline: none; }
.app .bottom-panel { flex: 0 0 auto; max-height: 55%; overflow-y: auto; }
.app .building-wrap { min-height: 180px; }
.primary:disabled { cursor: wait; opacity: .6; transform: none; }
.access-gate { position: fixed; inset: 0; z-index: 40; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 28px; background: #f8faf5; text-align: center; }
.access-gate strong { font-size: 24px; }
.access-gate p { max-width: 330px; margin: 0; color: #52716e; line-height: 1.6; }
.hours-note { margin: 11px 0 0; color: #78908a; font-size: 10px; text-align: center; }
@media (max-width: 520px) { body { display: block; padding: 0; background: #f8faf5; } .app { width: 100%; height: 100dvh; min-height: 0; border: 0; border-radius: 0; box-shadow: none; } .bottom-panel { padding-bottom: max(17px, env(safe-area-inset-bottom)); } .preview-note { display: none; } }
@media (max-width: 520px) and (max-height: 690px) {
  .topbar { min-height: 45px; padding: 5px 16px 2px; }
  .brand { font-size: 32px; }
  .avatar-control { height: 32px; }
  .avatar-indicator { height: 26px; }
  .reset-button { width: 32px; height: 32px; }
  .heading { padding: 0 16px 6px; }
  .heading h1 { font-size: 22px; }
  .eyebrow { font-size: 10px; }
  .bottom-panel { padding: 6px 16px 10px; }
  .panel-line { margin-bottom: 5px; }
  .panel-line strong { font-size: 15px; }
  .destination { height: 32px; }
  .primary { height: 52px; margin-top: 7px; font-size: 21px; }
  .primary span { top: 12px; right: 14px; font-size: 21px; }
  .location-rail { margin-top: 8px; padding-top: 5px; }
  .rail-heading label, .rail-heading output { font-size: 11px; }
  #location-range { height: 27px; margin-top: 2px; }
  .floor-stop { min-height: 27px; }
  .floor-stop strong { font-size: 11px; }
  .floor-stop span { font-size: 9px; }
  .rail-connector { height: 6px; }
  .elevator-stop { min-height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .primary, .toast, #lift-car { transition: none; } }
