:root{
  --bg:#eef2f6;
  --panel:#ffffff;
  --text:#1f2a37;
  --muted:#6b7280;
  --line:#e5e7eb;
  --primary:#0b4e86;
  --primary-2:#0a3f6c;
  --shadow: 0 12px 30px rgba(15, 23, 42, .08);
  --radius:14px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.page{
  max-width:1200px;
  margin:24px auto;
  padding:0 14px;
}

.topbar{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  box-shadow:var(--shadow);
}

.brand{display:flex; align-items:center; gap:12px;}
.brand__icon{
  width:44px; height:44px;
  border-radius:12px;
  background:linear-gradient(180deg, #e8f2ff, #ffffff);
  border:1px solid var(--line);
  display:grid; place-items:center;
  font-size:22px;
}
.brand__title{font-weight:800; letter-spacing:.5px;}
.brand__subtitle{font-size:12px; color:var(--muted); margin-top:2px;}

.topnav{display:flex; align-items:center; gap:18px; flex:1; justify-content:center;}
.topnav__item{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
  color:var(--text);
  padding:10px 14px;
  border-radius:12px;
  border:1px solid transparent;
}
.topnav__item:hover{background:#f7fafc; border-color:var(--line);}
.topnav__item.is-active{background:#f1f7ff; border-color:#d7e7ff; color:var(--primary);}
.topnav__icon{font-size:18px;}

.profile{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fbfdff;
}
.profile__avatar{
  width:34px; height:34px; border-radius:10px;
  display:grid; place-items:center;
  background:#eef6ff; border:1px solid #d7e7ff;
}
.profile__name{font-weight:600; font-size:14px;}
.profile__chev{color:var(--muted);}

.layout{
  margin-top:16px;
  display:grid;
  grid-template-columns:260px 1fr;
  gap:16px;
}

.sidebar{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  min-height:640px;
}

.sideitem{
  display:flex; align-items:center; gap:12px;
  padding:12px 12px;
  border-radius:12px;
  text-decoration:none;
  color:var(--text);
  border:1px solid transparent;
  margin-bottom:10px;
}
.sideitem:hover{background:#f7fafc; border-color:var(--line);}
.sideitem.is-selected{
  background:linear-gradient(180deg, #0c5aa0, #09457a);
  color:#fff;
  border-color:transparent;
}
.sideitem__icon{font-size:18px;}

.sidebar__spacer{flex:1}

.help{
  display:flex; align-items:center; gap:10px;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--line);
  text-decoration:none;
  color:var(--primary);
  font-weight:600;
  background:#f7fbff;
}

.main{display:flex; flex-direction:column; gap:16px;}

.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
}

.chat{overflow:hidden;}
.chat__inner{
  padding:18px;
  height:440px;
  overflow:auto;
  background:linear-gradient(180deg, #ffffff, #fbfcff);
}

.msg{display:flex; gap:10px; align-items:flex-end; margin:14px 0;}
.msg--user{justify-content:flex-end;}
.msg--bot{justify-content:flex-start;}

.avatar{
  width:40px; height:40px; border-radius:14px;
  border:1px solid var(--line);
  display:grid; place-items:center;
  background:#fff;
}
.avatar--bot{background:#eef6ff; border-color:#d7e7ff;}
.avatar--user{background:#f3f4f6;}

.bubble{
  max-width:70%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#f8fafc;
  line-height:1.35;
  font-size:14px;
}
.bubble--user{
  background:linear-gradient(180deg, #0c5aa0, #09457a);
  color:#fff;
  border-color:transparent;
  border-bottom-right-radius:6px;
}
.bubble--bot{
  background:#f6f8fb;
  border-color:#e7edf5;
  border-bottom-left-radius:6px;
}
.bubble__hint{
  margin-top:10px;
  color:var(--muted);
  font-style:italic;
}

.list-title{font-weight:600; margin-bottom:8px;}
.checklist{margin:0; padding-left:18px;}
.checklist li{margin:6px 0;}

.chat__composer{
  padding:14px;
  border-top:1px solid var(--line);
  background:#fbfdff;
}

.chips{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px;}
.chip{
  border:1px solid var(--line);
  background:#f7fafc;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
  color:var(--primary);
}
.chip:hover{background:#eef6ff; border-color:#d7e7ff;}

.composer{display:flex; gap:10px;}
.composer__input{
  flex:1;
  border:1px solid var(--line);
  background:#fff;
  padding:12px 12px;
  border-radius:12px;
  outline:none;
}
.composer__input:focus{border-color:#b8d6ff; box-shadow:0 0 0 4px rgba(56, 139, 253, .12);}
.composer__btn{
  border:1px solid transparent;
  background:linear-gradient(180deg, #0c5aa0, #09457a);
  color:#fff;
  padding:12px 18px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
}
.composer__btn:hover{filter:brightness(1.05);}

.cards-row{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}

.feature{
  padding:16px;
  display:flex;
  gap:14px;
  align-items:center;
}
.feature__icon{
  width:72px; height:56px;
  border-radius:14px;
  display:grid; place-items:center;
  background:#eef6ff;
  border:1px solid #d7e7ff;
  font-size:26px;
}
.feature__title{font-weight:800;}
.feature__desc{color:var(--muted); margin-top:4px; font-size:13px;}

@media (max-width: 980px){
  .layout{grid-template-columns:1fr;}
  .sidebar{min-height:auto;}
  .topnav{display:none;}
  .cards-row{grid-template-columns:1fr;}
  .bubble{max-width:86%;}
}