:root{font-family:system-ui,'Malgun Gothic',sans-serif;color:#18332e;background:#f4f5ee;--ink:#17362f;--muted:#52635d;--dark:#103a32;--line:#d3dcd3;--paper:#fffef9;--accent:#bed64e}
*,*::before,*::after{box-sizing:border-box}body,h1,h2,h3,p{margin:0}body{min-height:100vh}a{color:inherit;text-decoration:none}button,input{font:inherit}img{max-width:100%;display:block}button:not(:disabled){cursor:pointer}button:disabled{opacity:.52}[hidden]{display:none!important}:focus-visible{outline:3px solid #217065;outline-offset:3px}
.shell{max-width:1330px;margin:auto;padding:0 clamp(16px,4vw,64px)}.bar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:80px;padding:16px 0}.logo{display:inline-flex;align-items:center;gap:10px;font-weight:850;font-size:1.15rem;letter-spacing:-.03em}.logo-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:14px;background:#163e33;color:#d5ed67;font-size:1.35rem}.languages,.site-links{display:flex;gap:14px;align-items:center;font-size:.875rem}.languages{padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#ffffff94}.languages [aria-current]{font-weight:800}.site-links{margin-inline-start:auto;font-weight:650}
.portal-hero,.tracker-hero{display:grid;grid-template-columns:1fr 1fr;min-height:390px;border-radius:26px;overflow:hidden;background:#12382f;color:#fff}.hero-copy{padding:clamp(30px,5.5vw,76px);align-self:center;position:relative;z-index:1}.wordmark{font-size:.85rem;font-weight:850;letter-spacing:.16em;color:#d6eb84;margin-bottom:16px}.hero-copy h1{font-size:clamp(2.3rem,5.4vw,5rem);line-height:1.04;letter-spacing:-.075em;font-weight:850;overflow-wrap:break-word}.hero-copy>p:not(.wordmark){max-width:37ch;line-height:1.65;color:#e4f0da;margin:19px 0 24px;font-size:clamp(1rem,1.65vw,1.16rem);word-break:keep-all}.portal-hero>img{width:100%;height:100%;object-fit:cover}.button{min-height:44px;display:inline-flex;justify-content:center;align-items:center;gap:10px;padding:9px 15px;border:1px solid var(--line);border-radius:10px;font-weight:750;background:white;color:var(--ink);line-height:1.2}.button:hover:not(:disabled){border-color:var(--ink);box-shadow:0 2px 5px #19383119}.button.white{background:#d5ec68;border-color:transparent}.button.primary{background:#155248;color:#fff;border-color:#155248}.portal section+section{margin-top:38px}.portal h2{font-size:clamp(1.65rem,3vw,2.25rem);font-weight:850;letter-spacing:-.04em;margin-bottom:17px}
.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.game-card{display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);border-radius:18px;overflow:hidden}.game-poster{aspect-ratio:2.5;position:relative;background:var(--theme)}.game-poster>img{width:100%;height:100%;object-fit:cover}.game-symbol{color:var(--theme);background:#fffef7;position:absolute;left:17px;bottom:-16px;display:grid;place-items:center;width:43px;height:43px;border-radius:13px;border:1px solid #cdd8cb;font-size:1.5rem;font-weight:800;box-shadow:0 2px 6px #36463728}.game-card.gold{--theme:#805021}.game-card.mint{--theme:#127066}.game-card.blue{--theme:#344abd}.game-card.violet{--theme:#62417b}.game-card.coral{--theme:#b45448}.game-card.teal{--theme:#11584c}.game-body{display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:26px 17px 16px;gap:8px}.game-body h3{font-size:1.14rem;font-weight:850;letter-spacing:-.03em}.game-body p{color:var(--muted);line-height:1.55;margin-bottom:8px;word-break:keep-all}.card-link{margin-top:auto;color:var(--theme);width:100%;justify-content:space-between;background:#f8faf4}.footer{display:flex;align-items:center;gap:15px;flex-wrap:wrap;min-height:80px;margin-top:36px;border-top:1px solid var(--line);font-size:.875rem;color:var(--muted)}.footer a,.sharing-panel a{text-decoration:underline;text-underline-offset:4px}
.poster-map{background-color:#b5d8c2;background-image:linear-gradient(32deg,transparent 35%,#f9f7dd 35%,#f9f7dd 41%,transparent 41%),linear-gradient(132deg,transparent 48%,#f9f7dd 48%,#f9f7dd 54%,transparent 54%),linear-gradient(118deg,transparent 30%,#82b3a6 30%,#82b3a6 36%,transparent 36%);background-size:120px 116px,180px 132px,148px 125px}.tracker-poster{position:relative;display:grid;place-items:center;min-height:260px}.floating-pin{display:grid;place-items:center;border-radius:50%;width:115px;height:115px;border:7px solid #e3f67b;background:#176254;color:white;box-shadow:0 12px 24px #314a3c60;font-size:4rem;line-height:1;z-index:2}.little-dot{position:absolute;top:24%;left:22%;width:32px;height:32px;border-radius:50%;background:#5478a7;border:4px solid white;box-shadow:0 0 0 12px #5478a748}.little-dot.second{top:auto;left:auto;right:17%;bottom:18%;background:#a15a56;box-shadow:0 0 0 12px #a15a5648}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.feature-grid article,.article section{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:23px}.feature-grid h2,.article h2{font-size:1.14rem;margin-bottom:8px;letter-spacing:-.02em}.feature-grid p,.article p{color:var(--muted);line-height:1.6;word-break:keep-all}.article{max-width:850px;display:grid;gap:14px;margin:25px auto}.article h1{font-size:clamp(1.9rem,4vw,3.2rem);letter-spacing:-.055em;margin-bottom:12px}.article .button{justify-self:start}
.entry{max-width:500px;margin:36px auto;background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:clamp(20px,5vw,40px)}.entry h1,.room-header h1{font-size:clamp(1.8rem,4vw,2.8rem);letter-spacing:-.06em}.entry>p{color:var(--muted);line-height:1.6;margin:10px 0 20px}.entry form{display:grid;gap:10px}.entry label{font-weight:750}.entry input{min-height:46px;padding:10px 13px;background:#f8faf4;color:var(--ink);border:1px solid #a2b6a6;border-radius:10px;width:100%}.notice{color:var(--muted);font-size:.94rem;min-height:1.2em}.entry .notice{color:#9b322d}.room-header{display:flex;align-items:center;justify-content:space-between;margin:18px 0;gap:12px;flex-wrap:wrap}.room-actions{display:flex;gap:9px;flex-wrap:wrap}.connection{margin-top:7px;display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-weight:650}.connection::before{content:'';width:9px;height:9px;border-radius:50%;background:#a76347}.connection[data-live=true]::before{background:#187865}.room-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(245px,1fr);gap:14px;align-items:stretch}.map-panel,.members-panel,.sharing-panel{background:var(--paper);border:1px solid var(--line);border-radius:16px;overflow:hidden}.map-panel{position:relative}#map{height:clamp(370px,56vh,640px);background:#c8ded5}.map-empty,.fit{position:absolute;z-index:450}.map-empty{bottom:26px;left:12px;max-width:75%;background:#fffef9;padding:8px 11px;border-radius:8px;box-shadow:0 2px 10px #153a2c38}.fit{top:9px;right:9px}.members-panel{padding:15px 16px}.members-panel h2{display:flex;align-items:center;gap:8px;font-size:1.1rem}.count{padding:3px 7px;border-radius:7px;background:#e1ede4;font-variant-numeric:tabular-nums}.members-panel ul{list-style:none;margin:8px 0 0;padding:0;max-height:54vh;overflow:auto}.members-panel li{padding:7px 0;border-top:1px solid #e2e9df;overflow-wrap:anywhere}.members-panel li button{width:100%;display:grid;text-align:start;gap:3px;padding:5px;border:0;color:var(--ink);background:transparent}.members-panel li span{color:var(--muted);font-size:.875rem}.sharing-panel{padding:14px 16px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:12px}.sharing-panel p{margin-inline-end:auto}.leaflet-container{font-family:inherit}body:has(.room) .footer{margin-top:22px}
@media(max-width:780px){.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-hero,.tracker-hero{min-height:0}.hero-copy{padding:28px}.room-layout{grid-template-columns:1fr}.members-panel ul{max-height:175px}.sharing-panel{position:relative}#map{height:clamp(300px,52vh,480px)}}
@media(max-width:520px){.bar{flex-wrap:wrap;min-height:62px}.site-links{font-size:.81rem;gap:8px}.languages{padding:6px 9px;gap:9px}.portal-hero,.tracker-hero{grid-template-columns:1fr}.portal-hero>img,.tracker-poster{height:190px;min-height:0}.game-grid,.feature-grid{grid-template-columns:1fr}.game-poster{aspect-ratio:2.75}.hero-copy h1{font-size:2.7rem}.game-body p{margin-bottom:4px}.sharing-panel .button{width:100%}}
.hero-copy h1{font-size:clamp(2.1rem,4.8vw,4.3rem);word-break:keep-all}.game-poster{flex:0 0 auto}.game-poster>img{position:absolute;inset:0}.sharing-panel{margin:0 0 12px}
.chat-panel{margin-top:14px;border:1px solid var(--line);border-radius:16px;background:var(--paper);overflow:hidden}.chat-panel summary{padding:14px 16px;cursor:pointer;font-weight:780;background:#e3eee6}.chat-panel summary .count{background:#155248;color:#fff;margin-left:6px}.chat-body{padding:14px 16px}.chat-log{min-height:9rem;max-height:17rem;overflow:auto;overflow-anchor:none;background:#f4f7f0;border-radius:10px;padding:12px}.chat-log>p{color:var(--muted)}.chat-log ol{margin:0;padding:0;list-style:none;display:grid;gap:9px}.chat-log li{max-width:min(88%,44rem);width:fit-content;overflow-wrap:anywhere}.chat-log .chat-mine{justify-self:end}.chat-log time{margin-left:8px;color:var(--muted);font-size:.875rem}.chat-log li p{background:#fff;border:1px solid var(--line);border-radius:9px;padding:5px 9px}.chat-log .chat-mine p{background:#dcece4}.chat-form{display:flex;gap:8px;margin-top:10px}.chat-form input{flex:1;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:9px}.chat-body>.notice{color:#a02522}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wemap-home .tracker-hero {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  background: radial-gradient(ellipse at 20% 60%, #22574e, #103732 69%);
  padding-right: clamp(15px, 3vw, 34px);
}
.wemap-home .hero-copy h1 { font-size: clamp(2rem, 4.3vw, 4.15rem); letter-spacing: -.064em; text-wrap: balance; }
.wemap-home .hero-copy > p { max-width: 34ch; }
.home-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-secondary { color: #fff; background: transparent; border-color: #8eafa4; }
.hero-secondary:hover:not(:disabled) { border-color: #fff; }
.map-preview {
  align-self: center;
  margin: 24px 0;
  background: #f8fbf6;
  color: #173c35;
  border: 1px solid #c5d9d1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px #0b1c1960;
  min-width: 0;
}
.map-preview figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
}
.map-preview figcaption span { color: #385a51; background: #e5eee1; padding: 4px 8px; border-radius: 6px; font-size: .875rem; }
#preview-map { height: clamp(220px, 28vw, 350px); isolation: isolate; background-color: #c3d9cf; }
#preview-map .leaflet-tooltip { font-size: .875rem; }
.preview-controls { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 12px; align-items: center; }
.preview-member {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 8px;
  border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); font-weight: 720;
}
.preview-member:hover:not(:disabled) { border-color: var(--line); background: #eaf2e9; }
.preview-member span { width: 9px; height: 9px; border-radius: 50%; background: #246959; }
.preview-member:nth-child(2) span { background: #2d5abd; }
.preview-member:nth-child(3) span { background: #a04465; }
#preview-move { margin-left: auto; }
.home-entry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.home-entry article { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(15px, 3vw, 25px); border: 1px solid var(--line); border-radius: 14px; }
.home-create { background: #deeee4; }
.home-join { background: #fff; scroll-margin-top: 12px; }
.home-entry h2, .home-section > h2, .home-faq h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -.045em; }
.home-entry article p, .home-workflow p, .home-faq details p { color: #36584e; line-height: 1.65; word-break: keep-all; }
#invite-form { margin-top: auto; }
#invite-form { display: flex; gap: 8px; width: 100%; }
#invite-link { flex: 1; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #789a8c; border-radius: 9px; background: #f8faf7; color: var(--ink); }
#invite-link[aria-invalid="true"] { border-color: #a02b2b; }
#invite-error { color: #9b2323; }
.guide-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(205px, .58fr); gap: 15px; }
.guide-content > div { display: grid; gap: 12px; align-content: start; }
.guide-example { margin: 0; padding: 9px; background: #dfede6; border: 1px solid var(--line); border-radius: 14px; }
.guide-example img { width: 100%; height: auto; border-radius: 8px; }
.guide-example figcaption { padding: 10px 5px 2px; color: #284c42; line-height: 1.45; }
.home-section { margin-top: clamp(30px, 6vw, 60px); }
.home-workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: wemap-step; }
.home-workflow li { position: relative; padding: 20px 16px 20px 55px; border: 1px solid var(--line); border-radius: 12px; background: #fff; counter-increment: wemap-step; }
.home-workflow li::before { content: counter(wemap-step); position: absolute; top: 18px; left: 14px; border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; background: #1a594b; color: #fff; font-weight: 750; }
.home-workflow h3 { margin-bottom: 6px; font-size: 1.06rem; }
.home-faq { display: grid; grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr); gap: 18px; padding: 22px; background: #e7f0ed; border-radius: 14px; }
.home-faq h2 { margin-bottom: 13px; }
.home-faq details { padding: 11px 0; line-height: 1.5; }
.home-faq details + details { border-top: 1px solid #b4c8c1; }
.home-faq summary { cursor: pointer; font-weight: 760; padding-block: 4px; }
.home-faq details p { padding-top: 4px; }
@media (max-width: 820px) {
  .home-workflow { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .wemap-home .tracker-hero { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .map-preview { margin: 0 12px 12px; }
  .home-entry, .home-faq { grid-template-columns: 1fr; }
  .guide-content { grid-template-columns: minmax(0, 1fr); }
  .guide-example { justify-self: center; width: min(100%, 380px); }
  .wemap-home .hero-copy > p { margin-bottom: 16px; }
}
@media (max-width: 350px) {
  #invite-form { flex-wrap: wrap; }
  #invite-link { flex-basis: 100%; }
}

.home-cases > p { color: var(--muted); margin: 8px 0 16px; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.case-grid article { padding: 20px; border: 1px solid #a8c3b5; border-radius: 14px; background: #edf3e9; }
.case-grid article:nth-child(2) { background: #f5eedb; border-color: #d9c89b; }
.case-grid article:nth-child(3) { background: #e5edf5; border-color: #b2c3d6; }
.case-grid h3 { margin-bottom: 6px; font-size: 1.05rem; }
.case-grid p { color: var(--muted); line-height: 1.6; word-break: keep-all; }
.article-actions, .article-related { display: flex; flex-wrap: wrap; gap: 12px; }
.entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.language-picker { position: relative; z-index: 900; }
.language-picker summary { padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; font-weight: 750; }
.language-picker .languages { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 6px); min-width: 10rem; display: grid; gap: 0; background: var(--paper); box-shadow: 0 8px 24px #17362f30; }
.language-picker .languages a { padding: 9px 8px; }
.language-picker .languages [aria-current] { border-radius: 7px; background: #e4efe8; }
.bar > .languages { flex-wrap: wrap; justify-content: end; }
.skip-link { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; transform: translateY(-150%); z-index: 1000; background: var(--ink); color: white; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { transform: none; }
.doc-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 4px 14px; color: var(--muted); }
.doc-breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.doc-layout { display: grid; grid-template-columns: minmax(145px, 215px) minmax(0, 1fr); gap: clamp(14px, 3vw, 28px); align-items: start; }
.doc-sidebar { position: sticky; top: 14px; display: grid; gap: 10px; }
.doc-nav, .doc-contents { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.doc-nav { display: grid; padding: 6px; gap: 4px; }
.doc-nav a, .doc-contents summary { padding: 10px 11px; border-radius: 8px; font-weight: 700; }
.doc-nav [aria-current] { background: #d5e8db; color: #12382f; }
.doc-contents summary { cursor: pointer; }
.doc-contents ol { margin-block: 0 12px; padding-inline: 35px 12px; }
.doc-contents li { margin-block: 7px; }
.doc-layout > .article { margin: 0; max-width: none; min-width: 0; }
.doc-intro { padding: clamp(18px, 4vw, 35px); border-radius: 16px; background: #e3eee4; }
.doc-intro > p { margin-bottom: 14px; }
.doc-layout .article section { scroll-margin-top: 14px; }
[dir=rtl] #map, [dir=rtl] .poster-map { direction: ltr; }
@media (max-width: 700px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-sidebar { position: static; }
  .doc-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.article-related a, #invite-retry { text-decoration: underline; text-underline-offset: 4px; }
.article-related { padding-block: 8px; }
.room-layout { align-items: start; }
.sharing-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 14px; }
#sharing-status { display: flex; align-items: baseline; gap: 8px; color: var(--ink); font-weight: 750; overflow-wrap: anywhere; word-break: keep-all; }
#sharing-status::before { content: ''; inline-size: 9px; block-size: 9px; flex: 0 0 9px; border-radius: 50%; background: #7b8986; }
#sharing-status[data-state=active]::before { background: #14785e; }
#sharing-status:is([data-state=waiting], [data-state=paused])::before { background: #aa6017; }
#sharing { width: auto; max-inline-size: 100%; min-height: 44px; padding-inline: 12px; word-break: keep-all; overflow-wrap: anywhere; }
#sharing-status[data-state=active] { color: #12513b; }
#sharing-status:is([data-state=waiting], [data-state=paused]) { color: #794611; }
.room-team { min-inline-size: 0; display: grid; gap: 8px; }
.room-team-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.room-team-toggle { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 6px 8px; border: 1px solid #a4beb3; border-radius: 12px; color: #174b3f; background: #fffef9; font-weight: 750; line-height: 1.35; cursor: pointer; overflow-wrap: anywhere; }
.room-team-toggle .count { display: inline-block; padding: 1px 5px; margin-inline-start: 1px; }
.room-team-toggle { font-size: 1rem; word-break: keep-all; overflow-wrap: normal; }
.room-team-toggle:lang(ko) > span { white-space: nowrap; }
.room-team-toggle[aria-expanded=true] { background: #deeee4; border-color: #397762; color: #103d30; }
.room-team-toggle { -webkit-tap-highlight-color: transparent; }
.room-team-toggle:active { background: #deeee4; }
.room-team-toggle svg { flex: 0 0 19px; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.room-team-chevron { flex: 0 0 8px; width: 8px; height: 8px; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-2px) rotate(45deg); }
.room-team-toggle[aria-expanded=true] .room-team-chevron { transform: translateY(2px) rotate(225deg); }
.room-invite { min-inline-size: 0; border: 1px solid #a9c3b7; border-radius: 16px; background: #f5faf4; }
.room-invite-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
.room-invite-layout .room-qr { width: 156px; justify-self: center; }
.members-panel { min-inline-size: 0; }
.members-panel li button { min-height: 44px; }
.members-panel ul { margin-block-start: 0; }
@media (max-width: 780px) {
  .shell:has(#live:not([hidden])) > .bar { flex-wrap: nowrap; min-height: 54px; gap: 6px; padding: 6px 0; }
  .shell:has(#live:not([hidden])) > .bar .logo { gap: 6px; font-size: 1rem; }
  .shell:has(#live:not([hidden])) > .bar .logo-icon { width: 32px; height: 32px; }
  .shell:has(#live:not([hidden])) > .bar .site-links { font-size: .875rem; line-height: 1.25; word-break: keep-all; }
  .shell:has(#live:not([hidden])) > .bar .language-picker summary { min-height: 44px; padding: 9px 7px; font-size: .875rem; white-space: nowrap; }
  .shell:has(#live:not([hidden])) > .bar .language-picker summary span { display: none; }
  .room-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .room-header { margin-block: 10px; gap: 6px; }
  .room-header h1 { font-size: clamp(1.4rem, 6vw, 1.85rem); }
  .room-header .connection { margin-top: 2px; font-size: .875rem; }
  .sharing-panel { margin-block-end: 8px; padding: 8px 10px; }
  #sharing { max-inline-size: min(9rem, 37vw); }
  #map { height: clamp(220px, calc(100svh - 300px), 500px); }
  .room-team-toolbar { position: sticky; inset-block-start: env(safe-area-inset-top, 0px); z-index: 550; background: #f4f5ee; }
  .members-panel ul { max-height: min(36svh, 300px); }
}
.room-invite-note { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.room-qr { margin: 0; max-width: 200px; text-align: center; }
.room-qr img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.room-qr figcaption { margin-top: 6px; color: var(--muted); }
.room-invite-actions, .room-invite-fields { display: grid; align-items: start; gap: 7px; min-width: 0; }
.room-invite-actions label { font-weight: 700; }
.room-invite-copy { --copy-button-size: 2.75rem; display: grid; grid-template-columns: minmax(0, 1fr) var(--copy-button-size); gap: 8px; margin-bottom: 4px; }
.room-invite-copy input { min-width: 0; min-height: var(--copy-button-size); width: 100%; padding: 8px 10px; background: #fff; border: 1px solid #a9c3b7; border-radius: 10px; color: var(--ink); }
.room-invite-copy .button { align-self: center; inline-size: var(--copy-button-size); block-size: var(--copy-button-size); min-height: 0; padding: 0; border-color: #a9c3b7; }
.room-signals { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.room-signals:has(:not([hidden])) { margin-bottom: 12px; }
#meeting-point { background: #faebcc; color: #624110; border-color: #cfaa5c; }
#emergency-alert { padding: 8px 12px; border: 1px solid #d09595; border-radius: 8px; background: #fae6e5; color: #8e2127; font-weight: 700; overflow-wrap: anywhere; }
.room-header .connection { font-size: 1rem; margin: 0; }
.room-actions { align-items: center; }
.sharing-actions { display: flex; align-items: stretch; gap: 8px; }
.sharing-actions .button { width: auto; min-height: 44px; font-size: 1rem; word-break: keep-all; }
.map-tools { position: absolute; top: 9px; right: 9px; display: flex; gap: 6px; z-index: 450; }
.map-tools .button, .fit { min-height: 44px; padding-inline: 10px; font-size: .875rem; }
#map { position: relative; z-index: 0; }
#member-directions { position: absolute; inset: 0; z-index: 440; pointer-events: none; }
.map-direction { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; min-height: 44px; max-inline-size: 112px; padding: 4px 8px; pointer-events: auto; direction: ltr; border: 1px solid #163b32; border-radius: 999px; background: #174b3f; color: #fff; box-shadow: 0 2px 7px #102f2b60; font-size: .875rem; font-weight: 750; line-height: 1.2; }
.map-direction[data-online=false] { background: #4a5652; border-color: #36413d; }
.map-direction-arrow { flex: none; transform: rotate(var(--direction-angle)); font-size: 1.05rem; }
.map-direction-name { min-width: 0; unicode-bidi: plaintext; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-direction-count { flex: none; }
.map-direction-count:empty { display: none; }
#direction-members { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
#direction-members .button { width: 100%; justify-content: start; text-align: start; }
.map-tools [aria-pressed=true] { background: #175448; color: #fff; }
.fit { top: auto; bottom: 24px; }
#place-hint { inset-block-start: 61px; inset-block-end: auto; background: #174b3f; color: white; }
#map.place-selecting { cursor: crosshair; }
.room-dialog { inline-size: min(calc(100% - 24px), 30rem); max-block-size: min(80dvh, 620px); margin: auto; padding: 16px; border: 1px solid #8fb2a3; border-radius: 16px; background: #fffef9; color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.room-dialog::backdrop { background: #0e30265c; }
.room-dialog h2, .room-dialog h3 { font-size: 1.125rem; padding-inline-end: 48px; min-height: 44px; display: flex; align-items: center; }
.room-dialog-close { position: absolute; inset-block-start: 10px; inset-inline-end: 12px; inline-size: 44px; block-size: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 1.5rem; }
.room-dialog .member-label-form { padding: 0; margin: 0; border: 0; background: transparent; }
.room-dialog form { display: grid; gap: 8px; }
.room-dialog input:not([type=checkbox], [type=radio]) { inline-size: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid #a9c3b7; border-radius: 9px; font-size: 1rem; }
.address-query { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
#address-results { margin: 0; padding: 0; list-style: none; }
#address-results li + li { margin-block-start: 6px; }
#address-results .button { width: 100%; justify-content: start; text-align: start; }
.address-source { font-size: .875rem; color: var(--muted); margin-block-start: 8px; }
.address-source a { text-decoration: underline; }
.place-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.room-member-marker svg, .shared-place-marker svg { position: absolute; left: 50%; translate: -50% 0; pointer-events: none; }
.room-member-marker svg {
  top: 50%; translate: -50% -50%; width: 14px; height: 14px;
  fill: var(--marker-color); fill-opacity: .9; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round;
}
.room-member-marker[data-own] svg { width: 16px; height: 16px; }
.room-member-marker[data-selected] svg { stroke: #163933; }
.room-member-marker[data-stale] svg { fill-opacity: .4; stroke-dasharray: 2 2; }
.shared-place-marker svg { bottom: 5px; width: 17px; height: 22px; fill: #85472b; stroke: #fffef8; stroke-width: 2; }
.shared-place-marker circle { fill: #fffef8; }
#map.place-selecting :is(.room-member-marker, .shared-place-marker, button.pin-label) { pointer-events: none; }
.place-caption { display: flex; gap: 5px; align-items: center; font-size: .875rem; white-space: normal; overflow-wrap: anywhere; }
.place-caption svg { width: 16px; height: 16px; }
.shared-place-caption { inline-size: max-content; max-inline-size: min(12rem, 60vw); }
@media (max-width: 780px) {
  .sharing-panel { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sharing-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  #sharing { max-inline-size: none; width: 100%; }
  #map { height: clamp(220px, calc(100svh - 325px), 500px); }
}
@media (max-width: 360px) {
  .room-team-toggle { padding-inline: 5px; gap: 4px; }
  .room-team-toggle > svg { display: none; }
  .room-team-toggle .count { padding-inline: 4px; }
}
.member-numbers { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.member-numbers input { inline-size: 18px; block-size: 18px; accent-color: var(--dark); }
.members-panel .member-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.members-panel .member-name strong { color: var(--ink); }
.members-panel .member-presence, .members-panel .member-alert { padding: 2px 7px; border-radius: 999px; background: #e5e9e6; color: #48554e; font-weight: 650; white-space: nowrap; }
.members-panel .member-presence[data-online=true] { color: #135137; background: #e0efe2; }
.members-panel .member-alert { color: #8e2127; background: #fae6e5; }
.members-panel li button[aria-pressed=true] { background: #e2eee8; outline: 2px solid #438171; border-radius: 8px; }
.member-label-form { display: grid; gap: 9px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf4; min-width: 0; }
.member-label-form h3 { font-size: 1.125rem; line-height: 1.4; font-weight: 700; }
.member-label-form label, .label-icon-field legend { font-weight: 700; overflow-wrap: anywhere; }
#selected-member { color: var(--muted); overflow-wrap: anywhere; }
#member-label-heading { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; }
#member-label-heading > span:first-child { flex: none; }
.label-icon-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.label-icon-field legend { margin-bottom: 7px; }
.label-icon-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.label-icon-choice { display: block; position: relative; min-width: 0; }
.label-icon-choice:last-child { grid-column: 1 / -1; }
.label-icon-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.label-icon-choice > span {
  min-height: 44px; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--status-ink, var(--ink)); font-size: .875rem; cursor: pointer;
}
.label-icon-choice svg, .pin-status svg { flex: none; }
.label-icon-choice input:checked + span { background: var(--status-bg, #e5eee4); border-color: currentColor; }
.label-icon-choice input:focus-visible + span { outline: 2px solid var(--dark); outline-offset: 2px; }
.label-icon-field:disabled .label-icon-choice > span { opacity: .64; cursor: default; }
#member-label { min-width: 0; width: 100%; min-height: 48px; padding: 8px 10px; border: 1px solid #a9c3b7; border-radius: 9px; }
.member-label-form .label-icon-options, #place-form .label-icon-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.member-label-form .label-icon-choice:last-child, #place-form .label-icon-choice:last-child { grid-column: auto; }
.member-label-form .label-icon-choice > span, #place-form .label-icon-choice > span { padding-inline: 5px; gap: 4px; justify-content: center; overflow-wrap: normal; word-break: keep-all; }
#member-label-dialog { padding: 10px 12px 12px; }
#member-label-dialog .member-label-form { gap: 5px; }
#member-label-dialog h3 { align-items: center; }
#member-label-dialog .room-dialog-close { inset-block-start: 10px; }
.member-label-form .notice:empty { display: none; }
.label-actions { display: grid; gap: 4px; }
.label-actions .button { min-height: 44px; }
[data-icon=emergency] { --status-bg: #fae4e4; --status-ink: #8c252a; }
[data-icon=gather] { --status-bg: #e2e9fa; --status-ink: #204f8d; }
[data-icon=warning] { --status-bg: #faedcc; --status-ink: #714500; }
[data-icon=done] { --status-bg: #dfeedc; --status-ink: #225736; }
.pin-label { display: flex; flex-direction: column; align-items: center; gap: 2px; }
button.pin-label { pointer-events: auto; justify-content: end; min-block-size: 44px; padding: 0; border: 0; background: transparent; color: inherit; text-align: center; }
button.pin-label:focus { outline: none; }
button.pin-label:focus-visible:not([data-pointer-return]) .pin-name { outline: 2px solid #217065; outline-offset: 2px; }
.pin-status { display: inline-flex; align-items: center; gap: 4px; max-inline-size: 100%; padding: 3px 7px; border-radius: 7px; background: var(--status-bg, #e5eee4); color: var(--status-ink, var(--ink)); font-size: .875rem; font-weight: 700; line-height: 1.35; }
.pin-status svg { width: 16px; height: 16px; }
.pin-status-text, .pin-name { white-space: normal; overflow-wrap: anywhere; }
#map .room-pin-tooltip { inline-size: max-content; max-inline-size: min(18rem, 65vw); padding: 0; border: 0; background: transparent; box-shadow: none; }
#map .room-pin-tooltip::before { display: none; }
.pin-name { padding: 3px 7px; border: 1px solid #b7cbc2; border-radius: 7px; background: #fffef9; color: var(--ink); font-size: .875rem; line-height: 1.35; }
.pin-label[data-selected=true] .pin-name { background: #174e40; border-color: #174e40; color: #fff; }
.pin-effect-field {
  display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr) 48px; gap: 7px; align-items: center;
}
.pin-effect-field label { max-inline-size: 6.5rem; font-size: .875rem; font-weight: 700; overflow-wrap: anywhere; }
.pin-effect-field select {
  width: 100%; min-width: 0; min-height: 44px; padding-inline: 8px;
  border: 1px solid #a9c3b7; border-radius: 8px; background: #fff; color: var(--ink); font-size: 1rem;
}
.pin-effect-preview {
  align-self: stretch; position: relative; min-height: 44px;
  overflow: hidden; border: 1px solid #c7d8c9; border-radius: 9px;
  background: repeating-linear-gradient(135deg, #e2ede0 0 11px, #edf3e9 11px 22px);
}
.pin-effect-preview::after {
  content: ""; position: absolute; inset: 50% auto auto 50%; width: 10px; height: 10px;
  border: 2px solid #fff; border-radius: 50%; background: #174e40; translate: -50% -50%;
}
#map .leaflet-pin-effects-pane { z-index: 390; pointer-events: none; }
.pin-effect-art { position: absolute; inset: 0; pointer-events: none; }
.pin-effect-art i { position: absolute; display: none; }
.pin-effect-art[data-effect=ring] i:nth-child(-n+2) {
  display: block; inset: 18%; border: 2px solid #167b76; border-radius: 50%;
  background: #a2fff11a; opacity: .77; animation: pin-effect-ripple 2.8s ease-out infinite;
}
.pin-effect-art[data-effect=ring] i:nth-child(2) { animation-delay: -1.4s; }
@keyframes pin-effect-ripple {
  from { transform: scale(.58); opacity: .84; }
  85%, to { transform: scale(1.46); opacity: 0; }
}
.pin-effect-art[data-effect=sparkle] i {
  display: block; width: 16%; aspect-ratio: 1;
  background: #e0a429; clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
  animation: pin-effect-twinkle 3.1s ease-in-out infinite alternate;
}
.pin-effect-art[data-effect=sparkle] i:nth-child(1) { left: 19%; top: 26%; }
.pin-effect-art[data-effect=sparkle] i:nth-child(2) { left: 68%; top: 23%; animation-delay: -.9s; }
.pin-effect-art[data-effect=sparkle] i:nth-child(3) { left: 71%; top: 60%; animation-delay: -1.8s; }
.pin-effect-art[data-effect=sparkle] i:nth-child(4) { left: 15%; top: 61%; animation-delay: -2.7s; }
@keyframes pin-effect-twinkle {
  from { transform: scale(.65); opacity: .55; }
  to { transform: scale(1.35); opacity: 1; }
}
.pin-effect-art[data-effect=spotlight] {
  background: radial-gradient(circle closest-side, #fff3a5bb 2%, #ffe45f72 46%, transparent 100%);
}
.pin-effect-art[data-effect=spotlight] i:first-child {
  display: block; inset: 23%; border: 2px solid #9d641f; border-radius: 50%;
  box-shadow: inset 0 0 0 2px #fffbbe, 0 0 0 2px #fff7c69c;
}
@media (prefers-reduced-motion: reduce) {
  .pin-effect-art[data-effect=ring] i:nth-child(-n+2), .pin-effect-art[data-effect=sparkle] i { animation: none; }
  .pin-effect-art[data-effect=ring] i:nth-child(2) { inset: 24%; }
}
#room-code { font-weight: 750; letter-spacing: .035em; }
#share-invite { justify-self: start; }
#invite-status:empty { display: none; }
@media (max-width: 600px) {
  .case-grid, .room-invite-layout { grid-template-columns: minmax(0, 1fr); }
  .room-qr { width: 164px; justify-self: center; }
}
@media (max-width: 1023px) {
  .room-invite-copy { --copy-button-size: 3rem; }
}

/* Active rooms use the viewport for the map. Controls stay on independent layers. */
body:has(#live:not([hidden])) { overflow: hidden; overscroll-behavior: none; }
.shell:has(#live:not([hidden])) > :is(.bar, .footer) { display: none; }
#live {
  position: fixed; inset: 0; z-index: 1; isolation: isolate; block-size: 100dvh;
  --room-left: max(10px, env(safe-area-inset-left, 0px));
  --room-right: max(10px, env(safe-area-inset-right, 0px));
  --room-top: max(10px, env(safe-area-inset-top, 0px));
  --room-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  --window-gutter: 16px;
  --window-bottom-gap: max(var(--window-gutter), calc(env(safe-area-inset-bottom, 0px) + 8px));
  --window-bottom: calc(var(--window-bottom-gap) + var(--room-keyboard, 0px));
  --window-visible-height: min(100dvh, var(--room-viewport, 100dvh));
  --map-zoom-top: 66px;
  --map-control-size: 44px;
  --map-control-frame: calc(var(--map-control-size) + 2px);
  --overlay: rgb(255 254 249 / .78);
  --overlay-panel: rgb(255 254 249 / .94);
}
#live :is(.room-layout, .map-panel, #map) {
  position: absolute; inset: 0; display: block; margin: 0; block-size: 100%;
  border: 0; border-radius: 0;
}
#live .map-panel { overflow: visible; }
#live .room-top-row {
  position: absolute; top: var(--room-top); inset-inline: 0; z-index: 460; direction: ltr;
}
#live .room-top {
  width: 100%; padding: 2px var(--room-right) 2px var(--room-left); border-block: 1px solid #a4beb3; background: var(--overlay);
  box-shadow: 0 3px 14px #17362f35;
}
#live .room-top:lang(ar) :is(h1, #connection-label) { direction: rtl; }
#live .room-header { margin: 0; gap: 4px; flex-wrap: nowrap; }
#live .room-title { display: flex; flex: 1 1 auto; align-items: center; gap: 4px; min-width: 0; }
#live .room-logo { flex: none; width: 36px; height: 36px; border-radius: 9px; }
#live .room-header { min-height: 44px; }
#live .room-header h1 { font-size: 1rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#live .room-actions { flex: none; flex-wrap: nowrap; gap: 2px; align-items: center; }
#live .room-actions .connection { gap: 4px; font-size: .875rem; white-space: nowrap; }
#live .room-control-rail {
  --rail-gap: 6px;
  --rail-top: max(var(--map-zoom-top), calc(var(--room-viewport-top, 0px) + 8px));
  --rail-bottom: calc(var(--room-bottom) + var(--room-keyboard, 0px));
  --rail-row: clamp(34px, calc((100dvh - var(--rail-top) - var(--rail-bottom) - 34px) / 10), var(--map-control-size));
  position: absolute; left: var(--room-left); top: var(--rail-top); bottom: var(--rail-bottom); z-index: 455;
  width: var(--map-control-frame); display: flex; flex-direction: column; gap: var(--rail-gap); pointer-events: none; direction: ltr;
}
#live .room-primary-controls {
  display: flex; flex-direction: column; gap: var(--rail-gap); flex: 1 1 auto; min-height: 0;
  overflow: auto; overscroll-behavior: contain; scrollbar-width: none;
}
#live .room-primary-controls > * { flex: none; }
#live .room-bottom-tools {
  display: grid; gap: var(--rail-gap); flex: none; pointer-events: auto;
}
#live .room-bottom-tools :is(#leave, summary) {
  position: relative; isolation: isolate; width: var(--map-control-frame);
  height: var(--rail-row); min-height: var(--rail-row); border: 0; background: transparent; box-shadow: none;
}
#live .room-bottom-tools :is(#leave, summary)::after {
  content: ''; position: absolute; inset: 3px 0; z-index: -1; pointer-events: none;
  border: 1px solid #a4beb3; border-radius: 6px; background: var(--overlay);
}
#live .room-bottom-tools :is(#leave, summary):hover::after { border-color: var(--ink); }
#live #room-preferences summary {
  display: grid; place-items: center; padding: 0; border-radius: 6px; font-size: .875rem; line-height: 1;
}
#live #room-preferences summary::-webkit-details-marker { display: none; }
#live #room-preferences .languages {
  inset: auto auto calc(100% + 6px) 0; z-index: 10; margin: 0; border-radius: 8px;
  background: var(--overlay-panel); max-height: min(52dvh, 300px); overflow: auto;
}
#live #sharing {
  position: relative; isolation: isolate;
  width: auto; max-width: none; min-height: 44px; margin: 0; padding: 0 7px;
  border: 0; border-radius: 8px; background: transparent; box-shadow: none;
  color: var(--ink); white-space: nowrap;
}
#live #sharing::after {
  content: ''; position: absolute; inset: 6px 0; z-index: -1; pointer-events: none;
  border: 1px solid #a4beb3; border-radius: 8px; background: var(--overlay);
}
#live #sharing:hover:not(:disabled)::after { border-color: var(--ink); }
#live #sharing::before { background: #687b74; }
#live #sharing[data-sharing]::before { background: #187865; }
#live .room-actions:has(#connection[data-live=false]) #sharing[data-sharing]::before { background: #a76347; }
#live #sharing-status { font-size: .875rem; line-height: 1.35; }
#live #sharing-status:not(.visually-hidden) {
  position: absolute; top: var(--map-zoom-top); left: 50%; transform: translateX(-50%); z-index: 449;
  width: max-content; max-width: calc(100% - 126px); text-align: center; text-shadow: 0 1px 3px #fff, 0 0 3px #fff;
}
#live #sharing-status::before { content: none; }
#live #sharing-status:is([data-state=waiting], [data-state=paused]) { color: #8c430b; }
#live .room-signals:has(:not([hidden])) { margin: 4px 0 0; }
#live .map-tools {
  position: static; display: grid; gap: 0; padding: 0; pointer-events: auto;
}
#live .room-square {
  width: var(--map-control-size); height: var(--map-control-size); min-height: var(--map-control-size);
  padding: 0; background: var(--overlay); color: var(--ink);
}
#live :is(.map-tools .button, .leaflet-bar a) {
  width: var(--map-control-size); height: var(--rail-row); min-height: var(--rail-row);
  padding: 0; background: var(--overlay); color: var(--ink);
}
#live .map-tools .button { border: 0; border-radius: 0; }
#live .map-tools .button + .button { border-block-start: 1px solid #a4beb3; }
#live :is(.map-tools .button, .leaflet-control-zoom a, .room-team-toggle):focus-visible { outline-offset: -3px; }
#live .room-team-toggle {
  position: relative; display: grid; place-items: center;
  min-height: var(--rail-row); padding: 0; border: 0; border-radius: 0;
  width: 100%; background: transparent;
  font-size: .875rem; line-height: 1.18; word-break: keep-all; overflow-wrap: anywhere;
}
#live :is(.map-tools, .room-square, .room-team-toggle, #sharing) svg {
  width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
#live #room-zoom-tools .leaflet-control { float: none; margin: 0; }
#live .leaflet-bar a { line-height: var(--rail-row); }
#live :is(.map-tools, .leaflet-control-zoom, .room-team-toolbar) {
  box-sizing: border-box; width: var(--map-control-frame); overflow: hidden;
  border: 1px solid #a4beb3; border-radius: 6px; box-shadow: 0 3px 10px #17362f35;
}
#live .room-team {
  position: absolute; inset: 0; z-index: 455; display: block; pointer-events: none;
}
#live .room-team-toolbar {
  position: static; z-index: auto; overflow: visible; margin-block-start: auto;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
  background: var(--overlay); pointer-events: auto;
}
#live .room-team-toolbar > * + * { border-block-start: 1px solid #a4beb3; }
#live .room-dock-icon { display: grid; place-items: center; }
#live .room-dock-icon .count { position: absolute; top: 1px; right: 1px; padding: 1px 3px; margin: 0; font-size: .6875rem; line-height: 1.1; }
#live .room-team-toggle:is(:hover, :focus-visible), #live .map-tools .button:is(:hover, :focus-visible) { background: #e6f0e8; }
#live .room-team-toggle[aria-expanded=true], #live .map-tools [aria-pressed=true] { background: rgb(214 233 221 / .94); }
#live #chat-toggle { border-radius: 0 0 5px 5px; }
#live .room-side-panel {
  --side-panel-right: max(var(--window-gutter), env(safe-area-inset-right, 0px));
  overflow: auto; overscroll-behavior: contain; pointer-events: auto;
  margin: 0; border: 1px solid #a4beb3; border-radius: 12px; background: rgb(255 254 249 / .82);
  box-shadow: 0 3px 14px #17362f35;
  position: fixed; right: var(--side-panel-right); bottom: var(--window-bottom);
  top: max(var(--map-zoom-top), calc(var(--room-viewport-top, 0px) + var(--window-gutter)));
  width: min(26rem, calc(100% - var(--room-left) - var(--side-panel-right) - 58px));
  padding: 8px 10px; animation: side-panel-in 200ms ease-out;
}
#live .drawer-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 4px; }
#live .drawer-heading h2 { font-size: 1rem; }
#live .drawer-close { min-width: 44px; padding: 0; font-size: 1.25rem; background: var(--overlay); }
#live .room-invite-layout { padding: 4px; }
#live #chat-panel:not([hidden]) { display: flex; flex-direction: column; overflow: hidden; }
#live #chat-panel > :is(.drawer-heading, .chat-form, #chat-status) { flex: none; }
#live .chat-log { flex: 1 1 auto; min-height: 0; max-height: none; background: rgb(244 247 240 / .58); }
#live .chat-log ol { min-height: 3rem; }
#live #chat-status:empty { display: none; }
#live #chat-text { min-width: 0; font-size: 1rem; }
#live:has(.room-side-panel:not([hidden])) #map-empty { visibility: hidden; }
#live :is(#map-empty, #place-hint) {
  bottom: calc(var(--room-bottom) + 52px); left: calc(var(--room-left) + 58px); top: auto;
  max-width: calc(100% - var(--room-left) - var(--room-right) - 58px);
  background: var(--overlay); word-break: keep-all;
}
#live #place-hint { background: rgb(23 75 63 / .92); }
#live .map-panel:has(#place-hint:not([hidden])) #map-empty { display: none; }
#live .room-dialog {
  --dialog-max-width: 34rem;
  max-block-size: min(620px, calc(var(--window-visible-height) - var(--window-bottom-gap) - var(--window-gutter)));
  background: var(--overlay-panel);
}
#live[data-keyboard] .room-dialog { position: fixed; inset-block: auto var(--window-bottom); margin-block: 0; }
#live .leave-confirmation { --dialog-max-width: 23rem; width: min(23rem, calc(100% - 24px)); }
#live .leave-confirmation h2 { min-height: auto; padding: 0; }
#live .leave-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 14px; }
#live :is(#member-label-dialog .label-actions, #place-dialog .place-actions, .leave-actions) {
  position: sticky; inset-block-end: 0; padding-block-start: 4px; background: var(--paper);
}
#live #place-status:empty { display: none; }
#live #sharing-help { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; }
#live #sharing-help summary { min-height: 44px; padding: 11px; font-size: .875rem; font-weight: 650; cursor: pointer; }
#live .sharing-help-content { max-height: min(36dvh, 16rem); overflow: auto; padding: 0 11px 11px; font-size: .875rem; }
#live .sharing-help-content h3 { min-height: auto; padding: 0; margin: 6px 0 2px; font-size: .875rem; }
#live .sharing-help-content section + section { margin-top: 10px; }
#live .map-direction { background: rgb(23 75 63 / .92); }
#live .map-direction[data-online=false] { background: rgb(74 86 82 / .92); }
#live #member-directions[data-compact] .map-direction { width: 44px; padding: 0; justify-content: center; }
#live #member-directions[data-compact] .map-direction-name { display: none; }
#live #member-directions[data-compact] .map-direction-count { position: absolute; top: 3px; right: 3px; font-size: .625rem; }
@keyframes side-panel-in { from { translate: calc(100% + var(--side-panel-right)) 0; } }
@media (prefers-reduced-motion: reduce) {
  #live .room-side-panel { animation: none; }
}
@media (max-width: 780px) {
  #live .room-dialog {
    position: fixed;
    inset: auto max(var(--window-gutter), env(safe-area-inset-right, 0px)) var(--window-bottom) max(var(--window-gutter), env(safe-area-inset-left, 0px));
    inline-size: auto; max-inline-size: var(--dialog-max-width); margin: 0 auto;
  }
}

/* Playfunzy's home typography, from design/v3-experience.mjs. */
.wemap-landing {
  --home-brand-size: 1.5rem;
  --home-title-size: 1.875rem;
  --home-title-leading: 1.3;
  --home-section-size: 1.25rem;
  --home-card-size: 1.125rem;
  --home-body-size: 1rem;
  --home-helper-size: .875rem;
  --home-button-min: 3rem;
  font-size: var(--home-body-size);
  line-height: 1.65;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.wemap-landing:lang(ja) .wemap-home :is(h1, p),
.wemap-landing:lang(zh) .wemap-home :is(h1, p) { word-break: normal; }
.wemap-landing .logo { font-size: var(--home-brand-size); line-height: 1.2; font-weight: 700; }
.wemap-landing .site-links, .wemap-landing .languages { font-size: var(--home-body-size); }
.wemap-landing .hero-copy h1 {
  font-size: var(--home-title-size);
  line-height: var(--home-title-leading);
  font-weight: 700;
  letter-spacing: -.035em;
}
.wemap-landing .hero-copy > p, .wemap-landing #invite-error { font-size: var(--home-body-size); line-height: 1.65; }
.wemap-landing .home-entry h2,
.wemap-landing .home-section > h2,
.wemap-landing .home-faq h2 { font-size: var(--home-section-size); line-height: 1.4; font-weight: 700; }
.wemap-landing .home-workflow h3,
.wemap-landing .case-grid h3 { font-size: var(--home-card-size); line-height: 1.4; font-weight: 600; }
.wemap-landing .map-preview figcaption span,
.wemap-landing #preview-map .leaflet-tooltip,
.wemap-landing #preview-map .leaflet-control-attribution,
.wemap-landing .footer { font-size: var(--home-helper-size); line-height: 1.5; }
.wemap-landing .button, .wemap-landing .preview-member { min-height: var(--home-button-min); font-size: var(--home-body-size); }
.wemap-landing #invite-link { min-height: 3rem; font-size: var(--home-body-size); }
.wemap-landing .language-picker summary { min-height: var(--home-button-min); }
@media (max-width: 650px) {
  .wemap-landing .home-entry, .wemap-landing .home-faq { grid-template-columns: minmax(0, 1fr); }
  .wemap-landing .bar { position: relative; }
  .wemap-landing .language-picker { position: static; }
  .wemap-landing .language-picker .languages { inset-block-start: 100%; z-index: 900; }
}
@media (min-width: 1024px) {
  .wemap-landing {
    --home-brand-size: 1.625rem;
    --home-title-size: 2.5rem;
    --home-title-leading: 1.2;
    --home-section-size: 1.375rem;
    --home-button-min: 2.75rem;
  }
}
