:root{
  --bg:#07101a;
  --panel:#0c1725;
  --panel2:#111f30;
  --border:#263a50;
  --text:#ebf1f7;
  --muted:#8fa2b6;
  --accent:#43bad4;
  --green:#52cf8c;
  --amber:#e2b45f;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(
      circle at 50% -20%,
      #17334b 0,
      transparent 42%
    ),
    var(--bg);
  color:var(--text);
  font-family:
    Inter,
    system-ui,
    sans-serif;
}

.hidden{
  display:none !important;
}

.topbar{
  height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 24px;
  background:#091420;
  border-bottom:1px solid var(--border);
}

.brand{
  display:flex;
  align-items:center;
  gap:11px;
}

.brand-mark{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid var(--accent);
  border-radius:9px;
  color:var(--accent);
  font-weight:850;
}

.brand-name{
  font-weight:750;
}

.brand-sub{
  margin-top:2px;
  color:var(--muted);
  font-size:9px;
  letter-spacing:.14em;
}

.session-area{
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--muted);
  font-size:12px;
}

main{
  max-width:1200px;
  margin:auto;
  padding:48px 24px;
}

.login-shell{
  min-height:calc(100vh - 165px);
  display:flex;
  justify-content:center;
  align-items:center;
}

.login-card{
  width:min(470px,100%);
  padding:32px;
  background:rgba(12,23,37,.96);
  border:1px solid var(--border);
  border-radius:13px;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}

.eyebrow{
  color:var(--accent);
  font-size:9px;
  letter-spacing:.15em;
}

.login-card h1{
  margin:8px 0 10px;
  font-size:34px;
  line-height:1.08;
}

.lead{
  color:var(--muted);
  line-height:1.6;
  margin-bottom:26px;
}

label{
  display:block;
  margin:14px 0 7px;
  color:#bbc8d4;
  font-size:11px;
}

input{
  width:100%;
  padding:12px;
  color:white;
  background:#07131f;
  border:1px solid #334c65;
  border-radius:7px;
  outline:none;
}

input:focus{
  border-color:var(--accent);
}

.code-input{
  text-align:center;
  font-size:26px;
  font-weight:750;
  letter-spacing:.35em;
}

.code-hint{
  padding:11px;
  border:1px solid var(--border);
  border-radius:7px;
  background:#0b1a29;
  color:var(--muted);
  font-size:12px;
}

button{
  cursor:pointer;
  font:inherit;
}

.primary,
.secondary,
.ghost{
  border-radius:7px;
}

.primary{
  border:1px solid #358fa5;
  background:#123d4d;
  color:#e5fbff;
  padding:10px 13px;
}

.primary:hover{
  background:#174e61;
}

.secondary{
  border:1px solid var(--border);
  background:#122031;
  color:#c3ced8;
  padding:10px 13px;
}

.ghost{
  padding:7px 10px;
  color:#aebdcc;
  background:transparent;
  border:1px solid var(--border);
}

.full{
  width:100%;
  margin-top:14px;
}

.text-button{
  width:100%;
  margin-top:12px;
  border:0;
  background:transparent;
  color:var(--accent);
}

.auth-message{
  min-height:22px;
  margin-top:13px;
  color:var(--muted);
  font-size:12px;
}

.auth-message.error{
  color:#ff8585;
}

.launcher-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin-bottom:28px;
}

.launcher-head h1{
  margin:5px 0;
  font-size:32px;
}

.launcher-head p{
  margin:0;
  color:var(--muted);
}

.live-pill{
  padding:8px 12px;
  border:1px solid #2f6249;
  border-radius:99px;
  color:#91e7ba;
  background:#0c251c;
  font-size:11px;
}

.apps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
}

.app-card{
  padding:21px;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--panel);
}

.app-card.featured{
  border-color:#35687a;
  box-shadow:
    inset 0 0 0 1px rgba(67,186,212,.08);
}

.app-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.app-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid #35536e;
  border-radius:9px;
  color:var(--accent);
  font-weight:800;
}

.connection{
  color:var(--accent);
  font-size:8px;
  letter-spacing:.12em;
}

.connection.client{
  color:#c6a165;
}

.app-card h2{
  margin:18px 0 7px;
}

.app-card p{
  min-height:65px;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
}

.app-status{
  display:flex;
  align-items:center;
  gap:7px;
  margin:14px 0;
  color:#b8c5d1;
  font-size:11px;
}

.dot{
  width:7px;
  height:7px;
  border-radius:100%;
}

.dot.good{
  background:var(--green);
}

.dot.pending{
  background:var(--amber);
}

.small-note{
  margin-top:8px;
  text-align:center;
  color:#64778b;
  font-size:9px;
}

.overview{
  margin-top:28px;
  padding:22px;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--panel);
}

.overview h2{
  margin:5px 0 18px;
}

.overview-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}

.overview-grid div{
  padding:13px;
  background:var(--panel2);
  border:1px solid var(--border);
  border-radius:7px;
}

.overview-grid span{
  display:block;
  color:var(--muted);
  font-size:10px;
}

.overview-grid strong{
  display:block;
  margin-top:4px;
  font-size:13px;
}

@media(max-width:850px){

  .apps{
    grid-template-columns:1fr;
  }

  .overview-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .launcher-head{
    align-items:start;
    gap:14px;
    flex-direction:column;
  }
}


/* F3_LAUNCHER_MODAL_V1 */
.launcher {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(24px, 7vh, 72px) 20px 40px;
  overflow-y: auto;
  background: rgba(3, 8, 20, .78);
  backdrop-filter: blur(10px);
}

.launcher-dialog {
  width: min(1060px, 100%);
  max-height: calc(100vh - 100px);
  overflow: auto;
  box-sizing: border-box;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(10, 17, 32, .98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(59, 130, 246, .08);
}

.launcher-install {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(96, 165, 250, .25);
  border-radius: 16px;
  background: rgba(30, 64, 175, .16);
}

.launcher-install-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.launcher-install-copy strong,
.launcher-install-copy span {
  display: block;
}

.launcher-install-copy strong {
  color: #f8fafc;
  font-size: 14px;
}

.launcher-install-copy span {
  margin-top: 4px;
  color: #b7c5dc;
  font-size: 12px;
}

.launcher-install-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.install-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .launcher {
    padding: 16px 10px 24px;
  }

  .launcher-dialog {
    max-height: calc(100vh - 40px);
    padding: 22px 16px;
    border-radius: 18px;
  }

  .launcher-install {
    align-items: stretch;
    flex-direction: column;
  }

  .install-button {
    width: 100%;
  }
}
