:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #202825;
  background: #f7f9f8;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  --line: #dbe3df;
  --green: #126449;
  --muted: #66736c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 13px;
  background: white;
  color: inherit;
  cursor: pointer;
  min-height: 42px;
}
button:hover:not(:disabled) {
  background: #edf3ef;
}
button:disabled {
  cursor: not-allowed;
  color: #7a8580;
  background: #f4f6f5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #76b7dc;
  outline-offset: 3px;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
input,
select {
  border: 1px solid #abbcb2;
  border-radius: 5px;
  background: #fff;
  color: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
  max-width: 100%;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
h1 {
  font-size: 27px;
  line-height: 1.25;
  margin: 0 0 26px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  margin: 0 0 18px;
}
p {
  margin: 0 0 16px;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
code {
  overflow-wrap: anywhere;
  font-size: 12px;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.k2-toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.k2-toolbar .form-field {
  flex: 1 1 180px;
  max-width: 420px;
  margin: 0;
}
.form-field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  min-width: 0;
}
.form-field span {
  font-size: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.check-group {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  margin: 0 0 12px;
  min-width: 0;
}
.check-group legend {
  padding: 0 8px 0 0;
  font-weight: 600;
  font-size: 14px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 400;
  font-size: 14px;
  min-height: 32px;
  margin-bottom: 6px;
}
.check-label input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  accent-color: var(--green);
}
.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.row-actions button {
  padding: 6px 9px;
  font-size: 13px;
}
.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0 28px;
}
.pagination span {
  margin-right: auto;
  color: var(--muted);
}
.empty-state {
  padding: 16px 0;
  color: var(--muted);
}
.k2-dialog {
  width: min(740px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
}
.k2-dialog::backdrop {
  background: rgb(12 26 20 / 35%);
}
.k2-dialog .dialog-heading {
  position: sticky;
  top: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: white;
  border-bottom: 1px solid var(--line);
  z-index: 1;
}
.dialog-heading h2 {
  margin: 0;
  overflow-wrap: anywhere;
}
.dialog-heading button {
  flex-shrink: 0;
}
.dialog-body {
  padding: 20px 22px;
}
.dialog-footer {
  padding: 16px 22px;
  background: #f7f9f8;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: end;
}
.dialog-footer .error {
  flex-basis: 100%;
  margin: 0;
}
.dialog-body .inline-note {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .k2-dialog .dialog-heading {
    padding: 14px;
    align-items: start;
  }
  .dialog-heading h2 {
    font-size: 17px;
  }
  .dialog-body,
  .dialog-footer {
    padding: 14px;
  }
  .k2-toolbar .form-field {
    flex-basis: 100%;
    max-width: none;
  }
}
.error {
  color: #a52c32;
  overflow-wrap: anywhere;
}
.error:empty {
  display: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  font-size: 18px;
  line-height: 1.3;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--green);
  color: #fff;
  border-radius: 5px;
  font-size: 17px;
  flex-shrink: 0;
}
.brand-caption {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 3px;
}
.login-layout {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: #fff;
}
.login-content {
  width: 100%;
  max-width: 390px;
}
.login-content .brand {
  margin-bottom: 54px;
}
.login-content h1 {
  font-size: 28px;
}
.login-content input {
  margin-bottom: 20px;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover:not(:disabled) {
  background: #0d513a;
}
.login-content .primary {
  width: 100%;
}
.login-content .error {
  margin-top: 18px;
}
.registration {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
  font-size: 14px;
}
.registration a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.login-actions {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 16px 0;
  font-size: 13px;
}
.login-actions button {
  padding: 6px 9px;
}
.code-input {
  font-size: 24px;
  max-width: 200px;
  font-variant-numeric: tabular-nums;
}
.login-content details {
  font-size: 13px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  margin-bottom: 8px;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 0;
  height: 100dvh;
  min-width: 0;
}
.sidebar .brand {
  font-size: 16px;
  flex-shrink: 0;
}
.sidebar nav {
  display: grid;
  gap: 6px;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.nav-button {
  justify-content: flex-start;
  border: 0;
  width: 100%;
  text-align: left;
  font-size: 14px;
  min-height: 44px;
  padding: 10px;
}
.nav-button.active {
  background: #e8f2ec;
  color: #0e5c40;
  font-weight: 600;
}
.nav-button:disabled {
  background: transparent;
  color: #919a95;
}
.milestone {
  margin-left: auto;
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 0 4px;
  border-radius: 3px;
}
.version {
  color: var(--muted);
  font-size: 12px;
}
.workspace {
  min-width: 0;
}
.topbar {
  min-height: 76px;
  padding: 18px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.topbar > span {
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.icon-button {
  width: 42px;
  height: 42px;
  padding: 8px;
}
.dev-toolbar {
  padding: 10px;
  display: grid;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
  border: 1px solid #e2d4af;
  border-radius: 5px;
  background: #faf5e7;
  color: #6e5424;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.dev-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 6px 9px;
}
.dev-toolbar button {
  min-height: 42px;
  width: 100%;
}
main {
  max-width: 1200px;
  padding: 34px;
}
.section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
  padding-bottom: 28px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.fact-label {
  color: var(--muted);
  font-size: 13px;
}
.fact-value {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.table-wrap {
  overflow: auto;
}
#page-content[data-page="reminders"] .table-wrap table {
  min-width: 700px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
th {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #f0f4f2;
}
td,
th {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
td:last-child {
  min-width: 110px;
}
.inline-note {
  font-size: 13px;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #243c31;
  color: #fff;
  padding: 12px 18px;
  border-radius: 5px;
  max-width: calc(100% - 32px);
  z-index: 10;
  font-size: 14px;
  box-shadow: 0 3px 14px #0002;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 12px;
  }
  .brand {
    gap: 8px;
  }
  main {
    padding: 26px;
  }
  .topbar {
    padding-left: 26px;
    padding-right: 26px;
  }
}
@media (max-width: 600px) {
  .shell {
    display: block;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 18px;
    gap: 18px;
    position: static;
    height: auto;
  }
  .sidebar nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    overflow: visible;
  }
  .nav-button {
    width: auto;
    min-height: 42px;
  }
  .nav-button:disabled,
  .version {
    display: none;
  }
  .topbar {
    min-height: 64px;
    padding: 10px 18px;
    font-size: 14px;
  }
  main {
    padding: 24px 18px;
  }
  h1 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  .facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .login-layout {
    align-items: start;
    padding-top: 56px;
  }
  .login-content .brand {
    margin-bottom: 42px;
  }
  .login-content h1 {
    font-size: 26px;
  }
  td,
  th {
    padding: 12px 9px;
  }
  table {
    font-size: 13px;
  }
  .section {
    padding: 22px 0;
  }
  .login-actions {
    font-size: 12px;
  }
}
.icon-command {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.filter-bar {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}
.filter-bar .form-field {
  flex: 0 1 320px;
  margin: 0;
  min-width: 0;
}
#page-content[data-page="channels"] .table-wrap,
#page-content[data-page="directory"] .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
#page-content[data-page="channels"] table {
  min-width: 850px;
  table-layout: auto;
}
#page-content[data-page="channels"] > .table-wrap table {
  min-width: 1120px;
}
#page-content[data-page="directory"] table {
  min-width: 680px;
  table-layout: auto;
}
#page-content[data-page="channels"] th,
#page-content[data-page="directory"] th {
  white-space: nowrap;
}
#page-content[data-page="channels"] td,
#page-content[data-page="directory"] td {
  overflow-wrap: normal;
  word-break: normal;
}
.k2-dialog .table-wrap table {
  min-width: 550px;
}
[hidden] {
  display: none !important;
}
.qualification-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
}
.qualification-filters .form-field {
  flex: 1 1 160px;
  min-width: 0;
}
.qualification-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.qualification-layout {
  display: grid;
  grid-template-columns: minmax(240px, 32%) minmax(0, 1fr);
  border-top: 1px solid #d9dedc;
  min-height: 480px;
}
.contact-list {
  border-right: 1px solid #d9dedc;
  max-height: 800px;
  overflow: auto;
}
.contact-list-row {
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: left;
  width: 100%;
  min-height: 120px;
  border: 0;
  border-bottom: 1px solid #e3e7e5;
  border-radius: 0;
  padding: 16px;
  gap: 6px;
  background: #fff;
}
.contact-list-row.active {
  background: #eaf4ef;
  box-shadow: inset 3px 0 #26704f;
}
.contact-list-row > * {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.contact-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400;
}
.contact-detail {
  min-width: 0;
  padding: 20px;
}
.contact-detail h2 {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.contact-detail h3 {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.contact-context {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}
.contact-message {
  max-width: 94%;
  width: fit-content;
  padding: 12px;
  border: 1px solid #dce1e0;
  border-radius: 6px;
  background: #f8f9f9;
  overflow-wrap: anywhere;
}
.contact-message.outgoing {
  align-self: end;
  background: #eef5f0;
  border-color: #cbdccf;
}
.contact-message small {
  color: #55625c;
  font-size: 12px;
}
.contact-message p {
  white-space: pre-wrap;
  margin: 8px 0 0;
  font-size: 14px;
}
.company-picker {
  display: grid;
  gap: 12px;
  min-width: 0;
}
@media (max-width: 760px) {
  .qualification-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-list {
    max-height: 300px;
    border-right: 0;
    border-bottom: 1px solid #d9dedc;
  }
  .contact-detail {
    padding: 16px 0;
  }
  .contact-message {
    max-width: 100%;
  }
  .contact-actions button {
    flex: 1 1 140px;
  }
}

.analytics-frame {display:block;width:100%;height:calc(100vh - 155px);min-height:600px;border:0;border-radius:12px;background:#f4f6f9;}
