/* Cathut's illustrated front door. Room and admin UI remain unchanged. */
.cathut-entry{--entry-ink:#eaf4f0;--entry-muted:#9aacaa;--entry-mint:#b9eab7;--entry-line:#324641;position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.8fr);grid-template-rows:auto 1fr auto;gap:28px 64px;align-content:normal;align-items:center;width:min(1220px,100%);max-width:1220px;min-height:100dvh;padding:35px 50px 24px;color:var(--entry-ink);overflow:hidden}.cathut-entry:before{content:'';position:fixed;z-index:-1;inset:0;background:radial-gradient(ellipse at 25% 50%,#1e37302e,transparent 58%),#101b18;pointer-events:none}.entry-header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px}.cathut-entry .entry-brand{white-space:nowrap;font-size:23px;letter-spacing:-.8px;color:#e5eee9;font-weight:650}.cathut-entry .brand-icon.robot-logo{width:33px;height:33px;background:#c0ddbe;border-radius:10px}.entry-brand>span>span:last-child{font-weight:500;font-size:17px;letter-spacing:1px}.brand-divider{margin:0 12px;color:#5f7770;font-weight:400}.cathut-entry .language-control{float:none;display:block;margin:0}.cathut-entry .language-select{border:1px solid #3a5048;border-radius:20px;background:transparent;color:#c8d8d0;font-size:12px;min-height:36px;padding:6px 24px 6px 12px;cursor:pointer}.cathut-entry .entry-art{padding:30px 0 0;align-self:center;min-width:0}.cathut-entry .entry-head{margin:0;position:relative;z-index:1}.cathut-entry .entry-eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:650;color:#9bad9d;margin:0 0 19px;line-height:1.5}.cathut-entry .entry-head h1{font-size:clamp(35px,4.3vw,54px);line-height:1.22;font-weight:650;letter-spacing:-1.8px;margin:0 0 20px}.hero-accent{color:var(--entry-mint)}.cathut-entry .entry-head>p:last-child{font-size:14px;color:#9eb4aa;letter-spacing:.4px;line-height:1.8}.entry-scene{position:relative;width:calc(100% + 20px);max-width:640px;margin:2px -10px -7px -30px;aspect-ratio:760/590}.cathut-scene{display:block;width:100%;height:auto;user-select:none}.scene-message{position:absolute;display:flex;align-items:center;gap:9px;padding:11px 13px;color:#1b2d27;background:#e1efc8;border:1.5px solid #849a73;border-radius:12px;box-shadow:0 8px 22px #0002;font-size:13px;font-weight:600;white-space:nowrap;transform:rotate(-5deg);animation:notificationPop 8s ease-in-out infinite}.scene-message:after{content:'';position:absolute;right:18px;bottom:-6px;width:10px;height:10px;transform:rotate(45deg);background:inherit;border-right:1.5px solid #849a73;border-bottom:1.5px solid #849a73}.scene-message-one{left:68%;top:21%;}.scene-message-two{left:70%;top:34%;font-size:11px;background:#c6b8e6;border-color:#8c7aa8;transform:rotate(4deg);animation-delay:-3.2s}.scene-message-two:after{border-color:#8c7aa8}.message-ping{width:6px;height:6px;border-radius:50%;background:#527254;box-shadow:0 0 0 3px #bad3a3}.scene-message-count{font-size:9px;background:#394d3b;color:#d7edc9;width:16px;height:16px;border-radius:50%;display:grid;place-items:center}.scene-caption{position:absolute;left:66%;top:66%;display:flex;gap:6px;color:#bfd0a8;font-size:10px;transform:rotate(-4deg);white-space:nowrap}.entry-art-note{display:flex;align-items:center;gap:14px;font-size:11px;letter-spacing:.6px;color:#819b8e;margin:0 0 12px}.art-note-line{width:30px;height:1px;background:#516e5b}.cathut-entry .entry-panel{width:100%;background:#192722;border:1px solid #3b5045;border-radius:24px;padding:34px 31px 27px;box-shadow:0 26px 70px #0002,0 1px 0 #829b6720 inset;position:relative}.cathut-entry .entry-form-wrap{width:100%}.cathut-entry .entry-form-wrap h2{font-size:30px;line-height:1.25;letter-spacing:-.9px;font-weight:600;margin:0 0 13px;color:#f0f5ec;outline:none}.cathut-entry .entry-panel .entry-eyebrow{margin:0 0 13px;color:#9eae97;font-size:10px;letter-spacing:1.6px}.entry-description{font-size:13px;line-height:1.8;color:var(--entry-muted);margin:0 0 26px;text-wrap:pretty}.cathut-entry .entry-primary,.cathut-entry .enter-button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:51px;border-radius:12px;padding:14px 18px;background:var(--entry-mint);color:#1e3428;font-size:14px;font-weight:650;line-height:1.4;margin:0;gap:14px;transition:background .15s,transform .15s}.cathut-entry .enter-button{margin-top:24px}.cathut-entry .entry-primary:hover,.cathut-entry .enter-button:hover{background:#d0f5be;transform:translateY(-1px)}.entry-option{display:flex;align-items:center;text-align:left;gap:12px;width:100%;margin-top:14px;padding:17px 13px;border:1px solid #405249;border-radius:12px;background:transparent;color:#dce9da;transition:background .15s,border-color .15s}.entry-option:hover{background:#23382d;border-color:#728a69}.entry-option>span:last-child{margin-left:auto;color:#a6b69e}.entry-option strong{display:block;font-size:13px;line-height:1.5;font-weight:600}.entry-option small{display:block;margin-top:4px;font-size:11px;line-height:1.55;color:#9daf9e}.entry-option svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linecap:round;stroke-linejoin:round}.cathut-entry .entry-text-button{display:flex;align-items:center;gap:8px;min-height:36px;color:#bdcca9;font-size:11px;line-height:1.65;text-align:left;padding:5px 0;white-space:normal}.cathut-entry .entry-text-button:hover{color:#e1f3cb}.cathut-entry #entry-step-back{margin:-10px 0 23px;color:#a9b9a4;min-height:30px}.entry-return-rooms{margin-top:12px!important}.entry-notice{border:1px solid #435642;background:#223428;border-radius:12px;padding:16px;color:#cbd9be;font-size:12px;line-height:1.9;margin:0 0 18px}.entry-notice strong{font-size:13px;font-weight:600;color:#e0e9cc}.entry-notice p{margin:7px 0 0}.cathut-entry form>label,.cathut-entry #owner-key-wrap label,.cathut-entry #pair-code-wrap label,.cathut-entry #join-code-wrap label{display:block;font-size:12px;color:#c6d5c0;margin:20px 0 8px;font-weight:500}.cathut-entry form>input,.cathut-entry #owner-key-wrap input,.cathut-entry #pair-code-wrap input,.cathut-entry #join-code-wrap input{width:100%;min-height:47px;background:#111f18;border:1px solid #496046;border-radius:10px;color:#e9f1e2;padding:12px;font-size:14px;line-height:1.5}.cathut-entry input::placeholder{color:#82927b;font-size:12px}.cathut-entry input:focus,.cathut-entry select:focus{border-color:#b1d29d!important;box-shadow:0 0 0 3px #b2dc9920}.cathut-entry button:focus-visible,.cathut-entry summary:focus-visible,.cathut-entry a:focus-visible{outline:2px solid #c5e4a9;outline-offset:4px}.cathut-entry .field-note{font-size:10px;line-height:1.75;color:#9aaa91;margin-top:7px}.cathut-entry #entry-error{font-size:12px;padding:12px 13px;border:1px solid #805948;background:#452e27;border-radius:9px;color:#f3c5ad;margin:16px 0 0}.cathut-entry #entry-error:empty{display:none}.cathut-entry #entry-progress{font-size:12px;color:#c5deb2;margin-top:20px}.cathut-entry button:disabled{transform:none;cursor:wait}.entry-footer{grid-column:1/-1;display:flex;align-items:center;gap:13px;color:#758b7b;font-size:10px;letter-spacing:.3px;padding-top:6px}.entry-footer>span:first-child{color:#91a58d}.entry-footer>span:last-child{margin-left:auto;color:#a5bb89;font-size:17px}@media(min-width:1400px){.cathut-entry{padding-top:40px;padding-bottom:32px}.entry-scene{margin-bottom:0}}@media(max-width:950px){.cathut-entry{padding:25px 32px 20px;gap:28px 28px;grid-template-columns:minmax(0,1fr) minmax(315px,.92fr)}.cathut-entry .entry-panel{padding:29px 25px}.cathut-entry .entry-head h1{font-size:42px}.entry-scene{margin-left:-36px;margin-right:-14px}.scene-message{font-size:10px;padding:9px}.scene-message-two{font-size:9px}.scene-caption{font-size:8px}.entry-art-note{font-size:10px}}@media(max-width:700px){.cathut-entry{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:20px;width:100%;padding:20px 22px max(20px,env(safe-area-inset-bottom));min-height:100dvh;overflow:hidden}.entry-header{grid-column:1;margin-bottom:4px}.cathut-entry .entry-brand{white-space:nowrap;font-size:21px}.entry-brand>span>span:last-child{font-size:15px}.cathut-entry .brand-icon.robot-logo{width:30px;height:30px}.cathut-entry .entry-art{padding:15px 0 0;position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:230px}.cathut-entry .entry-head{align-self:start;z-index:2;padding-top:0}.cathut-entry .entry-head .entry-eyebrow{font-size:7px;letter-spacing:1px;max-width:115px;line-height:1.8;margin-bottom:12px}.cathut-entry .entry-head h1{font-size:32px;letter-spacing:-1px;line-height:1.25;margin-bottom:12px}.cathut-entry .entry-head>p:last-child{font-size:10px;line-height:1.7;max-width:128px}.entry-scene{position:relative;width:265px;max-width:none;margin:35px 0 0 -85px;align-self:end}.scene-message{font-size:7px;padding:6px 7px;gap:5px;border-radius:7px}.scene-message-one{left:66%;top:18%}.scene-message-two{left:68%;top:33%;font-size:6px}.scene-message-count{font-size:6px;width:11px;height:11px}.message-ping{width:4px;height:4px;box-shadow:0 0 0 2px #bad3a3}.scene-message:after{width:6px;height:6px;bottom:-4px;right:13px}.scene-caption{font-size:6px;left:63%;top:69%;gap:2px}.entry-art-note{grid-column:1/-1;font-size:9px;margin:1px 0 0;gap:9px}.art-note-line{width:17px}.cathut-entry .entry-panel{padding:28px 25px 21px;border-radius:20px;margin:0;width:100%}.cathut-entry .entry-form-wrap h2{font-size:27px}.entry-description{font-size:12px;margin-bottom:23px}.cathut-entry .entry-panel .entry-eyebrow{font-size:9px}.entry-footer{grid-column:1;padding-top:0}.cathut-entry .entry-art:has(+.entry-panel #room-form:not([hidden])){display:none}.cathut-entry:has(#room-form:not([hidden])){grid-template-rows:auto 1fr auto}.cathut-entry:has(#room-form:not([hidden])) .entry-panel{align-self:start;margin-top:7px}.cathut-entry form>input,.cathut-entry #owner-key-wrap input,.cathut-entry #pair-code-wrap input,.cathut-entry #join-code-wrap input{font-size:16px}.cathut-entry .entry-text-button{min-height:40px}.cathut-entry #entry-step-back{min-height:35px;margin-top:-5px}}@media(max-width:360px){.cathut-entry{padding-left:16px;padding-right:16px}.cathut-entry .entry-head h1{font-size:29px}.entry-scene{width:238px;margin-left:-76px}.cathut-entry .entry-panel{padding-left:21px;padding-right:21px}}@media(prefers-reduced-motion:reduce){.scene-message{animation:none}.cathut-entry button{transition:none}}

/* Inline scene: external CSS keeps motion compatible with the existing CSP. */

   .cathut-entry .cathut-scene .tail{transform-origin:451px 404px;animation:tailSway 4.8s ease-in-out infinite}.cathut-entry .cathut-scene .ring-phone{transform-box:fill-box;transform-origin:center bottom;animation:phoneRing 7s ease-in-out infinite}.cathut-entry .cathut-scene .ring-phone.second{animation-delay:-3.7s}.cathut-entry .cathut-scene .ring-lines{animation:ringLines 7s ease-in-out infinite}.cathut-entry .cathut-scene .ring-lines.second{animation-delay:-3.7s}.cathut-entry .cathut-scene .monitor-light{animation:screenGlow 7s ease-in-out infinite}.cathut-entry .cathut-scene .phone-notice{animation:noticeRise 8s ease-in-out infinite}.cathut-entry .cathut-scene .pet-paw{transform-origin:505px 376px;animation:petting 6s ease-in-out infinite}
   @keyframes tailSway{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(8deg)}}
   @keyframes phoneRing{0%,12%,100%{transform:rotate(0)}2%,6%,10%{transform:rotate(-3deg)}4%,8%{transform:rotate(3deg)}}
   @keyframes ringLines{0%,16%,100%{opacity:.2}4%,11%{opacity:.9}}
   @keyframes screenGlow{0%,100%{opacity:.65}40%,70%{opacity:.96}}
   @keyframes noticeRise{0%,60%,100%{transform:translateY(0)}68%,80%{transform:translateY(-4px)}}
   @keyframes petting{0%,45%,100%{transform:rotate(0)}20%,70%{transform:rotate(3deg)}}
   @media(prefers-reduced-motion:reduce){.cathut-entry .cathut-scene .tail,.cathut-entry .cathut-scene .ring-phone,.cathut-entry .cathut-scene .ring-lines,.cathut-entry .cathut-scene .monitor-light,.cathut-entry .cathut-scene .phone-notice,.cathut-entry .cathut-scene .pet-paw{animation:none}}
  
