* {
  box-sizing: border-box;
}
:root {
  --wine: #4a1428;
  --wine2: #2c0d1b;
  --gold: #c69b52;
  --gold2: #ead5a6;
  --ink: #272432;
  --muted: #85818c;
  --paper: #f7f6f4;
  --line: #eee9e7;
  --white: #fff;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manjari", "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
.app-shell {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  width: 254px;
  flex: 0 0 254px;
  background: linear-gradient(180deg, #431225, #270c1a);
  color: #f8edf0;
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  padding: 4px 8px 18px;
}
.brand b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.brand small {
  display: block;
  color: #c5a4aa;
  font: 9px Inter, sans-serif;
  letter-spacing: 2px;
  margin-top: 4px;
}
.brand-mark {
  width: 43px;
  height: 43px;
  border: 1px solid #b68b53;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #e3c17d;
  font-size: 24px;
  background: #ffffff0a;
}
.side-status {
  font-size: 12px;
  color: #cdb9bd;
  padding: 0 12px 24px;
}
.side-status i,
.online-pill i,
.komu-mini small i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54bd81;
  margin-right: 7px;
}
.side-label {
  font: 10px Inter, sans-serif;
  letter-spacing: 1.7px;
  color: #a98790;
  padding: 16px 12px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #e5d4d8;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 15px;
  margin: 2px 0;
  transition: 0.2s;
}
.nav-item span {
  width: 20px;
  text-align: center;
  color: #d6b878;
  font-size: 19px;
}
.nav-item:hover,
.nav-item.active {
  background: #ffffff14;
  color: #fff;
}
.nav-item.active {
  box-shadow: inset 3px 0 #d6ad67;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #ffffff1c;
}
.mini-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 14px;
}
.mini-user b,
.mini-user small {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-user b {
  font-size: 13px;
}
.mini-user small {
  font: 10px Inter, sans-serif;
  color: #c4aeb4;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d4b477;
  color: #351421;
  font-weight: 700;
}
.logout-link {
  display: block;
  padding: 9px 12px;
  color: #e8cfd4;
  font-size: 14px;
}
.main-area {
  margin-left: 254px;
  width: calc(100% - 254px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 68px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 34px;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-title {
  font-size: 17px;
  font-weight: 700;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.online-pill {
  font-size: 12px;
  color: #5c8e70;
}
.avatar.small {
  width: 32px;
  height: 32px;
}
.icon-btn {
  border: 0;
  background: none;
  font-size: 21px;
  color: #655d67;
  cursor: pointer;
}
.menu-toggle {
  display: none;
}
.content {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 34px 42px;
  flex: 1;
}
.footer {
  padding: 15px 34px;
  text-align: center;
  color: #99939b;
  font-size: 11px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 3px 0 24px;
}
.eyebrow {
  font: 10px Inter, sans-serif;
  letter-spacing: 1.8px;
  color: #a17a45;
  font-weight: 700;
}
.welcome-row h1,
.page-intro h1 {
  font-size: 29px;
  line-height: 1.25;
  margin: 5px 0;
}
.muted {
  color: var(--muted);
}
.welcome-row p,
.page-intro p {
  margin: 5px 0;
}
.primary-btn,
.gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--wine);
  color: #fff;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}
.primary-btn:hover {
  background: #67223b;
  color: #fff;
}
.gold-btn {
  background: #e5cf9e;
  color: #422035;
}
.gold-btn:hover {
  background: #f0ddb1;
  color: #422035;
}
.hero-panel {
  background: linear-gradient(105deg, #341020, #571a30 65%, #351020);
  color: #fff;
  border-radius: 15px;
  min-height: 248px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  padding: 30px 42px;
  margin-bottom: 32px;
  box-shadow: 0 12px 30px #38122519;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
}
.hero-kicker {
  font: 9px Inter, sans-serif;
  letter-spacing: 2px;
  color: #d9bd82;
}
.hero-copy h2 {
  font-size: 31px;
  line-height: 1.3;
  margin: 9px 0;
}
.hero-copy p {
  max-width: 470px;
  color: #e1cfd4;
  font-size: 14px;
  margin: 0 0 19px;
}
.hero-symbol {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 210px;
  height: 210px;
  border: 1px solid #d0ae7044;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  border: 1px solid #d0ae7055;
  border-radius: 50%;
  transform: rotate(-30deg);
}
.orbit-one {
  width: 175px;
  height: 78px;
}
.orbit-two {
  width: 190px;
  height: 130px;
  transform: rotate(55deg);
}
.sun-symbol {
  font-size: 80px;
  color: #d7b36f;
  text-shadow: 0 0 35px #d5ad6144;
}
.star {
  position: absolute;
  color: #f1d9a1;
}
.s1 {
  top: 12px;
  left: 42px;
}
.s2 {
  right: 5px;
  top: 78px;
}
.s3 {
  bottom: 22px;
  left: 35px;
}
.hero-caption {
  position: absolute;
  bottom: -33px;
  text-align: center;
  font-weight: 700;
  color: #f0dba9;
}
.hero-caption small {
  display: block;
  color: #d0bfc3;
  font-size: 10px;
  font-weight: 400;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 20px;
  margin: 0;
}
.section-head p {
  font-size: 12px;
  margin: 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 16px;
  position: relative;
  min-height: 130px;
  transition: 0.2s;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px #2713220b;
  border-color: #dfcfb3;
}
.service-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: #f6f0e5;
  color: #946b32;
  border-radius: 10px;
  font-size: 21px;
  margin-bottom: 10px;
}
.service-card b,
.service-card small {
  display: block;
}
.service-card b {
  font-size: 15px;
}
.service-card small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.card-arrow {
  position: absolute;
  right: 16px;
  top: 16px;
  color: #b4a7a5;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 17px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-head h3 {
  font-size: 16px;
  margin: 0;
}
.panel-head a,
.text-link {
  font-size: 12px;
  color: #986d38;
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.profile-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5eddf;
  color: #9c743d;
  font-size: 21px;
}
.profile-summary b,
.profile-summary small {
  display: block;
}
.profile-summary small {
  font-size: 12px;
  color: var(--muted);
}
.status-tag,
.count-badge {
  margin-left: auto;
  background: #edf6ef;
  color: #578564;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 11px;
}
.count-badge {
  background: #f4eee4;
  color: #916c3b;
}
.recent-link {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1eeee;
  font-size: 13px;
}
.recent-link:last-child {
  border: 0;
}
.recent-link span {
  color: #b48a4d;
}
.recent-link small {
  margin-left: auto;
  color: #9b8d8b;
}
.page-intro {
  margin: 8px 0 24px;
}
.form-panel {
  max-width: 780px;
  padding: 25px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.span2 {
  grid-column: span 2;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #e4dfe0;
  background: #fff;
  border-radius: 8px;
  padding: 12px 13px;
  color: #342d37;
  outline: none;
  font-family: inherit;
  font-size: 14px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #b9945c;
  box-shadow: 0 0 0 3px #c39b5220;
}
.form-actions {
  margin-top: 20px;
}
.notice-box {
  max-width: 780px;
  background: #f4efe5;
  border: 1px solid #e8dcc3;
  color: #6e5a3e;
  padding: 15px 18px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 13px;
}
.alert,
.success {
  padding: 12px 15px;
  border-radius: 8px;
  margin: 12px 0;
  background: #fff0ed;
  color: #a34b3b;
  font-size: 13px;
}
.success {
  background: #edf7ef;
  color: #44764e;
}
.feature-placeholder {
  max-width: 760px;
  text-align: center;
  padding: 42px 30px;
}
.placeholder-symbol {
  font-size: 48px;
  color: #b88f51;
}
.feature-placeholder h2 {
  font-size: 22px;
  margin: 10px 0;
}
.feature-placeholder p {
  max-width: 580px;
  margin: 0 auto 16px;
}
.feature-placeholder ul {
  display: inline-block;
  text-align: left;
  color: #716a74;
  font-size: 13px;
  margin: 0 auto 20px;
}
.settings-panel {
  max-width: 720px;
}
.settings-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.settings-row b,
.settings-row small {
  display: block;
}
.settings-row small {
  color: var(--muted);
  font-size: 13px;
}
.logout-button {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 15px;
  background: #fff0ef;
  color: #a14b43;
  border-radius: 8px;
  font-size: 13px;
}
.chat-workspace {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr) 190px;
  gap: 15px;
  height: calc(100vh - 150px);
  min-height: 550px;
}
.chat-history,
.chat-panel,
.chat-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 0;
}
.chat-history {
  padding: 15px 12px;
  overflow: auto;
}
.new-chat-btn {
  display: block;
  text-align: center;
  background: #4b152a;
  color: white;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 13px;
}
.history-label {
  font: 9px Inter, sans-serif;
  letter-spacing: 1.4px;
  color: #a29aa0;
  margin: 22px 8px 9px;
}
.history-item {
  display: block;
  padding: 9px 10px;
  border-radius: 7px;
  color: #68616c;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-item.selected,
.history-item:hover {
  background: #f7f1f2;
  color: #4b152a;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-top {
  height: 65px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex-shrink: 0;
}
.komu-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}
.komu-avatar {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #4b152a;
  color: #e9cb8d;
  font-size: 21px;
}
.komu-mini b,
.komu-mini small {
  display: block;
}
.komu-mini b {
  font-size: 14px;
}
.komu-mini small {
  font-size: 10px;
  color: #7c9b7f;
}
.chat-tools {
  font-size: 22px;
  color: #8b8187;
}
.chat-messages {
  flex: 1;
  overflow: auto;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.welcome-chat {
  text-align: center;
  margin: auto;
  max-width: 460px;
}
.welcome-om {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #4b152a;
  color: #e8c98a;
  font-size: 34px;
  margin: 0 auto 12px;
  box-shadow: 0 0 0 8px #f7f0e8;
}
.welcome-chat h2 {
  font-size: 22px;
  margin: 10px 0 4px;
}
.welcome-chat p {
  font-size: 13px;
  color: var(--muted);
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}
.suggestions button {
  border: 1px solid #e9dfd6;
  background: #fffaf3;
  color: #775b38;
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 11px;
  cursor: pointer;
}
.message-row {
  display: flex;
  gap: 9px;
  max-width: 88%;
  align-items: flex-start;
}
.message-row.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.message-avatar {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3eadb;
  color: #76512a;
  font-size: 11px;
}
.mine .message-avatar {
  background: #4b152a;
  color: white;
}
.message-bubble {
  background: #f5f3f1;
  padding: 10px 13px;
  border-radius: 4px 12px 12px 12px;
  font-size: 14px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.mine .message-bubble {
  background: #234c91;
  color: white;
  border-radius: 12px 4px 12px 12px;
}
.message-bubble small {
  display: block;
  font-size: 10px;
  opacity: 0.65;
  margin-bottom: 4px;
}
.chat-compose {
  margin: 0 15px 8px;
  border: 1px solid #e6e0df;
  border-radius: 25px;
  display: flex;
  align-items: center;
  padding: 5px 6px 5px 16px;
  gap: 8px;
}
.chat-compose textarea {
  border: 0 !important;
  box-shadow: none !important;
  resize: none;
  padding: 7px 0;
  max-height: 110px;
  min-height: 25px;
}
.send-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #4b152a;
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  flex: 0 0 36px;
}
.send-btn:disabled {
  opacity: 0.5;
}
.chat-footnote {
  text-align: center;
  font-size: 9px;
  color: #9b969b;
  padding: 0 10px 10px;
}
.chat-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.info-card {
  background: #f8f5f0;
  border-radius: 9px;
  padding: 13px;
}
.info-card b,
.info-card small {
  display: block;
}
.info-card b {
  font-size: 13px;
}
.info-card small {
  font-size: 11px;
  color: #837b7c;
  margin-top: 6px;
}
.info-card a {
  display: block;
  color: #986c34;
  font-size: 11px;
  margin-top: 10px;
}
.info-gold {
  background: #f4ebd8;
  color: #614b2c;
}
.info-card ul {
  padding-left: 16px;
  color: #77707a;
  font-size: 11px;
  margin-bottom: 0;
}
.lamp-art {
  font-size: 40px;
  text-align: center;
  margin-top: auto;
  filter: drop-shadow(0 7px 7px #a47b3b30);
}
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(ellipse at top, #57243b, #210d19 70%);
}
.auth-card {
  width: min(100%, 430px);
  background: #fff;
  border-radius: 17px;
  padding: 34px 38px;
  box-shadow: 0 20px 65px #09030a66;
}
.auth-brand {
  color: #3a1524;
  padding: 0;
}
.auth-brand small {
  color: #a58d8d;
}
.auth-brand .brand-mark {
  background: #4b152a;
  color: #e9cc91;
}
.auth-ornament {
  text-align: center;
  color: #b28b4f;
  font-size: 24px;
  margin: 28px 0 5px;
}
.auth-card h1 {
  text-align: center;
  font-size: 24px;
  margin: 0;
}
.auth-card > .muted {
  text-align: center;
  font-size: 13px;
}
.auth-card form {
  margin-top: 20px;
}
.auth-card input {
  margin-bottom: 8px;
}
.wide {
  width: 100%;
  margin-top: 14px;
}
.auth-bottom {
  text-align: center;
  font-size: 13px;
  color: #7c7580;
  margin: 22px 0 0;
}
.auth-bottom a {
  color: #8b6030;
  font-weight: 700;
}
@media (max-width: 1150px) {
  .chat-workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .chat-info {
    display: none;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 30px #0003;
  }
  .main-area {
    margin-left: 0;
    width: 100%;
  }
  .menu-toggle {
    display: block;
  }
  .topbar {
    padding: 0 17px;
  }
  .content {
    padding: 22px 16px;
  }
  .welcome-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-panel {
    padding: 26px 24px;
    min-height: 235px;
  }
  .hero-symbol {
    right: -60px;
    opacity: 0.28;
  }
  .hero-copy {
    max-width: 90%;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .chat-workspace {
    grid-template-columns: 1fr;
    height: calc(100vh - 125px);
    min-height: 520px;
  }
  .chat-history {
    display: none;
  }
  .chat-panel {
    min-height: 0;
  }
  .chat-messages {
    padding: 16px 11px;
  }
  .message-row {
    max-width: 96%;
  }
  .footer {
    padding: 12px;
  }
  .topbar-title {
    font-size: 15px;
  }
}
@media (max-width: 520px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .service-card {
    padding: 13px;
    min-height: 124px;
  }
  .service-card b {
    font-size: 13px;
  }
  .service-card small {
    font-size: 11px;
  }
  .hero-copy h2 {
    font-size: 25px;
  }
  .hero-copy p {
    font-size: 12px;
  }
  .hero-panel {
    min-height: 250px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: span 1;
  }
  .auth-card {
    padding: 28px 23px;
  }
  .welcome-row h1,
  .page-intro h1 {
    font-size: 25px;
  }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 13px;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 11px 9px;
  border-bottom: 1px solid #eee9e7;
  white-space: nowrap;
}
.admin-table th {
  color: #8b7c7d;
  font-weight: 700;
}
.policy-copy {
  max-width: 800px;
}
.policy-copy h3 {
  font-size: 16px;
  margin: 8px 0;
}
.policy-copy p {
  font-size: 14px;
  color: #716a74;
  margin: 5px 0 20px;
}
.footer a {
  color: #89613a;
  margin-left: 6px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.chat-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
}

.welcome-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

/* Komu Panicker - AI Chat Typography */

.message-content,
.chat-message .message-content,
.assistant-message .message-content {
  font-family: "Noto Sans Malayalam", "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: normal;
  word-spacing: normal;
  text-align: left;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

/* Paragraph spacing */
.message-content p {
  margin: 0 0 16px;
}

.message-content p:last-child {
  margin-bottom: 0;
}

/* Headings */
.message-content h1,
.message-content h2,
.message-content h3 {
  line-height: 1.6;
  margin: 18px 0 10px;
}

/* Lists */
.message-content ul,
.message-content ol {
  padding-left: 26px;
  margin: 10px 0 16px;
}

.message-content li {
  margin-bottom: 8px;
}

/* Bold text */
.message-content strong {
  font-weight: 700;
}
