   :root{
      --bg: #070A0F;
      --text: rgba(255,255,255,0.92);
      --muted: rgba(255,255,255,0.68);
      --faint: rgba(255,255,255,0.55);
      --border: rgba(255,255,255,0.10);
      --shadow: 0 18px 60px rgba(0,0,0,0.45);
      --radius: 18px;

      --accent: #8AE1FF;
      --accent2: #B2FFDA;

      --okBg: rgba(168,255,184,0.12);
      --okBd: rgba(168,255,184,0.28);

      --errBg: rgba(255,90,90,0.12);
      --errBd: rgba(255,90,90,0.28);

      --warnBg: rgba(255,211,106,0.12);
      --warnBd: rgba(255,211,106,0.30);

      --infoBg: rgba(138,225,255,0.10);
      --infoBd: rgba(138,225,255,0.22);

      --switchOff: rgba(255,255,255,0.10);
      --switchOn: rgba(138,225,255,0.30);
    }

    *{ box-sizing:border-box; }
    body{
      margin:0;
      background: radial-gradient(900px 500px at 20% 10%, rgba(138,225,255,0.14), transparent 55%),
                  radial-gradient(700px 420px at 80% 25%, rgba(178,255,218,0.10), transparent 60%),
                  radial-gradient(900px 600px at 50% 110%, rgba(255,211,106,0.06), transparent 60%),
                  var(--bg);
      color: var(--text);
      font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      line-height: 1.45;
    }
    a{ color: inherit; text-decoration:none; }
    .container{ max-width: 1080px; margin: 0 auto; padding: 0 20px; }

    /* Topbar */
    .topbar{
      position: sticky; top: 0;
      backdrop-filter: blur(10px);
      background: rgba(7,10,15,0.65);
      border-bottom: 1px solid var(--border);
      z-index: 50;
    }
    .topbar-inner{
      display:flex; align-items:center; justify-content:space-between;
      padding: 14px 0;
      gap: 12px;
    }
    .brand{
      display:flex; align-items:center; gap: 10px;
      font-weight: 700; letter-spacing: 0.2px;
      white-space: nowrap;
    }
    .logo{
      width: 34px; height: 34px; border-radius: 10px;
      background: linear-gradient(145deg, rgba(138,225,255,0.22), rgba(178,255,218,0.18));
      border: 1px solid rgba(255,255,255,0.12);
      box-shadow: 0 10px 35px rgba(0,0,0,0.35);
      display:flex; align-items:center; justify-content:center;
      flex: 0 0 auto;
    }
    .logo svg{ opacity: 0.9; }
    .nav{
      display:flex; align-items:center; gap: 12px;
      color: var(--muted);
      font-size: 14px;
      flex-wrap: wrap;
      justify-content: center;
    }
    .nav a{ padding: 8px 10px; border-radius: 10px; }
    .nav a:hover{ background: rgba(255,255,255,0.06); color: var(--text); }
    @media (max-width: 860px){
      .nav{ display:none; }
    }

    .btn{
      display:inline-flex; align-items:center; justify-content:center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.06);
      color: var(--text);
      font-weight: 600;
      font-size: 14px;
      transition: transform .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
      cursor: pointer;
      user-select: none;
      white-space: nowrap;
    }
    .btn:hover{
      transform: translateY(-1px);
      background: rgba(255,255,255,0.09);
      border-color: rgba(255,255,255,0.16);
    }
    .btn.primary{
      background: linear-gradient(145deg, rgba(138,225,255,0.20), rgba(178,255,218,0.14));
      border-color: rgba(138,225,255,0.28);
    }
    .btn.primary:hover{ border-color: rgba(138,225,255,0.42); }
    .btn:disabled{
      opacity: 0.45;
      cursor: not-allowed;
      transform: none !important;
    }

    main{ padding: 26px 0 52px; }

    h1{
      margin: 0 0 8px;
      font-size: 28px;
      letter-spacing: -0.25px;
    }
    .lead{
      margin: 0 0 14px;
      color: var(--muted);
      font-size: 15px;
      max-width: 90ch;
    }

    /* Layout cards */
    .stack{ display:flex; flex-direction:column; gap: 14px; margin-top: 12px; }
    .card{
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: rgba(255,255,255,0.04);
      box-shadow: var(--shadow);
      padding: 18px;
    }
    .card h2{
      margin: 0 0 12px;
      font-size: 16px;
      letter-spacing: 0.2px;
    }
    .muted{ color: var(--muted); }
    .small{ font-size: 13px; color: var(--muted); }
    .hr{ margin:16px 0; border:0; border-top: 1px solid rgba(255,255,255,0.10); }

    .grid2{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      align-items: start;
    }
    @media (max-width: 980px){
      .grid2{ grid-template-columns: 1fr; }
    }

    /* Pills / alerts */
    .pill{
      display:inline-flex;
      align-items:center;
      gap: 8px;
      padding: 7px 10px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.05);
      color: var(--muted);
      font-size: 13px;
      width: fit-content;
    }
    .dot{
      width: 9px; height: 9px;
      border-radius: 999px;
      background: rgba(255,255,255,0.35);
    }
    .dot.ok{ background: rgba(168,255,184,0.9); box-shadow: 0 0 20px rgba(168,255,184,0.25); }

    .alert{
      border-radius: 16px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.04);
      padding: 12px 12px;
      color: var(--text);
    }
    .alert.ok{ background: var(--okBg); border-color: var(--okBd); }
    .alert.err{ background: var(--errBg); border-color: var(--errBd); }
    .alert.warn{ background: var(--warnBg); border-color: var(--warnBd); }
    .alert.info{ background: var(--infoBg); border-color: var(--infoBd); }

    /* Flash */
    .flash{
      padding: 10px 12px;
      border-radius: 16px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.04);
      margin-bottom: 10px;
      color: var(--text);
      font-size: 14px;
    }
    .flash.success{ background: var(--okBg); border-color: var(--okBd); }
    .flash.error{ background: var(--errBg); border-color: var(--errBd); }
    .flash.warning{ background: var(--warnBg); border-color: var(--warnBd); }

    /* Form */
    label.label{
      display:block;
      font-weight: 700;
      font-size: 13px;
      color: rgba(255,255,255,0.82);
      margin-top: 14px;
      margin-bottom: 8px;
      letter-spacing: 0.15px;
    }
    textarea, input[type="text"], select{
      width: 100%;
      padding: 12px 12px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(0,0,0,0.18);
      color: var(--text);
      outline: none;
    }
    textarea{ min-height: 88px; resize: vertical; }
    textarea:focus, input[type="text"]:focus, select:focus{
      border-color: rgba(138,225,255,0.38);
      box-shadow: 0 0 0 4px rgba(138,225,255,0.12);
    }

    .inline{
      display:flex;
      align-items:flex-start;
      gap: 10px;
      margin-top: 10px;
    }
    .inline input[type="checkbox"]{
      margin-top: 2px;
      width: 18px; height: 18px;
      accent-color: rgba(138,225,255,0.85);
    }
    .disabled{
      opacity: 0.55;
    }

    /* TikTok-style toggle row (more "obvious" for audit) */
    .toggleRow{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 12px;
      padding: 12px 12px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(0,0,0,0.18);
      margin-top: 12px;
    }
    .toggleRow .tTitle{
      font-weight: 700;
      font-size: 13px;
      color: rgba(255,255,255,0.86);
    }
    .toggleRow .tSub{
      font-size: 12.5px;
      color: var(--muted);
      margin-top: 3px;
      max-width: 68ch;
    }
    .switch{
      position: relative;
      width: 44px;
      height: 26px;
      border-radius: 999px;
      background: var(--switchOff);
      border: 1px solid rgba(255,255,255,0.12);
      transition: background .12s ease, border-color .12s ease;
      flex: 0 0 auto;
      cursor: pointer;
    }
    .switch .knob{
      position:absolute;
      top: 50%;
      left: 3px;
      width: 20px;
      height: 20px;
      border-radius: 999px;
      transform: translateY(-50%);
      background: rgba(255,255,255,0.86);
      transition: left .12s ease, background .12s ease;
      box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    }
    .switch.on{
      background: var(--switchOn);
      border-color: rgba(138,225,255,0.30);
    }
    .switch.on .knob{
      left: 21px;
      background: rgba(255,255,255,0.94);
    }
    /* keep checkbox accessible but visually hidden */
    .srOnly{
      position:absolute;
      width:1px; height:1px;
      padding:0; margin:-1px;
      overflow:hidden;
      clip:rect(0,0,0,0);
      white-space:nowrap;
      border:0;
    }

    video{
      width: 100%;
      max-height: 420px;
      background: #000;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.10);
    }

    footer{
      border-top: 1px solid var(--border);
      padding: 18px 0 34px;
      color: var(--faint);
      font-size: 13px;
      margin-top: 22px;
    }
    .footer-links{
      display:flex; gap: 12px; flex-wrap:wrap;
      color: var(--muted);
      margin-top: 10px;
    }
    .footer-links a{
      padding: 6px 8px;
      border-radius: 10px;
    }
    .footer-links a:hover{
      background: rgba(255,255,255,0.06);
      color: var(--text);
    }
    /* TikTok-like privacy picker */
