@charset "UTF-8";
:root {
  --navy: #082b60;
  --deep: #061a2a;
  --lime: #cefa00;
  --cyan: #0cd2df;
  --bg: #f2f6fb;
  --ink: #11213c;
  --muted: #617089;
  --border: #dce5ef;
  --red: #b22d42;
  --white: #fff;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
  border: 0;
}
a {
  color: var(--navy);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: white;
  z-index: 20;
  padding: 12px;
}
.loading {
  padding: 4rem;
}
.logo {
  width: 100%;
  max-width: 390px;
  background: transparent;
}
.logo img {
  display: block;
  width: 100%;
  height: auto;
}
.login-form .logo {
  max-width: 260px;
  margin-bottom: 24px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}
aside {
  background: linear-gradient(165deg, #092c4b, #061a2a);
  color: #b5c9dc;
  padding: 30px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
aside .logo {
  max-width: 240px;
  margin-bottom: 10px;
}
aside .caption {
  padding: 0 12px;
  font-size: 11px;
  letter-spacing: 2px;
  margin: 3px 0 35px;
  color: #7fa4be;
}
nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #b5c9dc;
  padding: 11px 14px;
  border-radius: 10px;
  margin: 4px 0;
  font-weight: 500;
}
nav a:hover {
  background: #ffffff0c;
}
nav a.active {
  background: var(--lime);
  color: #092338;
  font-weight: 750;
}
.navglyph {
  width: 20px;
  text-align: center;
}
aside footer {
  margin-top: 30px;
  padding: 14px 12px;
  border-top: 1px solid #ffffff20;
  font-size: 12px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 86px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 38px;
  gap: 20px;
}
.topbar h1 {
  font-size: 21px;
  margin: 0;
}
.topbar p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  background: #e3f8ec;
  color: #0b6148;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 750;
}
.identity small {
  display: block;
  color: var(--muted);
}
.content {
  padding: 32px 38px;
  max-width: 1700px;
  margin: auto;
}
.eyebrow {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.welcome {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 0 0 26px;
}
.welcome h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 0 0 4px;
}
.welcome p {
  color: var(--muted);
  margin: 0;
}
.btn {
  background: var(--lime);
  color: #10253a;
  border-radius: 9px;
  padding: 11px 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
}
.btn.secondary {
  background: white;
  border: 1px solid var(--border);
  color: var(--navy);
}
.btn.danger {
  background: #ffedef;
  color: var(--red);
}
.btn.small {
  padding: 6px 10px;
  font-size: 12px;
}
.btn.ghost {
  background: transparent;
  color: var(--navy);
  padding: 6px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat,
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: 0 4px 16px #092b5004;
}
.stat {
  padding: 22px;
}
.stat small {
  color: var(--muted);
}
.stat strong {
  display: block;
  font-size: 33px;
  color: var(--navy);
  margin-top: 9px;
}
.stat .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  background: var(--cyan);
}
.stat.lime {
  background: var(--navy);
  color: white;
}
.stat.lime strong,
.stat.lime small {
  color: white;
}
.panel {
  padding: 24px;
  margin-bottom: 22px;
}
.panel h3 {
  margin: 0;
  font-size: 17px;
  color: var(--navy);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 15px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}
