    :root {
      --bg: #0a0a10;
      --s1: #12121c;
      --s2: #1a1a28;
      --s3: #222235;
      --border: rgba(255, 255, 255, 0.06);
      --border2: rgba(255, 255, 255, 0.12);
      --a: #6c63ff;
      --a2: #c45bff;
      --g: #00e5a0;
      --r: #ff4d6a;
      --y: #ffb020;
      --text: #eeeeff;
      --sub: #9898b8;
      --radius: 18px;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent
    }

    html,
    body {
      height: 100%;
      width: 100%;
      background: var(--bg);
      color: var(--text);
      font-family: 'DM Sans', sans-serif;
      overflow: hidden;
      position: fixed
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      z-index: 0;
      background:
        radial-gradient(ellipse 70% 50% at 90% -10%, rgba(108, 99, 255, .2) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at -10% 90%, rgba(196, 91, 255, .15) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(0, 229, 160, .04) 0%, transparent 60%);
      pointer-events: none
    }

    /* ── screens ── */
    .screen {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      z-index: 1;
      transition: opacity .35s, transform .35s
    }

    .screen.hidden {
      opacity: 0;
      pointer-events: none;
      transform: translateY(20px)
    }

    .sa {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 30px
    }

    .sa::-webkit-scrollbar {
      display: none
    }

    /* ── typography ── */
    .logo {
      font-family: 'Syne', sans-serif;
      font-weight: 800;
      font-size: 30px;
      padding: 54px 24px 4px;
      background: linear-gradient(130deg, #fff 20%, rgba(108, 99, 255, .9));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent
    }

    .logo em {
      font-style: normal;
      font-weight: 400;
      opacity: .45
    }

    .tagline {
      font-size: 14px;
      color: var(--sub);
      padding: 0 24px 16px;
      font-weight: 400;
      line-height: 1.5
    }

    .home-steps {
      margin: 0 14px 14px;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid var(--border2);
      background: rgba(255, 255, 255, 0.02)
    }

    .home-step {
      font-size: 12px;
      color: var(--sub);
      line-height: 1.6
    }

    .home-step + .home-step {
      margin-top: 2px
    }

    /* ── cards ── */
    .card {
      background: var(--s1);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      margin: 0 14px 12px;
      padding: 20px
    }

    .card-title {
      font-family: 'Syne', sans-serif;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--sub);
      margin-bottom: 16px
    }

    /* ── fields ── */
    .field {
      display: flex;
      flex-direction: column;
      gap: 5px;
      margin-bottom: 13px
    }

    .field label {
      font-size: 12px;
      color: var(--sub);
      font-weight: 500;
      letter-spacing: .3px
    }

    .field-help {
      font-size: 12px;
      color: var(--sub);
      line-height: 1.5;
      margin: -2px 0 12px
    }

    .field input,
    .field select,
    .field textarea {
      background: var(--s2);
      border: 1px solid var(--border2);
      border-radius: 12px;
      color: var(--text);
      font-family: 'DM Sans', sans-serif;
      font-size: 15px;
      padding: 13px 15px;
      outline: none;
      transition: border-color .2s;
      -webkit-appearance: none;
      width: 100%
    }

    .field input:focus,
    .field select:focus,
    .field textarea:focus {
      border-color: var(--a)
    }

    .field input::placeholder,
    .field textarea::placeholder {
      color: var(--sub);
      opacity: .5
    }

    .field textarea {
      resize: none;
      line-height: 1.5
    }

    .field select {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239898b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center
    }

    /* ── buttons ── */
    .btn {
      width: 100%;
      padding: 16px;
      border-radius: 13px;
      border: none;
      font-family: 'Syne', sans-serif;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: opacity .15s, transform .12s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px
    }

    .btn:active {
      opacity: .8;
      transform: scale(.97)
    }

    .btn-p {
      background: linear-gradient(135deg, var(--a), var(--a2));
      color: #fff;
      box-shadow: 0 6px 28px rgba(108, 99, 255, .4);
      margin-bottom: 9px
    }

    .btn-s {
      background: var(--s2);
      color: var(--text);
      border: 1px solid var(--border2)
    }

    .btn-g {
      background: rgba(0, 229, 160, .1);
      color: var(--g);
      border: 1px solid rgba(0, 229, 160, .25)
    }

    .btn-r {
      background: rgba(255, 77, 106, .1);
      color: var(--r);
      border: 1px solid rgba(255, 77, 106, .25)
    }

    .btn-ghost {
      background: transparent;
      color: var(--sub);
      font-size: 13px;
      font-weight: 500
    }

    .btn-sm {
      width: auto;
      padding: 9px 18px;
      font-size: 12px;
      border-radius: 10px
    }

    /* ── divider ── */
    .div {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 2px 22px 12px
    }

    .div::before,
    .div::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border)
    }

    .div span {
      font-size: 11px;
      color: var(--sub)
    }

    .home-alt {
      margin: 2px 14px 12px;
      display: flex;
      justify-content: center
    }

    .home-link-btn {
      background: transparent;
      border: none;
      color: var(--sub);
      font-family: 'DM Sans', sans-serif;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 2px;
      transition: color .2s
    }

    .home-link-btn:hover,
    .home-link-btn:focus-visible {
      color: var(--a)
    }

    /* ── toggle ── */
    .tgl {
      width: 50px;
      height: 28px;
      background: var(--s3);
      border-radius: 14px;
      border: 1px solid var(--border2);
      position: relative;
      cursor: pointer;
      transition: background .25s;
      flex-shrink: 0
    }

    .tgl.on {
      background: var(--a)
    }

    .tgl::after {
      content: '';
      position: absolute;
      width: 20px;
      height: 20px;
      background: #fff;
      border-radius: 50%;
      top: 3px;
      left: 3px;
      transition: transform .25s;
      box-shadow: 0 2px 5px rgba(0, 0, 0, .3)
    }

    .tgl.on::after {
      transform: translateX(22px)
    }

    /* ── room header ── */
    .rh {
      padding: 54px 22px 14px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px
    }

    .rn {
      font-family: 'Syne', sans-serif;
      font-size: 22px;
      font-weight: 800;
      line-height: 1.15;
      word-break: break-word;
      flex: 1
    }

    .rcb {
      background: var(--s2);
      border: 1px solid var(--border2);
      border-radius: 10px;
      padding: 8px 12px;
      text-align: center;
      flex-shrink: 0
    }

    .rcb .lbl {
      font-size: 8px;
      color: var(--sub);
      text-transform: uppercase;
      letter-spacing: 1.2px
    }

    .rcb .code {
      font-family: 'Syne', sans-serif;
      font-size: 17px;
      font-weight: 800;
      letter-spacing: 3px;
      color: var(--a)
    }

    .statbar {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 0 22px 18px;
      font-size: 12px;
      color: var(--sub)
    }

    .dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--g);
      box-shadow: 0 0 7px var(--g);
      animation: blink 2s infinite
    }

    @keyframes blink {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: .35
      }
    }

    /* ── mode card ── */
    .mc {
      background: var(--s1);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      margin: 0 14px 12px;
      padding: 14px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px
    }

    .mc-label {
      font-family: 'Syne', sans-serif;
      font-size: 13px;
      font-weight: 700
    }

    .mc-desc {
      font-size: 11px;
      color: var(--sub);
      margin-top: 2px
    }

    /* ── admin panel ── */
    .ap {
      margin: 0 14px 12px;
      background: rgba(108, 99, 255, .06);
      border: 1px solid rgba(108, 99, 255, .18);
      border-radius: var(--radius);
      padding: 16px 18px
    }

    .ap-title {
      font-family: 'Syne', sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--a);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 6px
    }

    .ap-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 9px 0;
      border-bottom: 1px solid var(--border)
    }

    .ap-row:last-child {
      border-bottom: none;
      padding-bottom: 0
    }

    .ap-row-l {
      font-size: 13px;
      font-weight: 500
    }

    .ap-row-d {
      font-size: 11px;
      color: var(--sub);
      margin-top: 2px
    }

    /* ── participants ── */
    .sl {
      font-family: 'Syne', sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--sub);
      padding: 2px 22px 10px
    }

    .pgrid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 9px;
      padding: 0 14px 14px
    }

    .p {
      background: var(--s1);
      border: 1px solid var(--border);
      border-radius: 15px;
      padding: 14px 8px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 7px;
      position: relative;
      overflow: hidden;
      transition: border-color .2s, box-shadow .2s
    }

    .p.sp {
      border-color: var(--g);
      box-shadow: 0 0 18px rgba(0, 229, 160, .18)
    }

    .p.sp::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 160, .07), transparent 70%)
    }

    .av {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--a), var(--a2));
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Syne', sans-serif;
      font-size: 17px;
      font-weight: 800;
      color: #fff;
      position: relative;
      flex-shrink: 0
    }

    .av.you {
      background: linear-gradient(135deg, #00e5a0, #00b8ff)
    }

    .ring {
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      border: 2px solid var(--g);
      opacity: 0;
      animation: rp 1s ease infinite
    }

    .p.sp .ring {
      opacity: 1
    }

    @keyframes rp {

      0%,
      100% {
        transform: scale(1);
        opacity: 1
      }

      50% {
        transform: scale(1.12);
        opacity: .4
      }
    }

    .pn {
      font-size: 11px;
      font-weight: 500;
      text-align: center;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      width: 100%
    }

    .ps2 {
      font-size: 10px;
      color: var(--sub);
      display: flex;
      align-items: center;
      gap: 3px
    }

    .ps2.live {
      color: var(--g)
    }

    .admin-tag {
      position: absolute;
      top: 5px;
      right: 5px;
      background: rgba(108, 99, 255, .25);
      color: var(--a);
      font-size: 7px;
      font-weight: 700;
      padding: 2px 4px;
      border-radius: 4px;
      text-transform: uppercase
    }

    .wf {
      display: flex;
      align-items: center;
      gap: 2px;
      height: 18px
    }

    .wb {
      width: 2.5px;
      background: var(--g);
      border-radius: 2px;
      animation: wa .8s ease infinite
    }

    .wb:nth-child(1) {
      animation-delay: 0s
    }

    .wb:nth-child(2) {
      animation-delay: .13s
    }

    .wb:nth-child(3) {
      animation-delay: .26s
    }

    .wb:nth-child(4) {
      animation-delay: .13s
    }

    .wb:nth-child(5) {
      animation-delay: 0s
    }

    @keyframes wa {

      0%,
      100% {
        height: 3px
      }

      50% {
        height: 16px
      }
    }

    /* ── PTT ── */
    .pta {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 14px 22px 38px;
      background: linear-gradient(to top, var(--bg) 65%, transparent);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      z-index: 100
    }

    .ph {
      font-size: 11px;
      color: var(--sub)
    }

    .pb {
      width: 84px;
      height: 84px;
      border-radius: 50%;
      border: 2px solid var(--border2);
      background: var(--s2);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all .15s;
      -webkit-user-select: none;
      user-select: none;
      position: relative
    }

    .pb::before {
      content: '';
      position: absolute;
      inset: -9px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(108, 99, 255, .18), transparent 70%);
      opacity: 0;
      transition: opacity .2s
    }

    .pb.active {
      background: linear-gradient(135deg, var(--a), var(--a2));
      border-color: transparent;
      box-shadow: 0 0 36px rgba(108, 99, 255, .55);
      transform: scale(1.07)
    }

    .pb.active::before {
      opacity: 1
    }

    .pb svg {
      width: 30px;
      height: 30px
    }

    .pb.lm {
      background: rgba(0, 229, 160, .1);
      border-color: var(--g);
      box-shadow: 0 0 18px rgba(0, 229, 160, .18);
      cursor: default
    }

    /* ── SCHEDULER SCREEN ── */
    .sch-header {
      padding: 54px 22px 20px;
      display: flex;
      align-items: center;
      gap: 14px
    }

    .back-btn {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: var(--s2);
      border: 1px solid var(--border2);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex-shrink: 0
    }

    .sch-title {
      font-family: 'Syne', sans-serif;
      font-size: 20px;
      font-weight: 800
    }

    .sch-sub {
      font-size: 12px;
      color: var(--sub);
      margin-top: 2px
    }

    .schedule-note {
      font-size: 12px;
      line-height: 1.55;
      color: var(--sub);
      background: var(--s2);
      border: 1px solid var(--border2);
      border-radius: 12px;
      padding: 10px 12px;
      margin-bottom: 10px
    }

    .schedule-toggle-btn {
      margin-bottom: 12px;
      font-size: 13px;
      padding: 12px
    }

    /* participant list item */
    .pli {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 11px 0;
      border-bottom: 1px solid var(--border)
    }

    .pli:last-child {
      border-bottom: none
    }

    .pli-av {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--a), var(--a2));
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Syne', sans-serif;
      font-size: 15px;
      font-weight: 800;
      color: #fff;
      flex-shrink: 0
    }

    .pli-info {
      flex: 1;
      min-width: 0
    }

    .pli-name {
      font-size: 14px;
      font-weight: 500;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap
    }

    .pli-contact {
      font-size: 11px;
      color: var(--sub);
      margin-top: 1px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap
    }

    .pli-del {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: rgba(255, 77, 106, .1);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--r);
      flex-shrink: 0;
      transition: background .2s
    }

    .pli-del:active {
      background: rgba(255, 77, 106, .2)
    }

    /* scheduled list item */
    .sli {
      background: var(--s1);
      border: 1px solid var(--border);
      border-radius: 14px;
      margin-bottom: 10px;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      gap: 14px;
      transition: all .2s
    }

    .sli.sent {
      opacity: .5
    }

    .sli-time {
      flex: 1
    }

    .sli-when {
      font-family: 'Syne', sans-serif;
      font-size: 14px;
      font-weight: 700;
      color: var(--text)
    }

    .sli-info {
      font-size: 11px;
      color: var(--sub);
      margin-top: 2px
    }

    .sli-badge {
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 10px;
      font-weight: 700;
      font-family: 'Syne', sans-serif;
      text-transform: uppercase;
      letter-spacing: .5px;
      flex-shrink: 0
    }

    .sli-badge.pending {
      background: rgba(255, 176, 32, .15);
      color: var(--y)
    }

    .sli-badge.sent {
      background: rgba(0, 229, 160, .15);
      color: var(--g)
    }

    .sli-badge.sending {
      background: rgba(108, 99, 255, .2);
      color: var(--a)
    }

    /* datetime picker styling */
    .dt-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-bottom: 13px
    }

    .dt-grid .field {
      margin-bottom: 0
    }

    /* ── recurrence pills ── */
    .recur-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 4px
    }

    .rpill {
      background: var(--s2);
      border: 1px solid var(--border2);
      border-radius: 20px;
      padding: 7px 14px;
      font-family: 'Syne', sans-serif;
      font-size: 12px;
      font-weight: 700;
      color: var(--sub);
      cursor: pointer;
      transition: all .18s;
      white-space: nowrap
    }

    .rpill:active {
      transform: scale(.94)
    }

    .rpill.active {
      background: linear-gradient(135deg, var(--a), var(--a2));
      border-color: transparent;
      color: #fff;
      box-shadow: 0 3px 12px rgba(108, 99, 255, .35)
    }

    .daypill {
      background: var(--s2);
      border: 1px solid var(--border2);
      border-radius: 20px;
      padding: 6px 11px;
      font-family: 'Syne', sans-serif;
      font-size: 12px;
      font-weight: 700;
      color: var(--sub);
      cursor: pointer;
      transition: all .18s
    }

    .daypill:active {
      transform: scale(.94)
    }

    .daypill.active {
      background: rgba(108, 99, 255, .2);
      border-color: var(--a);
      color: var(--text)
    }

    /* ── time chips ── */
    .time-chip {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: rgba(108, 99, 255, .15);
      border: 1px solid rgba(108, 99, 255, .35);
      border-radius: 20px;
      padding: 7px 14px 7px 14px;
      font-family: 'Syne', sans-serif;
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      animation: chipIn .2s ease
    }

    @keyframes chipIn {
      from {
        opacity: 0;
        transform: scale(.85)
      }

      to {
        opacity: 1;
        transform: scale(1)
      }
    }

    .chip-time {
      letter-spacing: .5px
    }

    .chip-del {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .12);
      border: none;
      color: var(--sub);
      font-size: 13px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background .15s
    }

    .chip-del:active {
      background: rgba(255, 77, 106, .3);
      color: var(--r)
    }

    .time-preset {
      background: var(--s2);
      border: 1px solid var(--border2);
      border-radius: 20px;
      padding: 6px 13px;
      font-family: 'Syne', sans-serif;
      font-size: 12px;
      font-weight: 700;
      color: var(--sub);
      cursor: pointer;
      transition: all .15s;
      white-space: nowrap
    }

    .time-preset:active {
      background: rgba(108, 99, 255, .15);
      border-color: var(--a);
      color: var(--text);
      transform: scale(.95)
    }

    /* ── time picker sheet ── */
    .tps-wrap {
      position: fixed;
      inset: 0;
      z-index: 200;
      display: flex;
      flex-direction: column;
      justify-content: flex-end
    }

    .tps-wrap.hidden {
      display: none
    }

    .tps-overlay {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, .65);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px)
    }

    .tps-sheet {
      position: relative;
      background: var(--s1);
      border-radius: 24px 24px 0 0;
      padding: 24px 20px 44px;
      border-top: 1px solid var(--border2);
      animation: sheetUp .25s ease;
      overflow-y: auto;
      max-height: 90vh
    }

    @keyframes sheetUp {
      from {
        transform: translateY(100%)
      }

      to {
        transform: translateY(0)
      }
    }

    .tps-handle {
      width: 40px;
      height: 4px;
      background: var(--border2);
      border-radius: 2px;
      margin: 0 auto 18px
    }

    .tps-hdr {
      font-family: 'Syne', sans-serif;
      font-size: 16px;
      font-weight: 800;
      text-align: center;
      margin-bottom: 6px
    }

    .tps-display {
      font-family: 'Syne', sans-serif;
      font-size: 40px;
      font-weight: 800;
      text-align: center;
      margin-bottom: 20px;
      background: linear-gradient(130deg, #fff 30%, rgba(108, 99, 255, .85));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      letter-spacing: 1px
    }

    .ampm-row {
      display: flex;
      gap: 8px;
      justify-content: center;
      margin-bottom: 18px
    }

    .ampm-btn {
      width: 90px;
      padding: 10px;
      border-radius: 12px;
      border: 1px solid var(--border2);
      background: var(--s2);
      font-family: 'Syne', sans-serif;
      font-size: 14px;
      font-weight: 700;
      color: var(--sub);
      cursor: pointer;
      transition: all .15s
    }

    .ampm-btn.active {
      background: linear-gradient(135deg, var(--a), var(--a2));
      border-color: transparent;
      color: #fff;
      box-shadow: 0 3px 12px rgba(108, 99, 255, .35)
    }

    .picker-label {
      font-size: 10px;
      color: var(--sub);
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      margin-bottom: 8px
    }

    .hour-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 7px;
      margin-bottom: 18px
    }

    .hour-btn {
      padding: 12px 0;
      border-radius: 11px;
      border: 1px solid var(--border2);
      background: var(--s2);
      font-family: 'Syne', sans-serif;
      font-size: 15px;
      font-weight: 700;
      color: var(--sub);
      cursor: pointer;
      transition: all .15s;
      text-align: center
    }

    .hour-btn.active {
      background: linear-gradient(135deg, var(--a), var(--a2));
      border-color: transparent;
      color: #fff
    }

    .hour-btn:active {
      transform: scale(.93)
    }

    .min-grid {
      display: flex;
      gap: 8px;
      margin-bottom: 22px
    }

    .min-btn {
      flex: 1;
      padding: 12px 0;
      border-radius: 11px;
      border: 1px solid var(--border2);
      background: var(--s2);
      font-family: 'Syne', sans-serif;
      font-size: 14px;
      font-weight: 700;
      color: var(--sub);
      cursor: pointer;
      transition: all .15s;
      text-align: center
    }

    .min-btn.active {
      background: rgba(108, 99, 255, .2);
      border-color: var(--a);
      color: var(--text)
    }

    .min-btn:active {
      transform: scale(.93)
    }

    /* ── preset pills ── */
    .preset-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--s2);
      border: 1px solid var(--border2);
      border-radius: 20px;
      padding: 7px 7px 7px 13px;
      cursor: pointer;
      transition: border-color .15s
    }

    .preset-pill:active {
      border-color: var(--a)
    }

    .preset-pill-name {
      font-family: 'Syne', sans-serif;
      font-size: 12px;
      font-weight: 700;
      color: var(--text)
    }

    .preset-pill-count {
      font-size: 10px;
      color: var(--sub)
    }

    .preset-pill-load {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: rgba(108, 99, 255, .2);
      border: none;
      color: var(--a);
      font-size: 11px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background .15s
    }

    .preset-pill-load:active {
      background: rgba(108, 99, 255, .4)
    }

    .preset-pill-del {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: rgba(255, 77, 106, .1);
      border: none;
      color: var(--r);
      font-size: 13px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background .15s;
      line-height: 1
    }

    .preset-pill-del:active {
      background: rgba(255, 77, 106, .25)
    }

    /* ── invite preview ── */
    .preview-box {
      background: var(--s2);
      border: 1px solid var(--border2);
      border-radius: 12px;
      padding: 14px 15px;
      font-size: 13px;
      line-height: 1.6;
      color: var(--text);
      white-space: pre-wrap;
      word-break: break-word;
      max-height: 150px;
      overflow-y: auto
    }

    .preview-box::-webkit-scrollbar {
      display: none
    }

    /* ── send options ── */
    .send-opts {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 9px;
      margin-bottom: 10px
    }

    .sopt {
      background: var(--s2);
      border: 1px solid var(--border2);
      border-radius: 13px;
      padding: 14px 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      transition: border-color .2s, background .2s
    }

    .sopt:active {
      transform: scale(.97)
    }

    .sopt.sel {
      border-color: var(--a);
      background: rgba(108, 99, 255, .08)
    }

    .sopt-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center
    }

    .sopt-label {
      font-family: 'Syne', sans-serif;
      font-size: 11px;
      font-weight: 700;
      text-align: center
    }

    .sopt-desc {
      font-size: 10px;
      color: var(--sub);
      text-align: center
    }

    /* ── countdown chip ── */
    .countdown-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 176, 32, .12);
      border: 1px solid rgba(255, 176, 32, .25);
      border-radius: 20px;
      padding: 6px 14px;
      font-size: 12px;
      color: var(--y);
      font-weight: 500
    }

    .cc-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--y);
      animation: blink 1s infinite
    }

    /* ── toast ── */
    .toast {
      position: fixed;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: var(--s2);
      border: 1px solid var(--border2);
      border-radius: 12px;
      padding: 11px 20px;
      font-size: 13px;
      color: var(--text);
      opacity: 0;
      transition: all .3s;
      white-space: nowrap;
      z-index: 300;
      pointer-events: none;
      max-width: 90vw;
      text-align: center
    }

    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0)
    }

    /* ── perm ── */
    .ps-screen {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      padding: 40px 28px;
      text-align: center;
      gap: 14px
    }

    .pi {
      width: 76px;
      height: 76px;
      background: linear-gradient(135deg, var(--a), var(--a2));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 36px rgba(108, 99, 255, .4);
      margin-bottom: 6px
    }

    .pt {
      font-family: 'Syne', sans-serif;
      font-size: 22px;
      font-weight: 800
    }

    .pd {
      font-size: 13px;
      color: var(--sub);
      line-height: 1.65
    }

    /* ── empty state ── */
    .empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      padding: 30px 20px;
      color: var(--sub)
    }

    .empty-icon {
      opacity: .3
    }

    .empty-text {
      font-size: 13px;
      text-align: center;
      line-height: 1.5
    }

    /* nav bar at bottom of room screen */
    .room-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 14px 22px 38px;
      background: linear-gradient(to top, var(--bg) 65%, transparent);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      z-index: 100
    }

    .room-leave-btn {
      border: 1px solid rgba(255, 77, 106, .4);
      background: rgba(255, 77, 106, .14);
      color: #ff5b7a;
      border-radius: 10px;
      padding: 8px 12px;
      font-family: 'Syne', sans-serif;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .3px;
      cursor: pointer;
      transition: all .2s;
    }

    .room-leave-btn:hover,
    .room-leave-btn:active {
      background: rgba(255, 77, 106, .2);
      border-color: rgba(255, 77, 106, .55);
    }

    /* ── segment tabs ── */
    .tabs {
      display: flex;
      background: var(--s2);
      border: 1px solid var(--border);
      border-radius: 14px;
      margin: 0 14px 14px;
      padding: 4px;
      gap: 4px
    }

    .tab {
      flex: 1;
      padding: 9px;
      border-radius: 10px;
      border: none;
      background: transparent;
      font-family: 'Syne', sans-serif;
      font-size: 12px;
      font-weight: 700;
      color: var(--sub);
      cursor: pointer;
      transition: all .2s
    }

    .tab.active {
      background: var(--a);
      color: #fff;
      box-shadow: 0 3px 14px rgba(108, 99, 255, .35)
    }

    .install-wrap {
      margin: 0 14px;
      padding: 4px 0 10px
    }

    .install-wrap.hidden {
      display: none
    }

    .install-hint {
      font-size: 11px;
      color: var(--sub);
      text-align: center;
      line-height: 1.5;
      padding: 2px 6px 0
    }

    audio {
      display: none
    }
