:root{--ink:#221d2b;--muted:#837b89;--line:#eee9ef;--paper:#fff;--wash:#faf7fa;--pink:#ff4f7b;--pink2:#ff7d9d;--violet:#7c5cff;--green:#25c58b;--amber:#ffb546;--red:#e94163;--shadow:0 18px 55px rgba(45,25,49,.11);--radius:24px}*{box-sizing:border-box}html,body,#app{margin:0;min-height:100%;font-family:'DM Sans',sans-serif;color:var(--ink);background:#fff}body{min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.brand{display:flex;align-items:center;gap:10px;font:800 22px 'Plus Jakarta Sans';letter-spacing:-1px}.brand-mark{width:35px;height:35px;border-radius:12px;background:linear-gradient(135deg,var(--pink),#ff805c);display:grid;place-items:center;color:white;box-shadow:0 8px 18px rgba(255,79,123,.28)}.brand-dot{color:var(--pink)}.pill{border:1px solid var(--line);border-radius:999px;padding:9px 14px;background:white;font-weight:700}.btn{border:0;border-radius:14px;padding:12px 18px;font-weight:700;transition:.2s}.btn:hover{transform:translateY(-1px)}.btn-primary{color:white;background:linear-gradient(135deg,var(--pink),#ff6a69);box-shadow:0 10px 22px rgba(255,79,123,.25)}.btn-soft{background:#fff1f5;color:var(--pink)}.btn-ghost{background:white;border:1px solid var(--line);color:var(--ink)}.landing{min-height:100vh;background:radial-gradient(circle at 13% 6%,#fff1f4 0,transparent 26%),radial-gradient(circle at 88% 20%,#f2edff 0,transparent 27%),white}.landing-nav{height:82px;display:flex;align-items:center;justify-content:space-between;max-width:1180px;margin:auto;padding:0 24px}.nav-links{display:flex;align-items:center;gap:12px}.hero{max-width:1180px;margin:auto;padding:65px 24px 35px;display:grid;grid-template-columns:1.04fr .96fr;gap:62px;align-items:center}.eyebrow{display:inline-flex;gap:8px;align-items:center;color:var(--pink);background:#fff0f4;border-radius:999px;padding:8px 13px;font-weight:800;font-size:13px}.hero h1{font:800 clamp(48px,6.4vw,82px)/.99 'Plus Jakarta Sans';letter-spacing:-4px;margin:22px 0;color:#29212d}.hero h1 span{color:var(--pink)}.hero-copy{font-size:18px;line-height:1.7;color:#736b77;max-width:560px}.hero-actions{display:flex;gap:12px;margin:28px 0}.hero-actions .btn{padding:15px 22px}.trust{display:flex;align-items:center;gap:13px;color:var(--muted);font-size:14px}.avatars{display:flex}.avatars img{width:36px;height:36px;border-radius:50%;object-fit:cover;border:3px solid white;margin-left:-9px}.avatars img:first-child{margin:0}.hero-card-wrap{position:relative}.hero-card{background:white;border:1px solid rgba(238,233,239,.8);border-radius:32px;padding:23px;box-shadow:var(--shadow);transform:rotate(1deg)}.discover-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.discover-head h3{margin:0;font:800 20px 'Plus Jakarta Sans'}.online{font-size:12px;color:var(--green);font-weight:700}.people-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.person{height:190px;border-radius:20px;overflow:hidden;position:relative;background:#ddd}.person img{width:100%;height:100%;object-fit:cover}.person-info{position:absolute;inset:auto 0 0;padding:38px 13px 13px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.7))}.person-name{font-weight:800}.person-meta{font-size:12px;opacity:.82}.live-dot{width:9px;height:9px;border-radius:50%;background:#38e69d;display:inline-block;border:2px solid white}.float-card{position:absolute;background:white;box-shadow:var(--shadow);border-radius:17px;padding:12px 15px;font-weight:800;display:flex;align-items:center;gap:10px}.float-card.one{left:-42px;top:70px}.float-card.two{right:-20px;bottom:40px}.float-icon{width:33px;height:33px;border-radius:10px;display:grid;place-items:center;background:#fff0f4}.stats{max-width:1030px;margin:20px auto 70px;display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:22px;background:white}.stat{text-align:center;padding:24px}.stat+.stat{border-left:1px solid var(--line)}.stat strong{display:block;font:800 26px 'Plus Jakarta Sans'}.stat span{color:var(--muted);font-size:13px}.modal-backdrop{position:fixed;inset:0;background:rgba(28,19,31,.44);backdrop-filter:blur(6px);display:grid;place-items:center;padding:20px;z-index:10}.auth-card{width:min(440px,100%);background:white;border-radius:28px;padding:28px;box-shadow:var(--shadow)}.auth-top{display:flex;justify-content:space-between;align-items:center}.close{border:0;background:#f5f1f5;width:36px;height:36px;border-radius:50%;font-size:20px}.auth-card h2{font:800 30px 'Plus Jakarta Sans';letter-spacing:-1.4px;margin:24px 0 7px}.auth-card>p{color:var(--muted);margin:0 0 22px}.field{margin:12px 0}.field label{display:block;font-size:13px;font-weight:800;margin-bottom:7px}.field input,.field select,.search{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:13px;outline:2px solid transparent;outline-offset:2px;background:#fff}.field input:focus,.field select:focus,.search:focus{border-color:#ff9ab4;box-shadow:0 0 0 4px #fff0f4}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.auth-card .btn{width:100%;margin-top:12px;padding:14px}.fine{font-size:12px!important;line-height:1.5}.fine input{width:auto}.app-shell{height:100vh;display:grid;grid-template-columns:84px 300px 1fr 270px;background:var(--wash);overflow:hidden}.rail{background:#231d29;color:white;display:flex;flex-direction:column;align-items:center;padding:20px 0;gap:12px}.rail .brand-mark{margin-bottom:20px}.rail-btn{border:0;background:transparent;color:#aca3af;width:50px;height:50px;border-radius:15px;font-size:21px;position:relative}.rail-btn:hover,.rail-btn.active{background:rgba(255,255,255,.1);color:white}.rail-btn.active:before{content:'';position:absolute;left:-17px;top:13px;height:24px;width:4px;background:var(--pink);border-radius:3px}.rail-bottom{margin-top:auto}.sidebar{background:white;border-right:1px solid var(--line);padding:24px 18px;overflow:auto}.side-title{display:flex;align-items:center;justify-content:space-between}.side-title h2{font:800 22px 'Plus Jakarta Sans';margin:0}.round{border:0;border-radius:11px;width:38px;height:38px;background:#fff0f4;color:var(--pink);font-size:18px}.search-wrap{position:relative;margin:20px 0}.search{padding-left:38px;background:#f8f5f8}.search-wrap span{position:absolute;left:13px;top:12px}.section-label{text-transform:uppercase;color:#aaa2ac;font-size:11px;font-weight:800;letter-spacing:1.1px;margin:20px 4px 9px}.contact{display:grid;grid-template-columns:47px 1fr auto;gap:10px;align-items:center;padding:9px;border-radius:15px;cursor:pointer}.contact:hover,.contact.active{background:#fff2f5}.avatar{width:46px;height:46px;border-radius:15px;object-fit:cover}.contact h4{margin:0 0 3px;font-size:14px}.contact p{margin:0;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:145px}.time{font-size:10px;color:#aaa}.badge{min-width:19px;height:19px;border-radius:10px;background:var(--pink);color:#fff;display:grid;place-items:center;font-size:10px;font-weight:800}.chat{display:flex;flex-direction:column;background:white}.chat-head{height:78px;border-bottom:1px solid var(--line);padding:14px 22px;display:flex;align-items:center;justify-content:space-between}.chat-person{display:flex;align-items:center;gap:12px}.chat-person .avatar{width:48px;height:48px;border-radius:50%}.chat-person h3{margin:0;font-size:16px}.chat-person p{margin:3px 0 0;font-size:12px;color:var(--green)}.chat-actions{display:flex;gap:8px}.chat-actions button{border:0;background:#f7f4f7;width:39px;height:39px;border-radius:12px}.messages{flex:1;overflow:auto;padding:28px;display:flex;flex-direction:column;gap:15px;background:linear-gradient(rgba(255,255,255,.91),rgba(255,255,255,.91)),radial-gradient(#eadfea 1px,transparent 1px);background-size:auto,22px 22px}.date{text-align:center;font-size:11px;color:#aaa}.message{max-width:67%;display:flex;gap:9px;align-items:flex-end}.message.mine{margin-left:auto;flex-direction:row-reverse}.bubble{padding:12px 15px;border-radius:17px 17px 17px 5px;background:#f3eef3;font-size:14px;line-height:1.45}.mine .bubble{background:linear-gradient(135deg,var(--pink),#ff6a69);color:#fff;border-radius:17px 17px 5px 17px}.msg-time{font-size:9px;color:#aaa;white-space:nowrap}.typing{font-size:11px;color:var(--muted);height:18px;padding-left:28px}.composer{margin:0 22px 20px;border:1px solid var(--line);border-radius:18px;padding:7px;display:flex;gap:8px;align-items:center;box-shadow:0 8px 24px rgba(40,25,42,.05)}.composer input{flex:1;border:0;outline:2px solid transparent;outline-offset:2px;padding:10px;background:transparent}.composer button{border:0;background:transparent;font-size:19px}.composer .send{background:var(--pink);color:#fff;width:40px;height:40px;border-radius:12px}.profile{padding:24px 18px;background:#fcfafc;border-left:1px solid var(--line);overflow:auto}.profile-top{text-align:center}.profile-photo{width:100px;height:100px;border-radius:28px;object-fit:cover;margin:15px auto 10px}.profile h3{margin:5px}.profile-location{font-size:12px;color:var(--muted)}.chips{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0}.chip{font-size:11px;padding:7px 10px;background:#f1edf8;border-radius:999px;color:#6b54a8}.info-box{border-top:1px solid var(--line);padding-top:17px;margin-top:17px}.info-box h4{font-size:12px;text-transform:uppercase;letter-spacing:.8px}.info-box p{font-size:13px;color:var(--muted);line-height:1.6}.safety-btn{width:100%;margin:5px 0}.admin-shell{min-height:100vh;background:#f7f6f8;display:grid;grid-template-columns:245px 1fr}.admin-nav{background:#211c26;color:white;padding:24px 16px}.admin-nav .brand{padding:0 8px 24px}.admin-link{display:flex;align-items:center;gap:11px;padding:12px 14px;border-radius:12px;color:#b8b0ba;margin:5px 0;cursor:pointer;font-weight:600;font-size:14px}
button.admin-link{width:100%;border:0;background:transparent;text-align:left;font:inherit}button.admin-link:disabled{cursor:wait;opacity:.65}.admin-link.active,.admin-link:hover{background:#382f3e;color:#fff}.admin-main{padding:28px 34px;overflow:auto}.admin-head{display:flex;align-items:center;justify-content:space-between}.admin-head h1{font:800 27px 'Plus Jakarta Sans';margin:0}.admin-user{display:flex;align-items:center;gap:10px;background:white;padding:7px 10px;border-radius:13px}.admin-user img{width:35px;height:35px;border-radius:10px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:26px 0}.metric{background:white;border:1px solid var(--line);border-radius:18px;padding:18px}.metric-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#fff0f4;margin-bottom:16px}.metric strong{font:800 25px 'Plus Jakarta Sans';display:block}.metric small{color:var(--muted)}.metric .trend{float:right;color:var(--green);font-size:11px}.admin-grid{display:grid;grid-template-columns:1.5fr .8fr;gap:16px}.panel{background:white;border:1px solid var(--line);border-radius:19px;padding:20px}.panel h3{font:800 16px 'Plus Jakarta Sans';margin:0 0 18px}.chart{height:210px;display:flex;align-items:flex-end;gap:10px;border-bottom:1px solid var(--line);padding-top:15px}.bar{flex:1;background:linear-gradient(#ff7898,var(--pink));border-radius:7px 7px 0 0;position:relative}.bar:hover:after{content:attr(data-v);position:absolute;top:-26px;left:50%;transform:translateX(-50%);font-size:10px;background:#2c2630;color:white;padding:4px 6px;border-radius:6px}.report{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;margin:13px 0}.report .avatar{width:38px;height:38px;border-radius:10px}.report h5{margin:0;font-size:12px}.report p{margin:3px 0 0;color:var(--muted);font-size:10px}.severity{font-size:9px;font-weight:800;padding:5px 7px;border-radius:7px;background:#fff0f3;color:var(--red)}.table-panel{margin-top:16px}.table-toolbar{display:flex;justify-content:space-between;align-items:center}.table-toolbar .search{max-width:240px}table{width:100%;border-collapse:collapse;margin-top:12px}th,td{text-align:left;padding:13px 10px;border-top:1px solid var(--line);font-size:12px}th{color:var(--muted);font-size:10px;text-transform:uppercase}.status{padding:5px 8px;border-radius:7px;font-size:10px;font-weight:800}.status.active{background:#e9fbf4;color:#14996b}.status.review{background:#fff5e4;color:#b87918}.mini-user{display:flex;align-items:center;gap:8px}.mini-user img{width:31px;height:31px;border-radius:9px}.toast{position:fixed;z-index:99;left:50%;bottom:28px;transform:translate(-50%,20px);background:#2c2630;color:#fff;padding:12px 18px;border-radius:12px;opacity:0;pointer-events:none;transition:.25s;font-size:13px;box-shadow:var(--shadow)}.toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:1050px){.app-shell{grid-template-columns:76px 270px 1fr}.profile{display:none}.metric-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:780px){.hero{grid-template-columns:1fr;padding-top:35px}.hero-card-wrap{max-width:550px}.hero h1{letter-spacing:-2.5px}.stats{margin:20px 20px 50px}.nav-links .pill{display:none}.app-shell{grid-template-columns:68px 1fr}.sidebar{display:none}.admin-shell{grid-template-columns:70px 1fr}.admin-nav{padding:20px 8px}.admin-nav .brand span,.admin-link span:last-child{display:none}.admin-main{padding:20px 15px}.admin-grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:1fr 1fr}.admin-user span{display:none}}@media(max-width:520px){.landing-nav{height:68px}.hero{padding:24px 18px}.hero h1{font-size:48px}.hero-actions{flex-direction:column}.float-card{display:none}.people-grid{gap:8px}.person{height:150px}.stats{grid-template-columns:1fr}.stat+.stat{border-left:0;border-top:1px solid var(--line)}.app-shell{grid-template-columns:1fr}.rail{position:fixed;z-index:5;bottom:0;left:0;right:0;height:65px;flex-direction:row;padding:6px 12px;justify-content:space-around}.rail .brand-mark{display:none}.rail-bottom{margin:0}.rail-btn.active:before{left:13px;top:auto;bottom:-5px;width:24px;height:3px}.chat-head{height:68px}.messages{padding:18px 14px 85px}.composer{position:fixed;bottom:65px;left:10px;right:10px;margin:0;background:white}.message{max-width:82%}.admin-main{padding:16px 10px}.metric-grid{grid-template-columns:1fr}.table-panel{overflow:auto}}
html,body{width:100%;max-width:100%;overflow-x:hidden}.app-shell,.landing,.admin-shell{width:100%;max-width:100%}.chat,#workspace,.sidebar,.profile,.messages,.discover-work,.settings-page{min-width:0}.premium-cta{display:inline-flex;align-items:center;justify-content:center;margin-top:8px;padding:9px 12px;border-radius:11px;background:var(--pink);color:#fff;text-decoration:none;font-weight:800;font-size:12px}.public-footer a,.home-footer a{color:inherit;font-weight:800}.chat-actions button{width:auto;min-width:44px;padding:0 10px;white-space:nowrap}.chat-actions #reportChat::after{content:" Report";font-size:12px;font-weight:800}.chat-actions #blockUser::after{content:" Block";font-size:12px;font-weight:800}@media(max-width:780px){.app-shell{height:100dvh;overflow:hidden}.chat-head{gap:8px;padding:10px 12px}.chat-person{min-width:0}.chat-person h3,.chat-person p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:44vw}.chat-actions{gap:6px;flex-wrap:wrap;justify-content:flex-end}.chat-actions button{min-height:38px;border-radius:10px}.composer input{min-width:0}.premium-promo{max-width:100%;overflow-wrap:anywhere}.premium-cta{width:100%}}@media(max-width:520px){.hero,.landing-nav,.stats{max-width:100%;overflow:hidden}.hero h1{font-size:clamp(38px,12vw,48px);letter-spacing:-1.5px}.app-shell.mobile-chat-open .rail{display:none}.app-shell.mobile-chat-open .composer{bottom:10px}.app-shell.mobile-chat-open .messages{padding-bottom:86px}.mobile-back{display:inline-grid!important;place-items:center;min-width:40px;height:40px;border:0;border-radius:12px;background:#f7f4f7}.guest-chat-head{align-items:flex-start;gap:10px}.guest-head-buttons{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.guest-small-btn{min-height:40px;padding:10px 12px;font-size:13px;font-weight:800;white-space:nowrap}.guest-composer{left:10px;right:10px}.message{max-width:88%}}

.premium-promo,
.premium-cta {
  display: none !important;
}

.rail-home,
.empty-home,
.guest-chat-home {
  text-decoration: none;
}

.app-footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 18px 22px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.app-footer a,
.guest-chat-footer a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.app-footer nav,
.guest-chat-footer .home-footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 100%;
}

.guest-chat-footer {
  position: static;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.image-permission-modal {
  z-index: 120;
}

.image-permission-card {
  width: min(420px, calc(100% - 24px));
  box-sizing: border-box;
}

.image-permission-card p {
  line-height: 1.6;
}

.image-permission-card .modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.image-permission-card .modal-actions .btn {
  width: 100%;
  margin: 0;
}

.guest-shell .guest-topbar,
.guest-shell .guest-brand-area,
.guest-shell .guest-top-actions,
.guest-shell .guest-chat-head,
.guest-shell .guest-peer,
.guest-shell .guest-peer > div,
.guest-shell .guest-head-buttons,
.guest-shell .guest-composer {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.guest-shell .guest-chat-home {
  color: inherit;
}

.guest-workspace.guest-workspace-active-chat {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.guest-workspace.guest-workspace-waiting {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.guest-workspace-waiting > .guest-waiting {
  grid-row: auto;
  flex: 1 0 auto;
  min-width: 0;
}

.guest-workspace-waiting > .guest-chat-footer {
  flex: 0 0 auto;
}

.guest-shell .guest-composer {
  position: static;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.guest-shell .guest-composer textarea {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: 52px;
  min-height: 48px;
  max-height: 132px;
  box-sizing: border-box;
  resize: vertical;
  overflow-y: auto;
  border: 1px solid var(--home-line);
  border-radius: 13px;
  padding: 14px;
  font: 14px/1.45 "DM Sans", sans-serif;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.guest-shell .guest-composer textarea:focus {
  border-color: var(--guest-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--guest-accent) 10%, transparent);
}

.guest-shell .guest-composer button {
  flex: 0 0 48px;
  width: 48px;
  height: 52px;
  align-self: flex-end;
}

@media (max-width: 780px) {
  .app-footer {
    padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .guest-shell .guest-topbar {
    min-height: 64px;
    height: auto;
    padding: 8px 10px;
    gap: 8px;
  }

  .guest-shell .guest-brand-area {
    flex: 1 1 auto;
  }

  .guest-shell .guest-chat-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
  }

  .guest-shell .guest-topbar .brand > span:last-child {
    display: inline;
    font-size: 14px;
  }

  .guest-shell .guest-mode-chip,
  .guest-shell .guest-profile-mini {
    display: none;
  }

  .guest-shell .guest-top-actions {
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: 6px;
  }

  .guest-shell .guest-top-actions > .guest-small-btn {
    flex: 0 1 auto;
    min-width: 0;
    min-height: 40px;
    padding: 8px 9px;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .guest-shell.guest-active-chat {
    height: auto;
    min-height: 100dvh;
    grid-template-rows: auto auto;
  }

  .guest-shell.guest-active-chat .guest-main {
    min-width: 0;
    min-height: 0;
    max-width: 100%;
  }

  .guest-shell.guest-active-chat .guest-workspace-active-chat {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    min-height: calc(100dvh - 64px);
    overflow: visible;
  }

  .guest-shell .guest-chat-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 0;
    height: auto;
    padding: 10px 12px;
  }

  .guest-shell .guest-peer {
    flex: 1 1 180px;
    align-items: center;
  }

  .guest-shell .guest-peer > div {
    flex: 1 1 auto;
  }

  .guest-shell .guest-peer h3,
  .guest-shell .guest-peer p {
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .guest-shell .guest-head-buttons {
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
  }

  .guest-shell .guest-workspace-active-chat .guest-head-buttons .guest-small-btn,
  .guest-shell .guest-workspace-active-chat .guest-head-buttons .guest-small-btn:not(.primary) {
    width: auto;
    min-width: 0;
    min-height: 40px;
    padding: 9px 11px;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }

  .guest-shell .guest-workspace-active-chat .guest-head-buttons .danger::after {
    content: none;
  }

  .guest-shell .guest-messages {
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 260px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .guest-shell .guest-composer {
    padding: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .guest-shell .guest-chat-footer {
    flex: 0 0 auto;
    padding: 18px 12px calc(18px + env(safe-area-inset-bottom));
  }

  .guest-shell .guest-chat-footer .home-footer-links {
    justify-content: center;
    gap: 10px 14px;
  }
}

@media (max-width: 360px) {
  .guest-shell .guest-topbar {
    padding-inline: 8px;
  }

  .guest-shell .guest-chat-home {
    gap: 6px;
  }

  .guest-shell .guest-topbar .brand > span:last-child {
    font-size: 13px;
  }

  .guest-shell .guest-top-actions > .guest-small-btn {
    padding-inline: 7px;
    font-size: 10px;
  }

  .guest-shell .guest-peer {
    flex-basis: 100%;
  }

  .guest-shell .guest-head-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .guest-shell .guest-head-buttons #guestImagePermission {
    grid-column: 1 / -1;
  }

  .guest-shell .guest-workspace-active-chat .guest-head-buttons .guest-small-btn,
  .guest-shell .guest-workspace-active-chat .guest-head-buttons .guest-small-btn:not(.primary) {
    width: 100%;
    white-space: normal;
  }

  .image-permission-card .modal-actions {
    grid-template-columns: 1fr;
  }
}

.premium-promotion{display:flex;align-items:center;gap:12px;margin:12px;padding:12px 14px;border:1px solid #ffd0dc;border-radius:14px;background:linear-gradient(135deg,#fff7fa,#fff);box-sizing:border-box;min-width:0}
.premium-promotion>div{min-width:0;flex:1}
.premium-promotion strong{display:block;color:#332736}
.premium-promotion p{margin:3px 0 0;color:#6f6472;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.premium-promotion-badge{align-self:flex-start;border-radius:999px;background:#ff4f7b;color:#fff;padding:4px 8px;font-size:10px;font-weight:800;letter-spacing:.04em;white-space:nowrap}
.premium-promotion .btn{flex:0 0 auto;text-decoration:none}
.premium-promotion-login{margin:10px 0;display:grid;grid-template-columns:auto 1fr}
.premium-promotion-login .btn{grid-column:1/-1;text-align:center}
.room-music{margin-left:auto;display:flex;align-items:center;gap:7px;min-width:0}
.room-interior[data-room-theme="plum"]{--room-accent:#8b5cf6}.room-interior[data-room-theme="rose"]{--room-accent:#e11d48}.room-interior[data-room-theme="ocean"]{--room-accent:#0284c7}.room-interior[data-room-theme="forest"]{--room-accent:#15803d}.room-interior[data-room-theme="amber"]{--room-accent:#b45309}.room-interior[data-room-theme="slate"]{--room-accent:#475569}
.room-interior[data-room-theme] .room-symbol,.room-interior[data-room-theme] .send{background:var(--room-accent);color:#fff}
.room-interior[data-room-theme] .room-chat-head h2{color:var(--room-accent)}
.room-music audio{display:none}
.room-playlist-embed{padding:8px 12px;max-width:100%;box-sizing:border-box}
.room-playlist-embed iframe{display:block;width:100%;max-width:720px;height:152px;margin:0 auto;border:0;border-radius:12px}
.room-track-title{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#655b68}
.room-audio-control,.room-mute-control{border:1px solid #e5dfe7;background:#fff;border-radius:9px;padding:7px 9px;white-space:nowrap}
.room-create-control{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.room-create-control small{color:#6f6472}
.admin-nav .admin-link{width:100%;border:0;background:transparent;text-align:left;font:inherit}
.admin-playlist-create{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,2fr) auto auto;gap:12px;align-items:end}
.admin-playlist-grid{display:grid;gap:16px;margin-top:16px}
.admin-playlist-card>header{display:flex;gap:12px;align-items:center}
.admin-playlist-card>header>input{flex:1;min-width:0;font-size:18px;font-weight:700}
.admin-playlist-card>textarea{width:100%;min-height:70px;margin:10px 0;box-sizing:border-box}
.admin-playlist-actions,.admin-track-add{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:10px 0}
.admin-track-add input{min-width:180px}
.admin-track-list{display:grid;gap:8px;margin-top:14px}
.admin-track-row{display:grid;grid-template-columns:minmax(140px,1.5fr) minmax(120px,1fr) auto auto auto auto;gap:8px;align-items:center;padding:9px;border:1px solid #eee8f0;border-radius:10px;min-width:0}
.admin-track-row>span{font-size:12px;color:#746b77;overflow-wrap:anywhere}
.admin-track-row label{font-size:12px}
.admin-track-row [data-track-order]{width:72px}
@media(max-width:900px){.admin-playlist-create{grid-template-columns:1fr}.admin-track-row{grid-template-columns:1fr 1fr}.room-music{flex-wrap:wrap}.room-track-title{max-width:110px}}
@media(max-width:520px){.premium-promotion{align-items:stretch;flex-direction:column}.premium-promotion-badge{white-space:normal}.premium-promotion .btn{width:100%;text-align:center}.room-music{width:100%;margin-left:0}.admin-track-row{grid-template-columns:1fr}}

/* Strangers: temporary multi-conversation directory and inbox. */
.guest-shell[data-mode="strangers"] .guest-main,
.guest-shell[data-mode="strangers"] .guest-workspace,
.guest-shell[data-mode="strangers"] .stranger-directory,
.guest-shell[data-mode="strangers"] .stranger-chat {
  min-width: 0;
}
.stranger-side-head,
.stranger-directory > header,
.stranger-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.stranger-side-head h2,
.stranger-directory h1,
.stranger-chat-head h2 {
  margin: 4px 0;
}
.stranger-inbox {
  display: grid;
  gap: 7px;
  margin: 18px 0;
}
.stranger-inbox-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
}
.stranger-inbox-row.active {
  border-color: #ff9ab4;
  background: #fff5f7;
}
.stranger-inbox-row > button:first-child {
  border: 0;
  background: transparent;
  padding: 9px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-align: left;
}
.stranger-inbox-row img,
.stranger-inbox-row .guest-avatar,
.stranger-chat-head img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
}
.stranger-inbox-row span,
.stranger-inbox-row strong,
.stranger-inbox-row small {
  min-width: 0;
}
.stranger-inbox-row small {
  display: block;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stranger-close {
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  font-size: 20px;
  color: var(--muted);
}
.stranger-unread {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.stranger-inbox-empty {
  color: var(--muted);
  font-size: 13px;
}
.stranger-directory {
  padding: clamp(20px, 4vw, 46px);
}
.stranger-directory > header {
  margin-bottom: 24px;
}
.stranger-directory > header p {
  margin: 6px 0 0;
  color: var(--muted);
}
.stranger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 14px;
}
.stranger-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(45,25,49,.05);
  min-width: 0;
}
.stranger-profile-open {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 9px;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  padding: 0;
  min-width: 0;
  text-align: left;
}
.stranger-profile-open img,
.stranger-profile-open .guest-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
}
.stranger-profile-open h3,
.stranger-profile-open p {
  margin: 2px 0;
  overflow-wrap: anywhere;
}
.stranger-profile-open p {
  color: var(--muted);
  font-size: 12px;
}
.stranger-profile-open i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}
.stranger-chat {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.stranger-chat-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.stranger-chat-head > div {
  min-width: 0;
  margin-right: auto;
}
.stranger-chat-head h2,
.stranger-chat-head p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stranger-chat-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.stranger-chat .stranger-messages {
  min-height: 0;
}
.stranger-chat .stranger-composer {
  position: static;
  margin: 10px 14px 14px;
}
.stranger-profile-photo {
  display: grid;
  place-items: center;
  margin-top: 20px;
}
.stranger-profile-photo img,
.stranger-profile-photo .guest-avatar {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  object-fit: cover;
}
.stranger-profile-actions {
  display: grid;
  gap: 8px;
}

/* Chatrooms: registered group-chat UI, intentionally separate from other chat modes. */
.room-directory {
  overflow: auto;
  padding: clamp(22px, 4vw, 48px);
}
.room-directory header {
  max-width: 700px;
  margin-bottom: 28px;
}
.room-directory h1 {
  font: 800 clamp(32px, 5vw, 52px) 'Plus Jakarta Sans';
  letter-spacing: -2px;
  margin: 12px 0 6px;
}
.room-directory header p {
  color: var(--muted);
}
.room-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.room-directory-card {
  position: relative;
  min-width: 0;
  min-height: 265px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--room-color, #fff);
}
.room-directory-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.room-directory-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 22px;
  background: linear-gradient(100deg, rgba(255,255,255,.96), rgba(255,255,255,.77));
}
.room-directory-content h2,
.room-directory-content p {
  overflow-wrap: anywhere;
}
.room-directory-content small {
  color: var(--pink);
  font-weight: 800;
}
.room-directory-row {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}
.room-directory-row .room-icon {
  display: grid;
  place-items: center;
  background: var(--room-color);
}
.room-interior {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background-color: var(--room-color, #fff);
  background-image: linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.92)), var(--room-image, none);
  background-size: cover;
}
.room-chat-head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
}
.room-chat-head > div {
  min-width: 0;
  margin-right: auto;
}
.room-chat-head h2,
.room-chat-head p {
  margin: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-chat-head p {
  color: var(--muted);
  font-size: 12px;
}
.room-audio-control,
.room-mute-control {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 11px;
  background: #fff;
}
.room-messages {
  min-width: 0;
  min-height: 0;
  background: transparent;
}
.room-message {
  min-width: 0;
  max-width: min(72%, 680px);
}
.room-message > div {
  min-width: 0;
}
.room-message .bubble {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.room-message-author {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  overflow: hidden;
  background: #efe8f2;
}
.room-message-author img,
.room-message-author span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
}
.room-composer {
  position: static;
  min-width: 0;
  margin: 10px 16px 16px;
  background: #fff;
  align-items: flex-end;
}
.room-composer textarea {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  max-height: 128px;
  resize: none;
  border: 0;
  outline: 0;
  padding: 12px;
  background: transparent;
}
.room-composer .send {
  flex: 0 0 40px;
}
.room-member-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 14px;
  padding: 9px;
  background: transparent;
  text-align: left;
}
.room-member-row:hover {
  background: #fff1f5;
}
.room-member-row img,
.room-member-row .avatar-fallback {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
}
.room-member-row small {
  display: block;
  color: var(--muted);
}
.settings-form textarea {
  width: 100%;
  max-width: 100%;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font: inherit;
}
.admin-room-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.admin-room-card > header,
.admin-room-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.admin-room-card > footer {
  justify-content: flex-start;
  margin-top: 16px;
}
.admin-room-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 14px;
}
.admin-room-field {
  min-width: 0;
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.admin-room-field input:not([type="checkbox"]),
.admin-room-field textarea,
.admin-room-field select {
  min-width: 0;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}
.admin-room-field textarea {
  min-height: 70px;
  resize: vertical;
}
.admin-room-moderation {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.admin-moderation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.admin-moderation-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 780px) {
  .stranger-grid,
  .room-directory-grid {
    grid-template-columns: 1fr;
  }
  .room-interior,
  .stranger-chat {
    height: 100vh;
    height: 100dvh;
  }
  .room-message {
    max-width: 88%;
  }
  .admin-room-fields {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .stranger-directory,
  .room-directory {
    padding: 16px 12px 84px;
  }
  .stranger-directory > header {
    align-items: flex-start;
  }
  .stranger-card {
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 8px;
  }
  .stranger-card > .guest-small-btn {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
  }
  .stranger-chat-head {
    padding: 9px 10px;
  }
  .room-chat-head {
    padding: 8px 9px;
  }
  .room-chat-head .room-symbol {
    display: none;
  }
  .room-audio-control {
    width: 42px;
    overflow: hidden;
    white-space: nowrap;
  }
  .room-mute-control {
    width: 38px;
    padding-inline: 5px;
  }
  .room-composer {
    margin: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
}

.rail-mobile-only,
.rail-label,
.guest-mobile-nav {
  display: none;
}

.app-shell .composer textarea {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 128px;
  box-sizing: border-box;
  resize: none;
  overflow-y: auto;
  border: 0;
  padding: 11px 10px;
  background: transparent;
  color: inherit;
  font: 14px/1.45 "DM Sans", sans-serif;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .guest-shell.guest-active-chat {
    min-height: 100vh;
  }

  .guest-shell .guest-composer textarea {
    resize: none;
  }

  .guest-shell.guest-active-chat .guest-messages {
    flex: 1 1 180px;
    min-height: 140px;
    overflow-y: auto;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 680px) {
    .guest-shell.guest-active-chat {
      min-height: 100dvh;
    }
  }
}

@media (max-width: 520px) {
  .rail .rail-desktop-only {
    display: none;
  }

  .rail .rail-mobile-only {
    display: flex;
  }

  .app-shell .rail {
    z-index: 30;
    height: calc(70px + env(safe-area-inset-bottom));
    padding: 5px 4px env(safe-area-inset-bottom);
    gap: 2px;
    align-items: stretch;
  }

  .app-shell .rail .rail-btn {
    flex: 1 1 20%;
    width: auto;
    min-width: 0;
    height: 60px;
    padding: 5px 2px;
    border-radius: 11px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
  }

  .app-shell .rail .rail-icon {
    display: block;
    font-size: 18px;
    line-height: 1;
  }

  .app-shell .rail .rail-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-shell .rail .rail-btn.active::before {
    left: 22%;
    right: 22%;
    bottom: 1px;
    width: auto;
    height: 3px;
  }

  .app-shell.mobile-chat-open .rail {
    display: flex;
  }

  .app-shell.mobile-chat-open .chat {
    height: calc(100vh - 70px - env(safe-area-inset-bottom));
    min-height: 0;
    overflow: hidden;
  }

  .app-shell.mobile-chat-open .messages {
    min-height: 0;
    padding: 18px 14px;
  }

  .app-shell.mobile-chat-open .composer {
    position: static;
    flex: 0 0 auto;
    width: auto;
    max-width: calc(100% - 20px);
    margin: 0 10px 10px;
  }

  .guest-shell .guest-mobile-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(70px + env(safe-area-inset-bottom));
    padding: 5px 4px env(safe-area-inset-bottom);
    display: flex;
    align-items: stretch;
    gap: 2px;
    border-top: 1px solid var(--home-line);
    background: #231d29;
    box-shadow: 0 -8px 28px rgba(35, 29, 41, .16);
  }

  .guest-shell .guest-mobile-nav-item {
    position: relative;
    flex: 1 1 20%;
    width: auto;
    min-width: 0;
    height: 60px;
    padding: 5px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #aca3af;
  }

  .guest-shell .guest-mobile-nav-item > span {
    font-size: 18px;
    line-height: 1;
  }

  .guest-shell .guest-mobile-nav-item > small {
    max-width: 100%;
    overflow: hidden;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .guest-shell .guest-mobile-nav-item.active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
  }

  .guest-shell .guest-mobile-nav-item.active::after {
    content: "";
    position: absolute;
    right: 22%;
    bottom: 1px;
    left: 22%;
    height: 3px;
    border-radius: 3px;
    background: var(--pink);
  }

  .guest-shell .guest-workspace {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

@supports (height: 100dvh) {
  @media (max-width: 520px) {
    .app-shell.mobile-chat-open .chat {
      height: calc(100dvh - 70px - env(safe-area-inset-bottom));
    }
  }
}

/* Random Chat photo-request workflow and active-chat stability */
.guest-shell .guest-workspace.guest-workspace-active-chat {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.guest-shell .guest-chat-ad {
  position: static;
  z-index: auto;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.guest-shell .guest-chat-ad[hidden] {
  display: none !important;
}

.guest-shell .guest-chat-ad-banner:not([hidden]) {
  min-height: 72px;
}

.guest-shell .guest-chat-ad-inflow:not([hidden]) {
  min-height: 96px;
}

.guest-shell .guest-chat-ad .ad-slot {
  width: 100%;
  max-width: 100%;
  min-height: inherit;
  box-sizing: border-box;
}

.guest-shell .guest-messages,
.guest-shell .guest-message,
.guest-shell .guest-message > div,
.guest-shell .guest-message-body,
.guest-shell .guest-composer {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.guest-shell .guest-messages {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
}

.guest-shell .guest-message {
  max-width: min(76%, 680px);
}

.guest-shell .guest-message > div {
  overflow: hidden;
}

.guest-shell .guest-message-body {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.guest-shell .guest-message-image {
  display: block;
  width: min(420px, 100%);
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

.guest-shell .guest-photo-reveal {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #211b27;
  color: #fff;
  cursor: pointer;
}

.guest-shell .guest-photo-reveal .guest-message-image {
  filter: blur(18px);
  transform: scale(1.06);
  transition: filter 180ms ease, transform 180ms ease;
}

.guest-shell .guest-photo-reveal > span {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(35, 29, 41, .82);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.guest-shell .guest-photo-reveal.revealed .guest-message-image {
  filter: none;
  transform: none;
}

.guest-shell .guest-system-message {
  align-self: center;
  max-width: min(92%, 560px);
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1eef4;
  color: #6d6876;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.guest-shell .guest-photo-request-card {
  align-self: stretch;
  width: 100%;
  max-width: 620px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--guest-accent) 28%, var(--home-line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--guest-accent) 5%, #fff);
  box-sizing: border-box;
}

.guest-shell .guest-photo-request-card > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.guest-shell .guest-photo-request-card strong,
.guest-shell .guest-photo-request-card span {
  overflow-wrap: anywhere;
}

.guest-shell .guest-photo-request-card span {
  color: #6d6876;
  font-size: 12px;
}

.guest-shell .guest-photo-request-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.guest-shell .guest-composer {
  overflow: hidden;
}

.guest-shell .guest-composer textarea {
  overflow-wrap: anywhere;
}

.guest-shell .guest-composer button {
  max-width: 48px;
}

@media (max-width: 680px) {
  .guest-shell .guest-message {
    max-width: calc(100% - 36px);
  }

  .guest-shell .guest-photo-request-card {
    align-items: stretch;
    flex-direction: column;
  }

  .guest-shell .guest-photo-request-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 360px) {
  .guest-shell .guest-head-buttons #guestPhotoRequest {
    grid-column: 1 / -1;
  }

  .guest-shell .guest-photo-request-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .guest-shell .guest-photo-request-actions .guest-small-btn {
    width: 100%;
    min-width: 0;
  }
}
.brand-logo-image{display:block;width:auto;max-width:112px;height:28px;object-fit:contain}
.admin-seo-grid,.admin-brand-grid{display:grid;gap:16px;margin-top:18px}
.admin-seo-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.admin-seo-card h3,.brand-upload-card h3{margin:0}
.seo-score{white-space:nowrap;color:#62586a}
.seo-score b{color:var(--brand,#ff4f7b)}
.seo-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.seo-checks ul{list-style:none;margin:0;padding:10px;border-radius:10px;background:#faf7fb}
.seo-checks li{padding:3px 0;font-size:12px}.seo-pass{color:#176b45}.seo-fail{color:#9a394f}
.admin-brand-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.brand-upload-card{display:grid;align-content:start;gap:10px}
.brand-upload-card img{display:block;width:100%;height:120px;object-fit:contain;border:1px solid #eee7ef;border-radius:10px;background:#fff}
@media(max-width:640px){.seo-checks{grid-template-columns:1fr}.admin-seo-card>header{display:grid}.seo-score{white-space:normal}}

/* Focused administrator layout, playlist workflow, SEO-image, and normal-flow footer corrections. */
.admin-main{min-width:0;display:flex;flex-direction:column}
#adminContent{min-width:0;flex:1 0 auto}
.admin-footer{position:static;flex:0 0 auto;margin-top:34px;padding:18px 2px 6px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;text-align:center}
.admin-footer a{color:var(--pink);font-weight:800;text-decoration:none}
.admin-footer a:hover{text-decoration:underline}

.admin-brand-settings,.admin-brand-grid,.brand-upload-card,.brand-upload-card>*{min-width:0;max-width:100%}
.admin-brand-settings .admin-room-fields{grid-template-columns:minmax(180px,1fr) minmax(220px,1.4fr) minmax(120px,.45fr);align-items:end}
.admin-brand-settings>.btn{margin-top:16px}
.admin-brand-color input[type="color"]{min-height:42px;padding:4px}
.admin-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.brand-upload-card{display:flex;flex-direction:column;gap:12px;overflow:hidden}
.brand-upload-card header{display:grid;gap:5px}
.brand-upload-card header h3{margin:0}
.brand-upload-card header small{display:block;color:var(--muted);line-height:1.45;overflow-wrap:anywhere}
.brand-preview{width:100%;height:156px;display:grid;place-items:center;overflow:hidden;border:1px solid #eee7ef;border-radius:12px;background:#faf8fb;color:var(--muted);font-size:12px;text-align:center;padding:10px}
.brand-preview img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain}
.brand-file-field{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:800}
.brand-file-field input[type="file"]{display:block;width:100%;max-width:100%;min-width:0;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:12px}
.brand-upload-card>.btn{width:100%;margin-top:auto}

.seo-social-upload{grid-column:1/-1;min-width:0;display:grid;grid-template-columns:180px minmax(220px,1fr) auto;gap:12px;align-items:end;padding:14px;border:1px solid var(--line);border-radius:13px;background:#faf8fb}
.seo-social-upload>div{grid-row:1/3;width:180px;height:96px;display:grid;place-items:center;overflow:hidden;border-radius:10px;background:#fff;border:1px solid var(--line)}
.seo-social-upload img{display:block;width:100%;height:100%;object-fit:cover}
.seo-social-placeholder{padding:8px;color:var(--muted);font-size:11px;text-align:center}
.seo-social-upload label{min-width:0;display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:800}
.seo-social-upload input[type="file"]{width:100%;max-width:100%;min-width:0;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff}
.seo-social-upload small{grid-column:2/-1;color:var(--muted);overflow-wrap:anywhere}

.admin-playlist-create{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
.admin-playlist-create-head{grid-column:1/-1}
.admin-playlist-create-head h3{margin:0 0 6px}
.admin-playlist-create-head p{margin:0;color:var(--muted);font-size:12px}
.admin-playlist-create .field,.admin-playlist-create .field input,.admin-playlist-create .admin-audio-picker{min-width:0;max-width:100%}
.admin-playlist-create input[type="file"]{width:100%;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.admin-playlist-card{min-width:0;overflow:hidden}
.admin-playlist-card>header{flex-wrap:wrap}
.admin-playlist-field{display:grid;gap:6px;margin-top:12px;color:var(--muted);font-size:11px;font-weight:800}
.admin-playlist-field input,.admin-playlist-field textarea{min-width:0;width:100%;max-width:100%;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}
.admin-playlist-field textarea{min-height:72px;resize:vertical}
.admin-track-manager{min-width:0;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.admin-track-manager>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.admin-track-manager h4{margin:0 0 4px;font-size:15px}
.admin-track-manager p{margin:0;color:var(--muted);font-size:11px}
.admin-track-manager>header>span{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#fff1f5;color:var(--pink);font-size:10px;font-weight:800}
.admin-track-add{min-width:0}
.admin-track-add label{min-width:0;display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:800}
.admin-track-add input{width:100%;max-width:100%;min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.admin-track-upload{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(180px,1fr) auto}
.admin-track-row label{min-width:0;display:grid;gap:4px}
.admin-track-row input{min-width:0;width:100%;max-width:100%;padding:8px;border:1px solid var(--line);border-radius:9px}
.admin-track-row [data-track-order]{width:100%}
.admin-track-empty{padding:18px;border:1px dashed var(--line);border-radius:10px;text-align:center}

@media(max-width:900px){
  .admin-brand-settings .admin-room-fields{grid-template-columns:1fr 1fr}
  .admin-brand-color{grid-column:1/-1}
  .admin-track-upload{grid-template-columns:1fr 1fr}
  .admin-track-upload .btn{grid-column:1/-1}
  .seo-social-upload{grid-template-columns:140px minmax(0,1fr)}
  .seo-social-upload>div{width:140px}
  .seo-social-upload .btn{grid-column:2}
}
@media(max-width:640px){
  .admin-brand-settings .admin-room-fields,.admin-brand-grid,.admin-playlist-create{grid-template-columns:1fr}
  .admin-brand-color{grid-column:auto}
  .brand-preview{height:132px}
  .admin-track-upload,.seo-social-upload{grid-template-columns:1fr}
  .seo-social-upload>div{grid-row:auto;width:100%;height:150px}
  .seo-social-upload .btn,.seo-social-upload small{grid-column:auto}
  .admin-playlist-card>header>input{width:100%;flex-basis:100%}
  .admin-track-manager>header{display:grid}
  .admin-track-add .btn,.admin-playlist-actions .btn{width:100%}
}