.muted {
  color: var(--muted);
}
.mini {
  font-size: 12px;
}
.pipeline-row {
  display: grid;
  grid-template-columns: 130px 1fr 35px;
  gap: 12px;
  align-items: center;
  margin: 17px 0;
}
.bar {
  height: 8px;
  background: #edf3f9;
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00bfcf, #d0ef10);
  width: var(--width, 0%);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.toolbar input {
  max-width: 320px;
}
.toolbar select {
  max-width: 220px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #f7f9fc;
}
td,
th {
  padding: 13px 14px;
  border-bottom: 1px solid #edf1f6;
}
tr:last-child td {
  border: 0;
}
td strong {
  color: var(--navy);
}
.tag {
  display: inline-block;
  background: #eef3fa;
  color: var(--navy);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
}
.tag.won {
  background: #e4f8e9;
  color: #236d35;
}
.tag.lost {
  background: #ffedef;
  color: var(--red);
}
.empty {
  padding: 35px 12px;
  text-align: center;
  color: var(--muted);
}
.empty strong {
  color: var(--navy);
  font-size: 17px;
  display: block;
  margin-bottom: 5px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full,
.full {
  grid-column: 1/-1;
}
label {
  font-size: 12px;
  font-weight: 650;
  color: var(--navy);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd9e8;
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  min-height: 42px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #178bc2;
  outline: 2px solid #16cad129;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
select[multiple] {
  height: 140px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 500;
  cursor: pointer;
}
.check input {
  width: 17px;
  min-height: 17px;
  flex: 0 0 17px;
  margin: 2px 0;
}
.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.checks .check {
  padding: 11px;
  background: #f7faff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.error {
  color: var(--red);
  background: #fff0f2;
  border-radius: 8px;
  padding: 12px;
  margin: 14px 0;
}
.hidden {
  display: none !important;
}
dialog {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 20px 100px #00152d50;
  padding: 0;
  width: min(820px, 94vw);
  max-height: 92vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #00182c99;
  backdrop-filter: blur(3px);
}
#modal-content {
  padding: 27px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.dialog-head h2 {
  font-size: 21px;
  margin: 0;
  color: var(--navy);
}
.close {
  background: #edf3fa;
  color: var(--navy);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 20px;
}
.steps {
  display: flex;
  gap: 8px;
  margin: 0 0 25px;
}
.steps span {
  background: #edf2f9;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
  flex: 1;
  text-align: center;
}
.steps span.active {
  background: var(--lime);
  font-weight: 700;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-brand {
  background:
    radial-gradient(ellipse at 80% 40%, #0c4f60, transparent), var(--deep);
  color: white;
  padding: 55px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand h1 {
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: -1.5px;
  max-width: 550px;
}
.login-brand h1 span {
  color: var(--lime);
}
.login-brand p {
  color: #abc8d9;
  max-width: 380px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
}
.login-form section {
  width: 370px;
  max-width: 100%;
}
.login-form h2 {
  font-size: 27px;
  margin: 0 0 6px;
  color: var(--navy);
}
.login-form .field {
  margin: 20px 0;
}
.login-form .btn {
  width: 100%;
}
.secure-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.activity {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.activity p {
  margin: 3px 0;
  white-space: pre-wrap;
}
.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.detail-meta dt {
  font-size: 11px;
  color: var(--muted);
}
.detail-meta dd {
  margin: 3px 0;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.detail-description {
  white-space: pre-wrap;
  padding: 15px;
  background: #f6f9fc;
  border-radius: 9px;
}
.kanban {
  display: grid;
  grid-auto-columns: 270px;
  grid-auto-flow: column;
  overflow: auto;
  gap: 16px;
  padding-bottom: 15px;
}
.kanban-col {
  border-radius: 12px;
  background: #e8eff7;
  padding: 15px;
}
.kanban-col h3 {
  font-size: 13px;
  margin: 0 0 14px;
}
.lead-card {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
}
.lead-card strong {
  display: block;
  color: var(--navy);
}
.lead-card small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.settings-grid .field small {
  font-size: 11px;
  color: var(--muted);
}
.pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 16px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  background: var(--navy);
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  z-index: 50;
  box-shadow: 0 8px 40px #0002;
}
#toast:empty {
  display: none;
}
.code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #edf3f9;
  padding: 15px;
  border-radius: 9px;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 650;
}
.health {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px;
  background: #f7fafc;
  border-radius: 9px;
  margin-top: 10px;
}
.mobile-menu {
  display: none;
}
.secret-once {
  background: #fffbe0;
  padding: 16px;
  border: 1px solid #e9d45a;
  border-radius: 9px;
}
.progress-width-0 {
  --width: 0%;
}
.progress-width-10 {
  --width: 10%;
}
.progress-width-20 {
  --width: 20%;
}
.progress-width-30 {
  --width: 30%;
}
.progress-width-40 {
  --width: 40%;
}
.progress-width-50 {
  --width: 50%;
}
.progress-width-60 {
  --width: 60%;
}
.progress-width-70 {
  --width: 70%;
}
.progress-width-80 {
  --width: 80%;
}
.progress-width-90 {
  --width: 90%;
}
.progress-width-100 {
  --width: 100%;
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 195px 1fr;
  }
  .content {
    padding: 24px;
  }
  .topbar {
    padding: 15px 24px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 35px;
  }
  .login-brand h1 {
    font-size: 35px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  aside {
    position: relative;
    height: auto;
    padding: 15px;
  }
  .nav {
    display: flex;
    overflow: auto;
  }
  .nav a {
    white-space: nowrap;
  }
  aside .caption,
  aside footer {
    display: none;
  }
  .topbar {
    height: auto;
    align-items: flex-start;
  }
  .identity .person {
    display: none;
  }
  .content {
    padding: 20px 15px;
  }
  .welcome {
    align-items: flex-start;
  }
  .welcome h2 {
    font-size: 23px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .fields,
  .settings-grid,
  .checks {
    grid-template-columns: 1fr;
  }
  .detail-meta {
    grid-template-columns: 1fr;
  }
  .login {
    display: block;
  }
  .login-brand {
    padding: 22px;
  }
  .login-brand h1 {
    font-size: 28px;
    margin: 20px 0;
  }
  .login-brand footer,
  .login-brand p {
    display: none;
  }
  .login-form {
    padding: 35px 22px;
  }
  .steps span {
    font-size: 10px;
    padding: 5px 2px;
  }
  .topbar .btn {
    padding: 7px;
  }
  .panel {
    padding: 18px;
  }
  .pipeline-row {
    grid-template-columns: 100px 1fr 30px;
  }
}

.login-brand .eyebrow {
  color: #a8c5d4;
}
