/* Design contract: playful photographic identity, quiet control surface.
   Color tokens: ink #152554 / relay #345BE6 / sky #D9E7FC /
   paper #F4F7FF / mint #287C69 / spark #F0CE6D.
   Type: Korean system sans; 72px editorial hero / 34px heading / 15px body.
   Desktop [ headline + portrait | entry form ]; mobile [ hero ][ entry ].
   Control [ name/status ][ screen ][ 46–48px navigation ][ tools ].
   Brief review: portrait, no speech bubbles, no default technical readout. */
:root{font-family:"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif;color:#152554;background:#F4F7FF;font-synthesis:none;--ink:#152554;--relay:#345BE6;--sky:#D9E7FC;--paper:#F4F7FF;--mint:#287C69;--spark:#F0CE6D;--muted:#63708B;--line:#DCE3F2}
*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:0}button:disabled{cursor:default;opacity:.48}button:not(:disabled),a{transition:background-color .16s,color .16s,box-shadow .16s}a{color:inherit}p{line-height:1.7}h1,h2,p{margin-top:0}h1,h2{letter-spacing:-.045em;word-break:keep-all}h2{font-size:24px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.site-header{max-width:1140px;margin:auto;padding:22px 30px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:21px;font-weight:800;letter-spacing:-.05em;line-height:1.25}.brand small{display:block;margin-top:4px;font-size:10px;font-weight:500;letter-spacing:.09em;color:var(--muted)}.brand-portrait{width:44px;height:44px;border-radius:50%;background:var(--sky);overflow:hidden;display:block;flex-shrink:0}.brand-portrait img{width:100%;height:100%;object-fit:cover;object-position:50% 23%}.site-header>.quiet{font-size:13px}main{max-width:1140px;padding:24px 30px 36px;margin:auto}.site-footer{max-width:1080px;margin:0 auto;padding:20px 0 26px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:14px;font-size:11px;color:var(--muted)}.site-footer span:first-child{font-weight:700}.eyebrow{display:block;font-size:12px;letter-spacing:.04em;font-weight:700;color:var(--mint)}.sparkle{margin-right:5px;color:var(--relay)}.primary{display:inline-flex;justify-content:center;align-items:center;gap:12px;background:var(--relay);color:white;border-radius:12px;min-height:48px;padding:13px 20px;font-weight:700;white-space:nowrap}.primary:not(:disabled):hover{background:#2448C9;box-shadow:0 4px 14px #345be625}.quiet{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:transparent;color:var(--muted);border-radius:10px;padding:10px 12px;min-height:44px}.quiet:not(:disabled):hover{background:var(--sky);color:var(--ink)}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--relay);outline-offset:4px}input{display:block;width:100%;min-height:52px;border:1px solid #CCD6E9;border-radius:12px;background:#fff;padding:14px;color:var(--ink)}input::placeholder{color:#7D88A0;font-size:13px}input:focus-visible{outline:3px solid #345BE62E;border-color:var(--relay)}label{display:block;font-size:13px;font-weight:700;margin:0 0 9px}.note{font-size:12px;color:var(--muted);line-height:1.7}.note:last-child{margin-bottom:0}[hidden]{display:none!important}
#login{display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:56px;min-height:640px;padding:18px 0 30px}.welcome{position:relative;min-height:600px;padding:18px 0 0 14px;isolation:isolate}.welcome h1{position:relative;z-index:2;font-size:76px;line-height:1.1;margin:22px 0 20px;letter-spacing:-.065em}.welcome h1 em{font-style:normal;color:var(--relay);position:relative}.welcome h1 em:after{content:"";position:absolute;left:0;right:-8px;bottom:1px;height:6px;border-radius:50%;background:var(--spark);z-index:-1;transform:rotate(-3deg)}.intro-copy{position:relative;z-index:2;font-size:16px;color:var(--muted);line-height:1.8}.hero-art{position:absolute;left:145px;right:-16px;bottom:0;height:330px;z-index:-1}.hero-art:before{content:"";position:absolute;inset:15px -10px -5px 0;background:var(--sky);border-radius:50%;transform:rotate(-8deg)}.portrait-frame{position:absolute;width:214px;height:282px;bottom:15px;left:70px;border:7px solid white;outline:1px solid #15255414;border-radius:110px 110px 20px 20px;overflow:hidden;transform:rotate(7deg);box-shadow:0 14px 35px #15255412;z-index:1}.portrait-frame img{width:100%;height:100%;object-fit:cover}.orbit{position:absolute;inset:85px -6px 55px;border:1px solid #345BE644;border-radius:50%;transform:rotate(-23deg)}.orbit-two{inset:110px -18px 85px;transform:rotate(20deg)}.art-caption{position:absolute;bottom:0;left:0;z-index:2;font-size:10px;letter-spacing:.12em;color:var(--mint);transform:rotate(-6deg)}.hero-star{position:absolute;left:17px;top:42px;z-index:2;font-size:48px;color:var(--relay)}.login-panel{background:white;padding:38px 34px 26px;border:1px solid var(--line);border-radius:24px;box-shadow:0 20px 60px #15255406;position:relative;z-index:3}.login-panel h2{font-size:29px;margin:14px 0}.login-panel>p{font-size:14px;color:var(--muted)}#login-form{margin-top:30px}#login-form>.primary{width:100%;margin-top:14px;justify-content:space-between}.privacy-note{display:flex;gap:12px;align-items:center;margin-top:26px;border-top:1px solid var(--line);padding-top:22px}.privacy-note>span{font-size:25px;color:var(--mint)}.privacy-note p{font-size:12px;color:var(--muted);margin:0}.login-panel>.fiction-note{font-size:10px;line-height:1.6;margin:18px 0 0;color:#75819A}
#dashboard{max-width:820px;margin:auto}.dashboard-welcome{position:relative;isolation:isolate;border-radius:24px;background:var(--sky);padding:32px 34px;min-height:232px;overflow:hidden}.dashboard-welcome h1{font-size:38px;line-height:1.2;margin:14px 0 12px}.dashboard-welcome p{font-size:13px;margin-bottom:0;color:#465B80}.dashboard-portrait{position:absolute;right:40px;bottom:-48px;width:186px;height:242px;z-index:-1;transform:rotate(9deg);border:6px solid white;border-radius:96px 96px 18px 18px;overflow:hidden}.dashboard-portrait img{width:100%;height:100%;object-fit:cover}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0 8px}.section-heading h2{font-size:19px;margin:0}.section-heading .quiet{font-size:12px}.device{display:flex;align-items:center;justify-content:space-between;gap:20px;background:white;border:1px solid var(--line);border-radius:16px;padding:22px 24px;margin-bottom:10px}.device-info{min-width:0;padding-left:17px;border-left:3px solid var(--mint)}.device strong{display:block;font-size:19px;overflow-wrap:anywhere;line-height:1.4}.device p{font-size:12px;color:var(--muted);margin:6px 0 0}.device-actions{display:flex;gap:6px;align-items:center;flex-shrink:0}.device-actions .primary{font-size:13px;min-height:44px}.remove{font-size:11px;padding:8px}.device.offline .device-info{border-left-color:#A7B1C7}.empty{padding:34px 24px;text-align:center;background:white;border:1px dashed #BCC9DF;border-radius:16px;font-size:14px;color:var(--muted)}.setup{margin-top:24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}summary{cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}.setup>summary{display:flex;align-items:center;justify-content:space-between;min-height:66px;gap:12px;font-size:14px;font-weight:700}.setup-plus{color:var(--relay);font-size:20px;vertical-align:-1px;margin-right:9px}.summary-arrow{color:var(--muted);transition:transform .16s}.setup[open] .summary-arrow{transform:rotate(180deg)}.setup-body{padding:0 0 24px}.setup-body>p{font-size:13px;color:var(--muted)}.setup-steps{list-style:none;padding:0;margin:22px 0;display:flex;flex-wrap:wrap;gap:16px 24px;font-size:12px}.setup-steps span{font-size:10px;color:var(--relay);font-weight:700;margin-right:6px}.setup-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap}.download{font-size:13px;text-underline-offset:4px}.setup-actions .primary{font-size:13px;min-height:44px}#pairing{margin-top:24px;background:white;border-radius:16px;padding:22px}#code{display:block;font-size:34px;letter-spacing:.18em;font-variant-numeric:tabular-nums;font-weight:800;margin:12px 0;color:var(--relay)}#pairing p{font-size:12px;margin:0;color:var(--muted)}.safety-note{margin-top:22px}
/* Compact navigation retains a 44px+ touch target. No codec controls. */
body:has(#controller:not([hidden])) .site-header{padding-top:12px;padding-bottom:12px;max-width:820px}body:has(#controller:not([hidden])) main{padding-top:8px;max-width:820px}body:has(#controller:not([hidden])) .site-footer{display:none}#controller{max-width:700px;margin:auto}.control-heading{display:flex;align-items:center;gap:14px;margin:0 0 14px}.back-to-list{font-size:13px;padding-left:0;padding-right:10px}.control-device{min-width:0;flex:1}.control-device strong{display:block;font-size:16px;overflow-wrap:anywhere;line-height:1.3}.control-device>span{display:block;color:var(--mint);font-size:11px;line-height:1.4;margin-top:5px}.live-mark{font-size:25px;color:var(--relay);padding-right:6px}.phone-shell{border:1px solid #1D2846;border-radius:18px;overflow:hidden;background:#080E1C;box-shadow:0 12px 30px #1525540A}#stage{position:relative;height:clamp(280px,calc(100dvh - 280px),780px);background:#080E1C;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}#screen{position:absolute;left:50%;top:50%;object-fit:contain;transform:translate(-50%,-50%);display:block;pointer-events:none}#screen-hint{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:40px;max-width:440px;margin:auto;color:#CAD8F3;font-size:14px;text-align:center;line-height:1.8;pointer-events:none}.phone-controls{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-top:1px solid var(--line);padding:0 6px}.phone-controls button{height:48px;display:flex;justify-content:center;align-items:center;gap:9px;background:transparent;color:var(--ink);font-size:12px}.phone-controls button svg{width:19px;height:19px}.phone-controls button:hover{background:var(--paper)}.phone-controls button:active{background:var(--sky)}.phone-controls button:focus-visible{outline-offset:-4px}.view-controls{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 0 0}.view-controls .quiet{font-size:12px;padding:10px 14px}.view-controls svg{width:16px;height:16px}.display-options{display:flex;justify-content:center;margin-top:0}.display-options .quiet{min-height:44px;font-size:11px;padding:8px 12px;color:var(--relay)}.gesture-note{text-align:center;font-size:11px;margin:9px 0 14px}.connection-details{border-top:1px solid var(--line);font-size:11px;color:var(--muted);margin-top:18px}.connection-details>summary{padding:12px 0;min-height:44px;display:flex;align-items:center;gap:6px}.connection-details>summary:before{content:"＋"}.connection-details[open]>summary:before{content:"−"}#connection-metrics{padding:0 0 12px;overflow-wrap:anywhere}.connection-details .note{font-size:11px;margin-bottom:7px}#text-form{background:white;border:1px solid var(--line);padding:18px;margin-top:12px;border-radius:14px}#text-form .primary{margin-top:10px;font-size:13px;min-height:44px}#message{margin:18px auto 0;max-width:700px;padding:14px 18px;border-radius:12px;background:#FFF0EC;color:#993E2E;font-size:13px;line-height:1.7;overflow-wrap:anywhere}#message:empty{display:none}
#controller:fullscreen{width:100%;max-width:none;background:var(--paper);padding:8px 12px;padding-bottom:max(8px,env(safe-area-inset-bottom));display:flex;flex-direction:column;height:100dvh}#controller:fullscreen .control-heading{margin-bottom:6px;flex-shrink:0}#controller:fullscreen .phone-shell{flex:1;min-height:0;display:flex;flex-direction:column}#controller:fullscreen #stage{height:auto;flex:1;min-height:0}#controller:fullscreen .phone-controls{flex-shrink:0}#controller:fullscreen .gesture-note,#controller:fullscreen .connection-details{display:none}#controller:fullscreen .view-controls{flex-shrink:0;padding-top:4px}#controller:fullscreen .display-options{flex-shrink:0}#controller:fullscreen #text-form{max-height:30dvh;overflow:auto;flex-shrink:0}
@media(min-width:1450px){#login{min-height:700px}.welcome{min-height:640px}.hero-art{height:360px}}
@media(max-width:850px){.site-header{padding:18px 24px}main{padding:20px 24px 30px}#login{gap:28px;grid-template-columns:1fr 1fr}.welcome{min-height:540px;padding-left:0}.welcome h1{font-size:62px}.hero-art{left:25px;right:-25px;height:275px}.portrait-frame{width:182px;height:240px;left:65px;bottom:4px}.hero-star{font-size:35px;left:20px;top:25px}.login-panel{padding:30px 24px 24px}.login-panel h2{font-size:25px}.site-footer{margin:0 24px}.intro-copy{font-size:14px}}
@media(max-width:600px){.site-header{padding:16px 20px}.brand{font-size:18px;gap:8px}.brand small{font-size:9px}.brand-portrait{width:38px;height:38px}main{padding:8px 20px 28px}#login{display:flex;flex-direction:column;gap:14px;min-height:0;padding:0 0 12px;align-items:stretch}.welcome{min-height:405px;padding:20px 0 0}.eyebrow{font-size:10px}.welcome h1{font-size:56px;margin:18px 0 16px;line-height:1.07}.intro-copy{font-size:12px;max-width:190px;line-height:1.8}.hero-art{left:auto;right:-5px;width:215px;height:228px;bottom:0}.hero-art:before{inset:25px 0 0 0}.portrait-frame{width:150px;height:196px;left:42px;bottom:13px;border-width:5px}.hero-star{font-size:30px;left:3px;top:23px}.art-caption{bottom:0;left:7px;font-size:8px}.login-panel{padding:26px 24px 22px;border-radius:20px}.login-panel h2{font-size:25px;margin:10px 0}.login-panel>p{font-size:13px}.login-panel>p br{display:none}#login-form{margin-top:24px}.privacy-note{margin-top:22px;padding-top:18px}.fiction-note br{display:none}.site-footer{font-size:10px;margin:0 20px;padding:18px 0 24px}.dashboard-welcome{padding:26px 22px;min-height:228px}.dashboard-welcome h1{font-size:32px}.dashboard-welcome p{max-width:160px;font-size:11px;position:relative;z-index:1}.dashboard-portrait{width:138px;height:183px;right:3px;bottom:-25px;border-width:5px}.device{padding:18px 16px;gap:10px;align-items:flex-start}.device-info{padding-left:11px;flex:1}.device strong{font-size:16px}.device p{font-size:11px}.device-actions{flex-direction:column;align-items:stretch;gap:0}.device-actions .primary{padding:10px 14px;min-height:44px;font-size:12px}.device-actions .remove{min-height:36px;font-size:10px}.setup-steps{flex-direction:column;gap:12px}#pairing{padding:18px 16px}#code{font-size:29px;letter-spacing:.15em}.safety-note{font-size:11px}body:has(#controller:not([hidden])) .site-header{padding:12px 16px}body:has(#controller:not([hidden])) main{padding:4px 12px 24px}.control-heading{margin-bottom:10px;gap:8px}.control-device strong{font-size:15px}.control-device>span{font-size:10px}.phone-shell{border-radius:14px}#stage{height:clamp(280px,calc(100dvh - 275px),780px)}.phone-controls button{height:46px;font-size:11px;gap:8px}.view-controls{gap:0;justify-content:space-between}.view-controls .quiet{font-size:11px;padding:10px 11px}.view-controls svg{width:15px;height:15px}.gesture-note{font-size:10px}.connection-details{margin-top:12px}.back-to-list span{display:none}.back-to-list{min-width:36px;padding:8px}.live-mark{font-size:22px}}
@media(max-width:360px){.welcome h1{font-size:49px}.hero-art{width:200px;height:215px}.portrait-frame{width:139px;height:183px}.welcome{min-height:385px}.intro-copy{font-size:11px}.login-panel{padding:24px 20px}.dashboard-portrait{right:-14px}.device{padding:16px 12px}.view-controls .quiet{padding:10px 8px}}
@media(max-width:600px){.welcome{min-height:445px}}@media(max-width:360px){.welcome{min-height:425px}.site-header{padding:16px;gap:8px}.brand{font-size:15px;gap:7px;white-space:nowrap}.brand small{font-size:8px;letter-spacing:.04em}.brand-portrait{width:32px;height:32px}.site-header>.quiet{font-size:11px;padding:8px;white-space:nowrap}.dashboard-welcome h1{font-size:28px}.dashboard-welcome p{max-width:120px;font-size:10px}.dashboard-portrait{width:96px;height:128px;right:8px;bottom:-10px}}
#controller-message{display:none}#controller:fullscreen #controller-message:not(:empty){display:block;flex-shrink:0;max-height:20dvh;overflow:auto;margin:6px 0;padding:10px 14px;border-radius:10px;background:#FFF0EC;color:#993E2E;font-size:12px;line-height:1.6}
/* Crop the supplied portrait to source y=0..840 before filling the existing
   card. Its lower-right mark is below this viewBox at every breakpoint. */
.dashboard-welcome{height:232px;padding:0;background:#06100F}.dashboard-banner{display:block;width:100%;height:100%;stroke:none;overflow:hidden}.section-heading h1{font-size:19px;margin:0}
@media(max-width:600px){.dashboard-welcome{height:228px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
