/* Wave art and entrance layout adapted from the user's Craft Anything build.
   These rules are scoped so the working shared chart keeps its full canvas. */
body:not(.in-room){min-height:100dvh;background:#eaf3ff url('/assets/waves-wide.svg') center/cover fixed no-repeat;color:var(--ink)}
body:not(.in-room) .topbar{position:relative;min-height:78px;gap:18px;background:#ffffff65;border-color:#ffffff9c;backdrop-filter:blur(18px)}
.entrance-nav{display:flex;align-items:center;gap:3px;margin:auto;padding:4px;border:1px solid #ffffffa8;border-radius:99px;background:#ffffff8c;box-shadow:0 6px 18px #1b34520a}
.entrance-nav button{border-radius:99px;min-height:36px;font-size:.83rem;background:transparent;color:inherit;padding-inline:20px}
.entrance-nav button:hover{background:#ffffffc0}
.entrance-theme{white-space:nowrap;border-radius:99px;font-size:.82rem}
body:not(.in-room) .top-private{display:none}
.entrance-eyebrow{display:block;color:var(--muted);font-size:.67rem;font-weight:750;letter-spacing:.18em;margin-bottom:12px}
body:not(.in-room) .lobby{max-width:940px;margin:clamp(28px,5vh,60px) auto 0;padding-bottom:35px}
body:not(.in-room) .intro{text-align:center;margin-bottom:30px}
body:not(.in-room) .intro h1{font-size:clamp(2.5rem,5vw,4rem);letter-spacing:-.055em;line-height:1.04;margin-bottom:16px}
body:not(.in-room) .intro p{font-size:.95rem}
body:not(.in-room) .intro #open-tradingview-lobby{min-height:34px;font-size:.79rem;border-radius:99px;background:#ffffff60;border:1px solid #ffffffb0;margin-top:15px}
body:not(.in-room) .lobby-grid{grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);gap:24px;align-items:start}
body:not(.in-room) .card{border-radius:22px;background:radial-gradient(ellipse at 88% 8%,#9ec4e966,transparent 48%),#ffffffb8;border-color:#ffffffb5;backdrop-filter:blur(24px);box-shadow:0 24px 54px #203c4b20}
body:not(.in-room) .room-entry{padding:27px;gap:9px}
.entrance-host{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.entrance-host .brand-mark{width:44px;height:44px;border-radius:14px;flex-shrink:0}
.entrance-host h2{font-size:1.12rem;letter-spacing:-.03em}
.entrance-host p{font-size:.76rem;color:var(--muted);margin-top:4px;line-height:1.5}
body:not(.in-room) input:not([type='checkbox']){background:#ffffffba;border-color:#ffffff;border-radius:12px;min-height:45px;font-size:.88rem}
body:not(.in-room) #create{padding-top:18px}
body:not(.in-room) #create h2{font-size:.78rem;font-weight:700;color:var(--muted);margin-bottom:3px}
body:not(.in-room) button.primary{background:linear-gradient(105deg,#0878e9,#1254b2);color:white;border-radius:99px;min-height:45px;box-shadow:0 4px 10px #203c4b12}
body:not(.in-room) .join-row button{border-radius:99px;background:#ffffff85;min-width:105px}
.entrance-footnote{font-size:.66rem;color:var(--muted);text-align:center;margin-top:16px;line-height:1.7}
.invite-preview{font-size:.78rem;color:var(--accent);padding:10px 12px;background:var(--raised);border-radius:9px;margin-top:8px;overflow-wrap:anywhere}
body:not(.in-room) .card-heading{padding:25px 23px 18px}
body:not(.in-room) .card-heading h2{font-size:1.15rem;letter-spacing:-.035em}
body:not(.in-room) .card-heading .entrance-eyebrow{font-size:.6rem;margin-bottom:7px}
body:not(.in-room) .market-list button{min-height:57px;padding-inline:22px;font-size:.8rem;grid-template-columns:minmax(80px,.8fr) minmax(0,1fr) auto;border-color:#ffffff90}
body:not(.in-room) .market-list button span{font-size:.7rem}
body:not(.in-room) .market-list li:last-child button{border-radius:0 0 22px 22px}
body:not(.in-room) #status{max-width:940px;margin-inline:auto}
:root[data-theme='dark'] body:not(.in-room){background-color:#111c2c;background-blend-mode:multiply}
:root[data-theme='dark'] body:not(.in-room) .topbar{background:#152332bb;border-color:#ffffff14}
:root[data-theme='dark'] .entrance-nav{background:#172a3bb3;border-color:#ffffff20}
:root[data-theme='dark'] .entrance-nav button:hover{background:#ffffff12}
:root[data-theme='dark'] body:not(.in-room) .card{background:linear-gradient(150deg,#223c55dd,#172533ee);border-color:#ffffff20}
:root[data-theme='dark'] body:not(.in-room) input:not([type='checkbox']){background:#101d2caa;border-color:#ffffff20}
:root[data-theme='dark'] body:not(.in-room) .join-row button,:root[data-theme='dark'] body:not(.in-room) .intro #open-tradingview-lobby{background:#20364a;border-color:#ffffff20}
:root[data-theme='dark'] body:not(.in-room) .market-list button{border-color:#ffffff12}
.room-sidebar{grid-template-rows:auto minmax(170px,1fr) auto}
.private-notes-card{padding:14px;border-top:1px solid var(--line)!important}
.private-notes-card label{display:flex;justify-content:space-between;gap:8px;font-size:.8rem;margin-bottom:9px}
.private-notes-card label span{font-size:.66rem;color:var(--muted);font-weight:400}
#private-notes{display:block;width:100%;min-height:78px;max-height:180px;resize:vertical;border:1px solid var(--line);border-radius:8px;background:var(--chart);color:var(--ink);padding:9px;font:inherit;font-size:.8rem}
#notes-state{font-size:.65rem;color:var(--muted);margin-top:6px}
@media(max-width:1000px){.entrance-nav button{padding-inline:12px}body:not(.in-room) .topbar{padding-inline:20px}.private-notes-card{grid-column:1/-1}.room-sidebar{grid-template-rows:auto}}
@media(max-width:767px){body:not(.in-room){background-image:url('/assets/waves-phone.svg')}body:not(.in-room) .topbar{min-height:66px;flex-wrap:wrap;padding:14px 18px;gap:12px}.entrance-nav{order:3;width:100%;justify-content:center;margin:0}.entrance-theme{margin-left:auto;font-size:.75rem;min-height:34px}body:not(.in-room) main{padding-inline:18px}body:not(.in-room) .lobby{margin-top:28px}body:not(.in-room) .lobby-grid{grid-template-columns:minmax(0,1fr);gap:20px}body:not(.in-room) .room-entry{padding:22px}body:not(.in-room) .intro h1{font-size:2.7rem}body:not(.in-room) .intro p{font-size:.85rem;max-width:280px;margin:auto}.entrance-host p{font-size:.73rem}body:not(.in-room) input:not([type='checkbox']){font-size:16px}.entrance-footnote{font-size:.64rem}.private-notes-card{grid-column:auto}}
@media(min-width:768px) and (max-width:1100px){body:not(.in-room){background-image:url('/assets/waves-tablet.svg')}}