.ttPicker { position: relative; max-width: 620px; }

.ttPickerBtn{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
}

.ttPickerBtn:hover{
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.06);
}

.ttPickerText{ display:flex; flex-direction:column; gap: 3px; text-align:left; }
.ttPickerTitle{ font-weight: 700; letter-spacing: 0.2px; }
.ttPickerSub{ font-size: 12px; color: rgba(255,255,255,0.68); }
.ttChevron{ opacity: 0.75; }

.ttMenu{
  position:absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left:0;
  right:0;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,12,18,0.98);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  overflow:hidden;
}

.ttItem{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor:pointer;
}

.ttItem:hover{
  background: rgba(255,255,255,0.06);
}

.ttItemMain{ display:flex; flex-direction:column; gap: 3px; }
.ttItemLabel{ font-weight: 700; color: rgba(255,255,255,0.92); }
.ttItemDesc{ font-size: 12px; color: rgba(255,255,255,0.68); }

.ttItemSelected{
  background: rgba(255,255,255,0.08);
}

.ttItemSelected .ttItemLabel{
  color: rgba(255,255,255,0.95);
}

.ttItemDisabled{
  cursor: not-allowed;
  background: rgba(255,255,255,0.02);
}

.ttItemDisabled:hover{
  background: rgba(255,255,255,0.02);
}

/* Make disabled Private clearly different */
.ttItemDisabled .ttItemLabel{
  color: rgba(255,120,120,0.90);
}

.ttItemDisabled .ttItemDesc{
  color: rgba(255,120,120,0.70);
}

/* Tooltip */
.ttTip{
  position:absolute;
  z-index: 60;
  left: 14px;
  right: 14px;
  bottom: -142px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0);
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}
