@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");
:root {
  --navy: #071a33;
  --navy2: #0c2748;
  --ink: #132238;
  --muted: #748196;
  --bg: #f2f5f9;
  --line: #e3e8ef;
  --gold: #c6a25a;
  --blue: #2f70d0;
  --red: #db4b51;
  --green: #29a37a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
}
button {
  font: inherit;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 218px 1fr;
}
.sidebar {
  background: linear-gradient(180deg, var(--navy), #061426);
  color: #fff;
  padding: 27px 17px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 29px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  font: 700 24px Georgia;
  color: var(--gold);
}
.brand strong {
  font: 600 21px Georgia;
  letter-spacing: 0.3px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.4px;
  color: #aebbd0;
  margin-top: 3px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav a {
  color: #aebbd0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 13px;
}
.sidebar nav a span {
  font-size: 18px;
  width: 20px;
  text-align: center;
}
.sidebar nav a.active,
.sidebar nav a:hover {
  background: #163452;
  color: white;
}
.sidebar nav a.active {
  box-shadow: inset 3px 0 var(--gold);
}
.owner {
  margin-top: auto;
  border-top: 1px solid #203751;
  padding: 18px 8px 0;
  display: grid;
  gap: 3px;
}
.owner small {
  font-size: 7px;
  letter-spacing: 1.5px;
  color: #778ba5;
}
.owner b {
  font: 600 10px Georgia;
  color: #d7c18f;
  letter-spacing: 0.5px;
}
.owner span {
  font-size: 7px;
  letter-spacing: 2px;
  color: #9eacbd;
}
main {
  padding: 0 28px 26px;
  min-width: 0;
}
main > header.app-header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
main > header.app-header p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
}
h1 {
  font: 600 24px Georgia;
  margin: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search {
  width: 330px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #8793a4;
  padding: 10px 13px;
  font-size: 11px;
}
.icon {
  width: 38px;
  height: 38px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy2);
  color: white;
  font-size: 11px;
}
.topline {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 7px;
}
.primary {
  border: 0;
  border-radius: 8px;
  background: var(--navy2);
  color: #fff;
  padding: 10px 16px;
  font-size: 11px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px;
  display: flex;
  gap: 13px;
  box-shadow: 0 3px 13px #18375808;
}
.kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #eef3fa;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 700;
}
.kpi small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.kpi strong {
  display: block;
  font: 600 25px Georgia;
  margin: 3px 0;
}
.kpi p {
  font-size: 9px;
  color: #8290a2;
  margin: 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.6fr) minmax(285px, 0.8fr);
  gap: 14px;
  margin-top: 14px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px;
  box-shadow: 0 3px 13px #18375808;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 14px;
}
.panel h2 {
  font: 600 16px Georgia;
  margin: 0;
}
.panel-head p {
  margin: 4px 0 0;
  font-size: 9px;
  color: var(--muted);
}
.link,
.dots {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 9px;
}
.priority {
  display: grid;
  grid-template-columns: 42px 61px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #eef1f5;
}
.priority time {
  font-size: 11px;
  font-weight: 600;
}
.badge {
  font-size: 8px;
  padding: 5px 6px;
  border-radius: 5px;
  text-align: center;
}
.badge.danger {
  background: #fdebed;
  color: var(--red);
}
.badge.blue {
  background: #e9f1fd;
  color: var(--blue);
}
.badge.gold {
  background: #f7f0df;
  color: #9a742c;
}
.priority-info {
  display: grid;
  gap: 4px;
}
.priority-info b {
  font-size: 11px;
}
.priority-info small {
  font-size: 8px;
  color: var(--muted);
}
.priority > button,
.ai-strip button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 7px 9px;
  font-size: 8px;
  color: #43536a;
}
.ai-strip {
  margin-top: 9px;
  border: 1px solid #dce5f3;
  background: linear-gradient(90deg, #f3f7fd, #fff);
  border-radius: 9px;
  padding: 11px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 8px;
  align-items: center;
}
.spark {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--navy2);
  color: #d5b56e;
}
.ai-strip b {
  font-size: 9px;
}
.ai-strip p {
  font-size: 8px;
  color: var(--muted);
  margin: 2px 0;
}
.health {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.health .panel-head {
  grid-column: 1/-1;
}
.donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    var(--green) 0 67%,
    #d59b3a 67% 88%,
    var(--red) 88% 94%,
    #aab4c1 94%
  );
  display: grid;
  place-items: center;
}
.donut:before {
  content: "";
  position: absolute;
  width: 78px;
  height: 78px;
  background: #fff;
  border-radius: 50%;
}
.donut div {
  z-index: 1;
  text-align: center;
}
.donut strong {
  display: block;
  font: 600 22px Georgia;
}
.donut small {
  font-size: 7px;
  color: var(--muted);
}
.health ul {
  list-style: none;
  padding: 2px 0;
  margin: 0;
  display: grid;
  gap: 7px;
}
.health li {
  font-size: 8px;
  color: var(--muted);
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
}
.health i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aaa;
}
.health i.green {
  background: var(--green);
}
.health i.amber {
  background: #d59b3a;
}
.health i.red {
  background: var(--red);
}
.agenda,
.activity {
  min-height: 170px;
}
.event {
  display: grid;
  grid-template-columns: 40px 8px 1fr;
  align-items: start;
  gap: 8px;
  border-top: 1px solid #eef1f5;
  padding: 11px 0;
}
.event time {
  font-size: 9px;
  font-weight: 600;
}
.event i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 3px;
}
.event i.gold {
  background: var(--gold);
}
.event div {
  display: grid;
  gap: 3px;
}
.event b {
  font-size: 10px;
}
.event small {
  font-size: 8px;
  color: var(--muted);
}
.activity > p {
  font-size: 9px;
  padding: 8px 0;
  margin: 0;
  border-top: 1px solid #eef1f5;
  color: #66758a;
}
.activity > p b {
  margin-right: 8px;
  color: var(--ink);
}
@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 185px 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search {
    width: 250px;
  }
}
@media (max-width: 720px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  main {
    padding: 0 15px;
  }
  .search {
    display: none;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid {
    display: block;
  }
  .panel {
    margin-bottom: 12px;
  }
}