@keyframes notificationPop{0%,8%,100%{opacity:0;translate:0 7px;scale:.96}16%,80%{opacity:1;translate:0 0;scale:1}90%{opacity:0;translate:0 -2px}}
.cathut-entry .fresh-text-only-hint{font-size:10px!important;line-height:1.7!important;color:#879b80!important;margin:18px 0 0!important}

/* Entry can exceed a phone viewport after approval messages, errors or zoom.
   Keep vertical controls reachable while cropping only decorative horizontal art. */
.cathut-entry{overflow-x:hidden;overflow-y:auto}
.cathut-entry .entry-panel{min-width:0}
#pending-human-admission{overflow-wrap:anywhere}
#pending-human-admission .collection-actions button{max-width:100%;min-height:44px;white-space:normal}
@media(max-width:700px){
 .cathut-entry.has-pending-admission .entry-art{display:none}
 .cathut-entry.has-pending-admission,.cathut-entry:has(#room-form:not([hidden])){grid-template-rows:auto minmax(min-content,1fr) auto}
 .cathut-entry.has-pending-admission .entry-panel{align-self:start;margin-top:7px}
}

/* Sky-blue entry theme. Authentication and room UI semantics are unchanged. */
body:has(#entrance:not([hidden])){background:#f3faff;--panel:#fff;--text:#173b50;--muted:#516b7c;--border:#bed9e9;--accent:#0078b8}
.cathut-entry{--entry-ink:#173b50;--entry-muted:#516b7c;--entry-mint:#0078b8;--entry-line:#bed9e9;color:var(--entry-ink)}
.cathut-entry:before{background:radial-gradient(ellipse at 25% 45%,#d9f0ff 0,transparent 60%),#f3faff}
.cathut-entry .entry-brand{color:#173b50}.cathut-entry .brand-icon.robot-logo{background:#dff2ff;filter:hue-rotate(65deg)}.brand-divider{color:#708da0}
.cathut-entry .language-select{background:#fff;color:#254f68;border-color:#a8ccdf}
.cathut-entry .entry-eyebrow,.cathut-entry .entry-panel .entry-eyebrow{color:#526e80}.cathut-entry .entry-head>p:last-child{color:#48697e}
.cathut-entry .entry-panel{background:#ffffffed;border-color:#bbd9ea;box-shadow:0 20px 60px #246d9712,0 1px 0 #fff inset}
.cathut-entry .entry-form-wrap h2{color:#173b50}.entry-art-note,.entry-footer,.entry-footer>span:first-child{color:#577589}.entry-footer>span:last-child{color:#287aa6}.art-note-line{background:#9fc8df}.scene-caption{color:#284f69}
.cathut-entry .entry-primary,.cathut-entry .enter-button{background:#0078b8;color:#fff;border:1px solid #0078b8}.cathut-entry .entry-primary:hover,.cathut-entry .enter-button:hover{background:#00659d;border-color:#00659d}
.cathut-entry .entry-option{color:#1b526f;border-color:#a6cade;background:#fff}.cathut-entry .entry-option:hover{background:#eff8fe;border-color:#4e99c3}.cathut-entry .entry-option>span:last-child,.cathut-entry .entry-option small{color:#4b6e83}
.cathut-entry .entry-login-choice{justify-content:flex-start;gap:12px;min-height:56px;padding:14px 18px;font-size:16px;font-weight:650;line-height:1.45;text-align:left}.entry-login-choice>svg{width:23px;height:23px;flex:0 0 23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.entry-login-choice .entry-choice-arrow{margin-left:auto;color:inherit!important}.cathut-entry .entry-cat-choice{border:1.5px solid #3e8fbb;color:#17618a;background:#fff}.cathut-entry .entry-cat-choice:hover{background:#eaf6ff}.cathut-entry[data-entry-view=home] #cancel-add-room{display:none!important}
.cathut-entry #entry-home{display:grid;gap:14px}.cathut-entry #entry-home[hidden]{display:none}.cathut-entry #entry-home .entry-option{margin:0}.cathut-entry .entry-text-button,.cathut-entry #entry-step-back{color:#286484}.cathut-entry .entry-text-button:hover{color:#004e80}
.cathut-entry .entry-notice{background:#eef8fe;border-color:#c2ddeb;color:#45667b}.cathut-entry .entry-notice strong{color:#234f69}
.cathut-entry form>label,.cathut-entry #owner-key-wrap label,.cathut-entry #pair-code-wrap label,.cathut-entry #join-code-wrap label{color:#294f67}
.cathut-entry form>input,.cathut-entry #owner-key-wrap input,.cathut-entry #pair-code-wrap input,.cathut-entry #join-code-wrap input{background:#fff;border-color:#9dbed3;color:#173b50}.cathut-entry input::placeholder{color:#5b778b}.cathut-entry input:focus,.cathut-entry select:focus{border-color:#147caf!important;box-shadow:0 0 0 3px #3aa9e626}
.cathut-entry button:focus-visible,.cathut-entry summary:focus-visible,.cathut-entry a:focus-visible{outline:3px solid #075f95;outline-offset:3px}.cathut-entry .field-note{color:#526e80}.cathut-entry #entry-progress{color:#276381}.cathut-entry #entry-error{background:#fff2ee;border-color:#d69a88;color:#963d29}.cathut-entry .fresh-text-only-hint{color:#526e80!important}
body:has(#entrance:not([hidden])) .account-dialog{background:#fff;color:#173b50;border-color:#b4d3e5}body:has(#entrance:not([hidden])) .account-dialog::backdrop{background:#163d595c}body:has(#entrance:not([hidden])) .account-field input{background:#fff;color:#173b50;border:1px solid #98bad0}body:has(#entrance:not([hidden])) .account-dialog .primary{background:#0078b8;color:#fff}body:has(#entrance:not([hidden])) .account-dialog .secondary{background:#edf7fd;color:#245974;border:1px solid #a8cada}body:has(#entrance:not([hidden])) .account-dialog .dialog-actions{background:#fff}body:has(#entrance:not([hidden])) .account-warning{background:#eaf5fd;color:#345c74}
@media(max-width:700px){.cathut-entry .entry-panel{padding:25px 23px}.cathut-entry .entry-art{min-height:205px}.cathut-entry .entry-login-choice{min-height:56px}.cathut-entry[data-entry-view=returning] .entry-art,.cathut-entry[data-entry-view=invitation] .entry-art{display:none}}
