:root{
  --bg:#0b0c0f;
  --card:#121521;
  --card2:#0f1320;
  --text:#e9ecf1;
  --muted:#9aa3b2;
  --line:rgba(255,255,255,.08);
  --accent:#6ee7ff;
  --good:#46e6a2;
  --warn:#ffcc66;
  --bad:#ff6b6b;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1000px 700px at 20% 0%, rgba(110,231,255,.12), transparent 60%),
              radial-gradient(900px 600px at 90% 10%, rgba(70,230,162,.10), transparent 55%),
              var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

.app{max-width:1200px;margin:0 auto;padding:18px 16px 22px}
.top{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 14px;border:1px solid var(--line);
  background:rgba(18,21,33,.70);
  backdrop-filter: blur(10px);
  border-radius:16px;
  box-shadow: var(--shadow);
}
.brand{display:flex;gap:12px;align-items:center}
.logoDot{
  width:12px;height:12px;border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--good));
  box-shadow: 0 0 0 6px rgba(110,231,255,.10);
}
.brandText .title{font-weight:700;letter-spacing:.2px}
.brandText .sub{color:var(--muted);font-size:12px;margin-top:2px}

.topActions{display:flex;gap:10px}

.main{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:14px;
  margin-top:14px;
}

.sidebar{
  border:1px solid var(--line);
  background:rgba(18,21,33,.55);
  backdrop-filter: blur(10px);
  border-radius:16px;
  padding:12px;
  box-shadow: var(--shadow);
}

.sec{
  width:100%;
  text-align:left;
  border:1px solid transparent;
  background:transparent;
  color:var(--text);
  padding:10px 10px;
  border-radius:12px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.sec:hover{background:rgba(255,255,255,.04)}
.sec.active{
  background:rgba(110,231,255,.08);
  border-color:rgba(110,231,255,.18);
}
.secTitle{font-weight:650}
.secHint{color:var(--muted);font-size:12px}

.divider{height:1px;background:var(--line);margin:12px 6px}

.privacy{padding:10px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid var(--line)}
.privacyTitle{font-weight:650;font-size:13px}
.privacyText{color:var(--muted);font-size:12px;margin-top:6px;line-height:1.35}

.panel{
  border:1px solid var(--line);
  background:rgba(18,21,33,.55);
  backdrop-filter: blur(10px);
  border-radius:16px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  min-height: 70vh;
}

.panelTop{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 14px 10px;
  border-bottom:1px solid var(--line);
  gap:12px;
}
.panelTitle{font-size:18px;font-weight:750}
.panelStatus{display:flex;align-items:center;gap:10px;margin-top:6px}
.pill{
  display:inline-flex;align-items:center;justify-content:center;
  height:22px;padding:0 10px;border-radius:999px;
  font-size:12px;border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
.muted{color:var(--muted)}
.small{font-size:12px}

.panelRight{display:flex;gap:10px;align-items:center}

.btn{
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  display:inline-flex;
  gap:10px;
  align-items:center;
  font-weight:650;
}
.btn:hover{border-color:rgba(255,255,255,.22)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn.ghost{
  background:transparent;
  border-color:rgba(255,255,255,.12);
}
.dot{
  width:10px;height:10px;border-radius:50%;
  background: rgba(255,255,255,.28);
  box-shadow:none;
  transition:.2s;
}
.dot.rec{
  background: var(--bad);
  box-shadow: 0 0 0 6px rgba(255,107,107,.12);
}

.editorWrap{padding:12px;flex:1}
.editor{
  width:100%;
  height:100%;
  min-height: 48vh;
  resize: none;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(11,12,15,.55);
  color:var(--text);
  border-radius:14px;
  padding:12px 12px;
  outline:none;
  font-size:14px;
  line-height:1.45;
}
.editor:focus{border-color:rgba(110,231,255,.30)}

.panelBottom{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 14px 14px;
  border-top:1px solid var(--line);
}

.right{text-align:right}

@media (max-width: 980px){
  .main{grid-template-columns: 1fr}
  .panel{min-height: 62vh}
}
.overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:center;
  z-index:9999;
}
.overlayCard{
  width:min(420px, 92vw);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(18,21,33,.85);
  border-radius:16px;
  padding:16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  text-align:center;
}
.spinner{
  width:34px;height:34px;border-radius:50%;
  border:3px solid rgba(255,255,255,.18);
  border-top-color: rgba(110,231,255,.95);
  margin:2px auto 10px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.overlayTitle{font-weight:750}
.overlaySub{margin-top:6px;color:rgba(255,255,255,.72);font-size:12px;line-height:1.35}

.overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:center;
  z-index:9999;
}
.overlayCard{
  width:min(420px, 92vw);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(18,21,33,.85);
  border-radius:16px;
  padding:16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  text-align:center;
}
.spinner{
  width:34px;height:34px;border-radius:50%;
  border:3px solid rgba(255,255,255,.18);
  border-top-color: rgba(110,231,255,.95);
  margin:2px auto 10px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.overlayTitle{font-weight:750}
.overlaySub{margin-top:6px;color:rgba(255,255,255,.72);font-size:12px;line-height:1.35}
