:root{
  --bg: #070a12;
  --panel: rgba(10,20,40,0.60);
  --panel2: rgba(7,16,33,0.82);
  --text: #eaf7ff;
  --sub: rgba(191,233,255,0.90);
  --muted: rgba(191,233,255,0.72);
  --accent: #8ad6ff;
  --border: rgba(138,214,255,0.18);
  --border2: rgba(138,214,255,0.28);
  --shadow: 0 18px 60px rgba(0,0,0,0.55);
}

html, body{
  height: 100%;
  margin: 0;
  background: radial-gradient(1200px 700px at 50% 15%, rgba(138,214,255,0.16), rgba(138,214,255,0.00) 55%),
              linear-gradient(135deg, #0b1020, #0a1a2e 55%, #0b1020);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

a{ color: var(--text); }
a:hover{ color: var(--text); }

.wrap{
  width: min(980px, 92vw);
  margin: 18px auto 120px auto;
}

.header{
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
  background: rgba(7,10,18,0.72);
  border-bottom: 1px solid rgba(138,214,255,0.10);
}

.headerInner{
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 14px 0 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.logo{
  width: 34px;
  height: 34px;
  display:block;
}

.brandTitle{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
}
.brandSub{
  font-size: 12px;
  color: var(--muted);
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10,20,40,0.35);
}

.select{
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.h1{
  margin: 18px 0 10px 0;
  font-size: 22px;
  font-weight: 800;
}

.note{
  color: var(--muted);
  margin: 0 0 14px 0;
  line-height: 1.4;
}

.feed{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card{
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

.cardTop{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.thumb{
  width: 92px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid rgba(138,214,255,0.12);
  background: rgba(7,16,33,0.55);
  overflow: hidden;
  flex: 0 0 auto;
}
.thumb img{
  width: 100%;
  height: 100%;
  display:block;
  object-fit: cover;
}

.card h3{
  margin: 0 0 6px 0;
  font-size: 18px;
}
.card p{
  margin: 0;
  color: var(--sub);
  line-height: 1.4;
}
.meta{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.btnRow{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: rgba(7,16,33,0.45);
  color: var(--text);
  text-decoration:none;
  cursor:pointer;
  user-select:none;
}
.btn:hover{
  border-color: rgba(138,214,255,0.55);
}
.btn.primary{
  background: rgba(138,214,255,0.14);
}

.viewer{
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow:hidden;
  background: rgba(7,16,33,0.55);
}

.viewer svg{ width:100%; height:auto; display:block; }

/* Prompt widget (movable) */
.promptWidget{
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: min(420px, calc(100vw - 28px));
  border-radius: 18px;
  border: 1px solid rgba(138,214,255,0.26);
  background: rgba(7,16,33,0.88);
  box-shadow: var(--shadow);
  z-index: 50;
  touch-action: none;
}

.promptHead{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(138,214,255,0.14);
  cursor: grab;
}

.promptTitle{
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .6px;
  color: rgba(234,247,255,0.92);
}

.promptBody{
  display:grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  padding: 12px;
}

.sideButtons{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.iconBtn{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(138,214,255,0.22);
  background: rgba(10,20,40,0.35);
  color: var(--text);
  cursor:pointer;
}
.iconBtn:hover{ border-color: rgba(138,214,255,0.55); }

textarea{
  width: 100%;
  min-height: 128px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(138,214,255,0.18);
  background: rgba(10,20,40,0.25);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  line-height: 1.35;
}

.promptFrontRow{
  display:flex;
  gap: 10px;
  padding: 0 12px 12px 12px;
  flex-wrap: wrap;
}

.small{
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 520px){
  .promptWidget{ right: 10px; left: 10px; width: auto; }
}
