
:root {
  color-scheme: dark;
  --bg: #08090d;
  --panel: #101117;
  --panel-2: #151620;
  --line: rgba(255,255,255,.085);
  --text: #f4f4fa;
  --muted: #898a9e;
  --purple: #a78bfa;
  --cyan: #67e8f9;
  --radius: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, sans-serif; font-size: 13px;
  min-height: 100vh; overflow-x: hidden;
}
button, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--purple); outline-offset: 3px;
}
.ambient {
  position: fixed; width: 360px; height: 360px; border-radius: 50%;
  filter: blur(110px); opacity: .12; pointer-events: none; z-index: 0;
}
.ambient-one { background: #7546ff; top: -170px; left: 32%; }
.ambient-two { background: #08b9d6; bottom: -210px; right: 5%; }
.app-shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; flex-shrink: 0; padding: 25px 16px 16px;
  border-right: 1px solid var(--line); background: rgba(10,11,16,.88);
  display: flex; flex-direction: column; min-height: 100vh;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); font-size: 17px; font-weight: 800; letter-spacing: -.7px; padding: 0 8px 30px; }
.brand-light { color: #b6a1ff; }
.brand small { display: block; margin-top: 3px; font-size: 9px; letter-spacing: 3px; color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: linear-gradient(140deg,#9d7cff,#5e43c8); box-shadow: 0 0 28px #805cff32; font-size: 19px; }
.new-project, .send-btn {
  border: 0; background: linear-gradient(110deg,#8864f5,#6551d9);
  box-shadow: 0 5px 24px #7756ed25; border-radius: 10px; font-weight: 600;
}
.new-project { display: flex; align-items: center; gap: 10px; padding: 13px; margin-bottom: 29px; text-align: left; }
.new-project span { margin-left: auto; font-size: 10px; color: #e3dbff; }
.nav-label { color: #65667a; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; padding: 0 10px 12px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 1px solid transparent; background: transparent; padding: 12px 11px; border-radius: 9px; text-align: left; color: #a0a0b2; margin-bottom: 4px; transition: .2s; }
.nav-item i { width: 17px; text-align: center; }
.nav-item:hover, .nav-item.active { color: #fff; background: #9b83ff12; border-color: #a78bfa20; }
.nav-item.active i { color: var(--purple); }
.projects-label { margin-top: 27px; }
.project-list { display: grid; gap: 4px; }
.project-entry { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 10px; color: var(--muted); border-radius: 8px; cursor: pointer; }
.project-entry:hover { background: var(--panel-2); color: white; }
.sidebar-bottom { margin-top: auto; }
.usage-card { display: flex; align-items: center; gap: 10px; background: #14151d; border: 1px solid var(--line); padding: 12px 9px; border-radius: 12px; margin: 22px 0 12px; }
.usage-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #a78bfa18; color: var(--purple); }
.usage-card strong, .usage-card small { display: block; }
.usage-card strong { font-size: 11px; }
.usage-card small { font-size: 10px; color: var(--muted); margin-top: 4px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #48dba0; box-shadow: 0 0 9px #48dba055; }
.usage-card .status-dot { margin-left: auto; }
.main { flex: 1; min-width: 0; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); background: #0b0c11a8; }
.top-left, .top-actions, .breadcrumbs { display: flex; align-items: center; gap: 14px; }
.breadcrumbs { color: var(--muted); gap: 12px; }
.breadcrumbs i { font-size: 9px; }
.breadcrumbs strong { color: #e9e8f4; font-weight: 500; }
.top-actions { gap: 18px; }
.connection { display: flex; align-items: center; gap: 8px; color: #a0a1b2; font-size: 11px; }
.icon-btn, .avatar { display: grid; place-items: center; border: 1px solid var(--line); background: #151620; width: 34px; height: 34px; border-radius: 10px; }
.avatar { border-radius: 50%; background: #8b5cf622; color: #c4b5fd; border-color: #8b5cf644; font-weight: 700; }
.mobile-menu { display: none; }
.workspace { max-width: 1000px; margin: 0 auto; padding: 43px 34px 20px; }
.welcome { padding: 0 0 26px; }
.eyebrow { color: #b2a1ff; font-size: 10px; letter-spacing: 2px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 12px #a78bfa; }
h1 { font-size: clamp(36px,5vw,56px); line-height: 1.1; letter-spacing: -2.6px; margin: 23px 0 15px; font-weight: 800; }
h1 span { background: linear-gradient(100deg,#b6a0ff,#7be7f5); background-clip: text; -webkit-background-clip: text; color: transparent; }
.welcome > p { color: #9293a6; font-size: 13px; line-height: 1.8; }
.suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 27px; }
.suggestion { min-width: 0; display: flex; align-items: center; gap: 13px; text-align: left; padding: 17px 14px; border: 1px solid var(--line); background: #111219c9; border-radius: 12px; transition: .2s; }
.suggestion:hover { transform: translateY(-2px); border-color: #a78bfa65; background: #191724; }
.suggestion > i:first-child { color: var(--purple); font-size: 16px; width: 20px; text-align: center; }
.suggestion span { min-width: 0; }
.suggestion strong, .suggestion small { display: block; }
.suggestion strong { font-size: 12px; font-weight: 600; }
.suggestion small { margin-top: 6px; font-size: 10px; color: var(--muted); }
.suggestion .arrow { margin-left: auto; color: #68697d; font-size: 11px; }
.conversation { display: grid; gap: 17px; margin: 0 0 20px; }
.message { border: 1px solid var(--line); border-radius: 13px; padding: 16px; background: #101117e8; min-width: 0; overflow-wrap: anywhere; }
.message.user { margin-left: 35px; background: #191625; border-color: #9b83ff24; }
.message-heading { display: flex; align-items: center; gap: 9px; font-weight: 600; margin-bottom: 12px; }
.message-heading i { color: var(--purple); }
.message-body { color: #d1d1df; line-height: 1.8; white-space: pre-wrap; font-size: 12px; }
.message-body pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #090a0e; padding: 12px; border-radius: 8px; }
.editor-panel { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #0d0e13; margin-top: 15px; }
.editor-toolbar, .editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; background: #12131a; }
.editor-toolbar { border-bottom: 1px solid var(--line); }
.editor-title, .editor-actions { display: flex; align-items: center; gap: 10px; }
.editor-title { color: #b8b9c9; font-size: 11px; }
.editor-title > i { color: #8eb7ff; }
.small-btn { background: transparent; color: #a6a7b9; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; font-size: 10px; }
.small-btn:hover { color: white; background: #20212b; }
#editor { height: 260px; width: 100%; }
.editor-footer { border-top: 1px solid var(--line); font-size: 10px; color: #797a8c; }
.editor-footer i { color: #52d6a1; }
.composer { margin-top: 18px; background: #111219; border: 1px solid #9c83ff42; box-shadow: 0 0 0 3px #a78bfa08; border-radius: 15px; padding: 15px 16px 12px; }
.composer:focus-within { border-color: #a78bfa8a; }
.composer-top, .composer-bottom, .composer-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.composer-top { font-size: 10px; color: #a4a5b7; letter-spacing: .8px; }
.composer-top i { color: var(--purple); margin-right: 7px; }
.composer-hint { letter-spacing: 0; color: #696a7e; }
textarea { width: 100%; resize: vertical; min-height: 75px; max-height: 220px; margin: 15px 0 9px; padding: 0; color: var(--text); background: transparent; border: 0; outline: none; line-height: 1.7; font-size: 12px; }
textarea::placeholder { color: #656679; }
.composer-bottom { padding-top: 10px; border-top: 1px solid var(--line); }
.composer-tools { justify-content: flex-start; flex-wrap: wrap; }
.composer select { background: #191a24; color: #c6c5d7; border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; }
.secure-label { font-size: 10px; color: #7f8193; }
.secure-label i { color: #56d6a3; margin-right: 4px; }
.send-btn { padding: 11px 15px; display: flex; align-items: center; gap: 12px; }
.send-btn:disabled { opacity: .5; cursor: wait; }
.bottom-note { text-align: center; color: #646579; font-size: 10px; padding: 15px 0 4px; }
.typing { color: #b9a8ff; padding: 10px 0; }
.error { color: #fda4af; }
body.low-glow .ambient { opacity: .04; }
body.low-glow .suggestion:hover { transform: none; }
@media (min-width: 1400px) { .workspace { padding-top: 58px; } }
@media (max-width: 900px) {
  .sidebar { width: 220px; }
  .workspace { padding: 34px 22px 18px; }
  .topbar { padding: 0 22px; }
}
@media (max-width: 650px) {
  .sidebar { position: fixed; z-index: 10; top: 0; bottom: 0; left: 0; width: 270px; transform: translateX(-105%); transition: transform .25s; box-shadow: 20px 0 60px #0008; }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: grid; }
  .topbar { height: 58px; padding: 0 14px; }
  .top-actions { gap: 9px; }
  .connection { font-size: 10px; }
  .workspace { padding: 30px 14px 15px; }
  h1 { letter-spacing: -1.8px; }
  .suggestions { grid-template-columns: 1fr; }
  .suggestion { padding: 14px; }
  .message.user { margin-left: 12px; }
  .composer { padding: 12px; }
  .composer-hint { display: none; }
  .secure-label { display: none; }
  #editor { height: 230px; }
}


/* Shared-password access screen */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(100%, 430px);
  position: relative;
  padding: 36px;
  background: rgba(16,17,25,.95);
  border: 1px solid rgba(167,139,250,.25);
  border-radius: 22px;
  box-shadow: 0 25px 100px #0008, 0 0 55px #8060ed12;
  animation: login-enter .35s ease both;
}
.login-logo {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg,#9d7cff,#5e43c8);
  font-size: 25px;
}
.login-eyebrow {
  margin-top: 25px;
  color: #b6a1ff;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
}
.login-card h1 {
  margin: 14px 0;
  font-size: clamp(32px,5vw,43px);
  line-height: 1.13;
  letter-spacing: -1.7px;
}
.login-card h1 span {
  background: linear-gradient(100deg,#b6a0ff,#7be7f5);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}
.login-description {
  color: #999aac;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 25px;
}
.login-card label {
  display: block;
  margin-bottom: 9px;
  color: #d0d0dd;
  font-size: 11px;
}
.login-card input[type="password"] {
  display: block;
  width: 100%;
  height: 48px;
  padding: 12px;
  border: 1px solid #ffffff1a;
  border-radius: 9px;
  color: white;
  background: #090a10;
}
.login-card input[type="password"]:focus {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}
.login-card button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 16px;
  padding: 13px 15px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(110deg,#8864f5,#6551d9);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.login-error {
  margin: 15px 0;
  padding: 11px 12px;
  color: #fda4af;
  background: #fb718510;
  border: 1px solid #fb718544;
  border-radius: 9px;
  font-size: 12px;
}
.login-card footer {
  margin-top: 25px;
  padding-top: 17px;
  border-top: 1px solid #ffffff10;
  color: #77788b;
  text-align: center;
  font-size: 10px;
}
.logout-top { margin: 0; }
@keyframes login-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .login-card { padding: 27px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-card { animation: none; }
}
