@font-face {
  font-family: Agdasima;
  src: url('assets/agdasima.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: url('assets/roboto.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --slate: #2e454c;
  --deep-teal: #286270;
  --teal: #0a8d9c;
  --background: #eef1f1;
  --white: #fff;
  --ink: #213b43;
  --muted: #506970;
  --border: #d6dfe0;
  --tint: #e8f5f5;
  --danger: #9b3838;
  --heading: Agdasima, 'Arial Narrow', sans-serif;
  color: var(--ink);
  background: var(--background);
  font: 400 15px/1.5 Roboto, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--deep-teal);
  outline-offset: 3px;
}

.app { display: flex; min-height: 100vh; }
.side {
  width: 232px;
  flex: 0 0 232px;
  padding: 25px 18px;
  background: var(--white);
  border-right: 1px solid var(--border);
}
.brand-logo { display: block; width: 100%; height: auto; }
.side .brand-logo { margin: 0 0 21px; }
.side nav { display: grid; gap: 5px; border-top: 1px solid var(--border); padding-top: 19px; }
.nav {
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--slate);
  text-align: left;
  font-size: 14px;
}
.nav:hover, .nav.active { background: var(--tint); color: var(--deep-teal); }
.nav.active { border-left-color: var(--teal); font-weight: 700; }
.workspace { flex: 1; min-width: 0; }
.mobile-header { display: none; }
.main { max-width: 1600px; margin: 0 auto; padding: 27px clamp(18px, 3vw, 42px) 45px; }
.top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
  padding: clamp(22px, 3vw, 38px) clamp(20px, 3vw, 38px);
  border-left: 5px solid var(--teal);
  border-radius: 6px;
  background: var(--slate);
  color: var(--white);
}
.heading-wrap { min-width: 0; }
.hero-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; color: #e8f4f4; font-size: 13px; }
.demo-tag { color: var(--slate); background: #e3f5f5; border-radius: 3px; padding: 3px 8px; font-weight: 700; }
h1, h2 { font-family: var(--heading); font-weight: 400; line-height: 1.1; }
h1 { margin: 10px 0 0; font-size: clamp(39px, 4.8vw, 66px); }
h2 { margin: 0 0 15px; font-size: 29px; color: var(--slate); }
.top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.btn {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
}
.btn:hover { background: var(--tint); }
.btn.primary { background: var(--deep-teal); border-color: var(--deep-teal); color: var(--white); }
.btn.primary:hover { background: var(--slate); }
.top .btn { background: transparent; border-color: #9bbabd; color: var(--white); }
.top .btn:hover { background: #3a575f; }
.top .btn.primary { background: #e7f4f4; border-color: #e7f4f4; color: var(--slate); }
.top .btn.primary:hover { background: var(--white); }
.top .btn:focus-visible { outline-color: #e7f4f4; }
.filters { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 17px; }
.field, .formgrid input, .formgrid select, textarea, .stage-setting input {
  width: auto;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #b9c8cb;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}
.search { min-width: min(200px, 100%); flex: 1; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.panel { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 6px; background: var(--white); }
.metrics > .panel { border-top: 3px solid var(--teal); }
.metric-label { font-weight: 700; color: var(--slate); font-size: 13px; }
.metric-value { margin: 8px 0 4px; font: 400 clamp(30px, 3.3vw, 45px)/1 var(--heading); color: var(--ink); }
.muted, .small { color: var(--muted); font-size: 13px; }
.small { font-size: 12px; }
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin-top: 15px; }
.bars { display: grid; gap: 13px; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.track { height: 8px; border-radius: 4px; background: var(--background); overflow: hidden; }
.fill { height: 100%; border-radius: inherit; background: var(--teal); }
.pill { border-radius: 4px; padding: 4px 8px; background: var(--tint); color: var(--deep-teal); font-size: 12px; }
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table td, .table th { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.table th { color: var(--slate); }
.table tr:last-child td { border-bottom: 0; }
.link { padding: 0; border: 0; background: transparent; color: var(--deep-teal); text-align: left; font-weight: 700; }
.link:hover { text-decoration: underline; }
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 14px; }
.column { flex: 0 0 230px; min-height: 190px; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: #e4ebec; }
.coltitle { display: flex; justify-content: space-between; align-items: center; gap: 7px; font-weight: 700; }
.opportunity { padding: 12px; margin-top: 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--white); cursor: pointer; }
.opportunity:hover { border-color: var(--teal); }
.opportunity strong { display: block; margin-bottom: 6px; }
.advisor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.modalback { position: fixed; inset: 0; z-index: 10; display: none; align-items: center; justify-content: center; padding: 14px; background: #18313caa; }
.modal { width: min(700px, 100%); max-height: 94vh; overflow: auto; padding: 24px; border-radius: 7px; background: var(--white); }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.formgrid label, .full-label { display: grid; gap: 5px; color: var(--slate); font-size: 13px; font-weight: 700; }
.formgrid input, .formgrid select, textarea { width: 100%; font-weight: 400; }
.actions { display: flex; justify-content: space-between; gap: 7px; margin-top: 18px; }
.notice { margin-bottom: 17px; padding: 10px 12px; border-left: 3px solid var(--teal); background: var(--tint); color: var(--slate); font-size: 13px; }
.stage-setting { display: grid; grid-template-columns: minmax(0, 1fr) 105px; gap: 15px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.stage-setting input { width: 100%; }
.summary-stack { display: grid; gap: 15px; margin-top: 22px; }
.follow-up { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.follow-up:last-child { border-bottom: 0; }
.estimate { margin-top: 13px; background: var(--tint); }
.btn.danger { color: var(--danger); }

@media (max-width: 1100px) {
  .side { width: 190px; flex-basis: 190px; padding-inline: 13px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 740px) {
  .app { display: block; }
  .side { display: none; }
  .mobile-header { display: block; background: var(--white); border-bottom: 1px solid var(--border); }
  .mobile-header .brand-logo { width: 155px; margin-left: 10px; padding-top: 3px; }
  .mobile-nav { display: flex; gap: 3px; padding: 0 9px 7px; overflow-x: auto; }
  .mobile-nav .nav { width: auto; flex: 0 0 auto; padding: 7px 8px; border: 0; border-bottom: 2px solid transparent; font-size: 13px; }
  .mobile-nav .nav.active { border-bottom-color: var(--teal); }
  .main { padding: 14px 12px 35px; }
  .top { align-items: flex-start; flex-direction: column; padding: 17px 15px; margin-bottom: 15px; gap: 14px; }
  .hero-status { font-size: 12px; }
  .panel { padding: 14px; }
  .advisor-grid, .formgrid { grid-template-columns: minmax(0, 1fr); }
}
