@font-face{font-family:"Phone Korean";src:url("/NanumGothic-Regular.ttf") format("truetype");font-weight:100 900;font-display:swap}
:root{color-scheme:light;--ink:#172c39;--muted:#647582;--line:#dfe6e9;--accent:#0b6157;--bg:#f3f6f7;--white:#fff;font-family:Inter,"Pretendard","Phone Korean","Noto Sans KR",system-ui,sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg)}[hidden]{display:none!important}button,input,textarea,select{font:inherit}button,a,input,textarea,select{outline-offset:3px}button{border:1px solid #cdd9de;background:white;color:var(--ink);border-radius:8px;padding:9px 12px;cursor:pointer;font-size:.875rem;font-weight:600;line-height:1.4}button:hover:not(:disabled){background:#edf4f4;border-color:#91aaa6}button:disabled{cursor:default;opacity:.42}.primary{background:var(--accent);color:white;border-color:var(--accent)}.primary:hover:not(:disabled){background:#084b44;color:white}.quiet{border-color:transparent;background:transparent}.muted{color:var(--muted);font-size:.9rem;line-height:1.7}h1,h2,p{margin-top:0}h1{font-size:1.8rem;letter-spacing:-.045em;margin-bottom:8px}h2{font-size:1rem;margin:0 0 4px}a{color:var(--accent);text-decoration:none}.eyebrow{font-size:.75rem;letter-spacing:.16em;font-weight:750;color:var(--accent);margin-bottom:12px}.brand-mark{width:45px;height:45px;border-radius:13px;background:var(--accent);color:white;display:grid;place-items:center;font-weight:750;font-size:1.5rem;margin-bottom:25px}.brand-mark.small{width:32px;height:32px;font-size:1.1rem;border-radius:10px;margin:0}.login-view{min-height:100dvh;display:grid;place-items:center;padding:28px}.login-card{width:430px;max-width:100%;background:white;border:1px solid var(--line);border-radius:20px;padding:40px;box-shadow:0 20px 65px #183b4610}.login-card form{margin-top:25px;display:grid;gap:10px}.login-card label{font-size:.875rem;font-weight:650}.login-card input{margin-bottom:9px}.login-card small{display:block;margin-top:25px;color:var(--muted);font-size:.8rem}.wide{width:100%;margin-top:6px}input,textarea,select{border:1px solid #cdd9de;border-radius:7px;padding:10px;color:var(--ink);background:white}input:focus,textarea:focus{outline:2px solid #78b9ad}#login-error{color:#a62e32;font-size:.875rem;margin:16px 0 0}.sidebar{position:fixed;width:230px;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:30px 18px;display:flex;flex-direction:column;gap:8px}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:750;font-size:1.15rem;margin-bottom:38px;padding-left:8px}.sidebar-title{font-size:.8rem;color:var(--muted);padding:0 12px;margin-bottom:5px}.nav-item{display:flex;width:100%;justify-content:space-between;align-items:center;text-align:left;padding:12px;border:0;background:transparent;margin-bottom:6px}.nav-item.selected{background:#e7f2ef;color:var(--accent)}.nav-item span{font-size:.8rem}.sidebar-bottom{margin-top:auto;padding:20px 10px 0;border-top:1px solid var(--line);display:grid;gap:8px;font-size:.875rem}.sidebar-bottom span{color:var(--muted)}.sidebar-bottom button{margin-top:12px;text-align:left;padding-left:0}main{margin-left:230px;padding:35px 36px;max-width:2200px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}header .muted{margin:0}.summary{display:flex;align-items:center;gap:25px;padding:15px 0 22px;border-bottom:1px solid var(--line);margin-bottom:24px;font-size:.875rem;color:var(--muted)}.summary>span:first-child{color:var(--ink)}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#20917b;margin-right:8px}.compact{display:flex;gap:10px;align-items:center;margin-left:auto;white-space:nowrap}.compact select{padding:6px 10px}#notice:not(:empty){background:#fff4e0;border:1px solid #e6d1a9;border-radius:9px;padding:12px;margin-bottom:20px;font-size:.9rem}.device-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(315px,1fr));gap:22px;align-items:start}.device-grid.compact{grid-template-columns:repeat(auto-fill,minmax(265px,1fr))}.device-grid.large{grid-template-columns:repeat(auto-fill,minmax(440px,1fr))}.device-card{min-width:0;border:1px solid var(--line);border-radius:15px;background:white;padding:17px;box-shadow:0 3px 10px #162e3704}.device-card.active{border-color:#75ac9d;box-shadow:0 0 0 2px #0b615712}.card-heading{display:flex;justify-content:space-between;gap:8px;align-items:center}.device-model{color:var(--muted);font-size:.8rem}.rename{font-size:.75rem;padding:5px}.card-status{display:flex;justify-content:space-between;gap:8px;margin:15px 0 12px;font-size:.8rem;color:var(--muted)}.ownership.owned{color:var(--accent);font-weight:700}.phone-screen{position:relative;width:100%;max-height:64vh;aspect-ratio:9/20;overflow:hidden;background:#121c25;border-radius:10px;display:flex;align-items:center;justify-content:center;touch-action:none;user-select:none;cursor:url("/finger.svg?v=1") 18 3,pointer}.screen-image{display:block;max-width:100%;max-height:64vh;object-fit:contain;width:100%;height:100%;pointer-events:none}.screen-placeholder{color:#adbdc7;font-size:.875rem;padding:20px;text-align:center}.screen-badge{position:absolute;top:10px;left:10px;color:white;background:#193d34d9;padding:4px 7px;border-radius:5px;font-size:.65rem;letter-spacing:.08em;pointer-events:none}.frame-info{display:flex;justify-content:space-between;color:var(--muted);font-size:.75rem;margin:9px 0 15px}.control-row{display:flex;gap:6px}.control-row .claim{flex:1}.control-row button{font-size:.8rem;padding:8px}.phone-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:10px 0 17px}.phone-keys button{font-size:.8rem;padding:8px 2px;background:#f6f8f9}details{border-top:1px solid var(--line);padding:13px 0 0;margin-top:14px}summary{font-size:.875rem;font-weight:650;cursor:pointer;margin-bottom:12px}textarea{display:block;resize:vertical;width:100%;font-size:.875rem;line-height:1.6}.text-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px}.text-actions span{font-size:.75rem;color:var(--muted)}.text-actions button{font-size:.8rem}.edit-keys{display:flex;gap:7px;margin-top:8px}.edit-keys button{font-size:.75rem;padding:6px 9px}.agent-tools .muted{font-size:.8rem}.agent-actions{display:flex;align-items:center;gap:12px;font-size:.8rem}.agent-actions button{font-size:.8rem}.coordinate-form{display:flex;align-items:end;gap:7px;margin-top:14px}.coordinate-form label{display:grid;gap:5px;font-size:.75rem;flex:1;min-width:0}.coordinate-form input{width:100%;padding:7px}.coordinate-form button{font-size:.8rem;padding:9px}.ui-state{max-height:260px;overflow:auto;margin-top:10px;font-size:.8rem}.ui-node{display:block;text-align:left;width:100%;margin:5px 0;font-size:.8rem;overflow-wrap:anywhere}.ui-note{padding:7px 3px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.action-status{color:var(--muted);font-size:.8rem;line-height:1.6;margin:16px 0 0;min-height:2.6em}.action-status.error{color:#a62e32}.empty{padding:65px;text-align:center;background:white;border:1px dashed #c4d1d7;border-radius:14px}.empty p{color:var(--muted)}footer{font-size:.8rem;color:var(--muted);padding:30px 0;line-height:1.6}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1600px){.device-grid.normal{grid-template-columns:repeat(auto-fill,minmax(335px,1fr))}}@media(max-width:900px){.sidebar{width:185px;padding:25px 12px}.brand{font-size:1rem}main{margin-left:185px;padding:25px 20px}.summary>span:nth-child(2){display:none}.device-grid.large{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}}@media(max-width:600px){.sidebar{position:static;width:auto;padding:12px 16px;border-right:0;border-bottom:1px solid var(--line);display:block}.brand{margin:0}.sidebar-title,.sidebar-bottom,#device-nav,#show-all{display:none}main{margin:0;padding:22px 14px}header{align-items:start}header h1{font-size:1.5rem}header .muted{font-size:.8rem}header>button{font-size:.75rem;white-space:nowrap}.summary{gap:10px}.device-grid,.device-grid.large,.device-grid.compact{grid-template-columns:1fr}.phone-screen,.screen-image{max-height:65vh}.login-card{padding:30px}}

.header-actions{display:flex;gap:8px}.mobile-only{display:none}@media(max-width:600px){.mobile-only{display:block}.header-actions{flex-direction:column}.header-actions button{font-size:.75rem;white-space:nowrap}}

/* Finger tip stays anchored to the actual pointer; the overlay never takes input. */
.phone-screen.finger-enabled,.phone-screen.finger-enabled *{cursor:none!important}
#finger-cursor{position:fixed;left:0;top:0;width:0;height:0;z-index:10000;pointer-events:none;visibility:hidden;will-change:transform}
#finger-cursor.is-visible{visibility:visible}
#finger-cursor .finger-hand{position:absolute;left:-17.6px;top:-3px;overflow:visible;transform-origin:17.6px 3px;transform:translateY(-4px) rotate(-9deg);filter:drop-shadow(1px 3px 2px #142c3940);transition:transform 130ms cubic-bezier(.2,.8,.2,1),filter 130ms ease;pointer-events:none}
#finger-cursor.is-pressed .finger-hand{transform:translateY(1px) rotate(-3deg) scale(.94,.88);filter:drop-shadow(0 1px 1px #142c3945)}
.finger-contact{position:absolute;left:-9px;top:-5px;width:18px;height:10px;border:2px solid #62d7bb;border-radius:50%;opacity:0;transform:scale(.5);transition:transform 150ms ease-out,opacity 150ms ease-out;box-shadow:0 0 0 3px #0b615720}
#finger-cursor.is-pressed .finger-contact{opacity:.9;transform:scale(1.1)}
@media(prefers-reduced-motion:reduce){#finger-cursor .finger-hand,.finger-contact{transition:none}}

.keyboard-capture{position:fixed;left:-10000px;top:0;width:1px;height:1px;min-height:0;margin:0;padding:0;border:0;opacity:0;pointer-events:none;resize:none;font-size:16px;caret-color:transparent}

.keyboard-hint{font-size:.8rem;line-height:1.5;color:var(--accent);margin:0 0 12px}

.connection-settings{background:white;border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin:0 0 22px}
.connection-settings summary{margin:0;font-weight:400;line-height:1.6}.connection-settings summary strong{margin-left:10px}.connection-settings summary span{font-size:.75rem;color:var(--muted);margin-left:12px}
#profile-form{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-top:18px}#profile-form label{display:grid;gap:7px;font-size:.875rem}#profile-form label:first-child{flex:1;min-width:200px}#profile-form label:nth-child(2){min-width:155px}#profile-form button{padding:11px 15px}.connection-settings p{font-size:.8rem;margin:10px 0 0}#profile-status:empty{display:none}.card-status{align-items:start}.ownership{max-width:70%;text-align:right;line-height:1.5;overflow-wrap:anywhere}.claim.is-owner:disabled{background:#e5f2ee;color:#0b6157;border-color:#b7d9cf;opacity:1}
@media(max-width:600px){#profile-form label:first-child{width:100%}.connection-settings summary strong{display:inline-block}.connection-settings summary span{display:block;margin-left:16px}}

.connection-settings summary strong{max-width:100%;overflow-wrap:anywhere;vertical-align:top}

#leave-dialog{width:430px;max-width:calc(100vw - 32px);padding:26px;border:1px solid var(--line);border-radius:15px;color:var(--ink);box-shadow:0 20px 65px #142c3933}#leave-dialog::backdrop{background:#132a3bb0}#leave-dialog h2{font-size:1.15rem;margin:0 0 12px}#leave-description{font-size:.9rem;line-height:1.8;color:var(--muted);white-space:pre-line}.leave-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px;flex-wrap:wrap}

.keyboard-capture,.keyboard-capture:focus{outline:none!important;box-shadow:none!important;color:transparent!important;caret-color:transparent!important;clip-path:inset(50%);cursor:none!important}

.audio-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0 0 12px}.audio-toggle{font-size:.8rem;white-space:nowrap}.audio-toggle[aria-pressed="true"]{background:#e5f2ee;border-color:#86b9aa;color:var(--accent)}.audio-volume-label{display:flex;align-items:center;gap:6px;font-size:.8rem;color:var(--muted);flex:1;min-width:115px}.audio-volume{width:100%;min-width:60px;max-width:140px;accent-color:var(--accent);padding:0;border:0;cursor:pointer}.audio-status{font-size:.75rem;color:var(--muted);flex-basis:100%;line-height:1.5}
