@font-face {font-family:'PT Sans';font-style:normal;font-weight:400;src:url('/assets/PTS55F_W.woff') format('woff');font-display:swap;}
@font-face {font-family:'PT Sans';font-style:normal;font-weight:700;src:url('/assets/PTS75F_W.woff') format('woff');font-display:swap;}
:root {
  color-scheme: dark;
  --nav: #07131d;
  --background: #0f2231;
  --panel: #153043;
  --line: #294354;
  --text: #d4dce1;
  --muted: #b2bfce;
  --blue: #2864c5;
  --focus: #a9cbff;
  --danger: #f0a2a8;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font: 15px 'PT Sans', Arial, sans-serif;
  color: var(--text);
  background: var(--background);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button, input, select, textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 9px 12px;
}
button:hover {
  background: #23465c;
}
button:disabled {
  opacity: .45;
  cursor: default;
}
input, select, textarea {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 9px;
  background: transparent;
}
select option {
  background: var(--panel);
}
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
a[href]:focus-visible, [role=textbox]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
/* Inset rings stay visible inside clipped rows and message editors. */
.inbox-chat-link:focus-visible, [role=textbox]:focus-visible {outline-offset: -2px;}
.skip-link {position:fixed;z-index:1002;top:8px;left:75px;transform:translateY(-150%);padding:10px 14px;background:var(--panel);color:var(--text);text-decoration:underline;text-underline-offset:3px;}
.skip-link:focus {transform:none;}
::selection {background:#264b79;color:#fff;}
[role=textbox],input,textarea {caret-color:var(--focus);}
p {
  line-height: 1.5;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#login {
  max-width: 380px;
  margin: 14vh auto;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
}
#login label {
  display: block;
  margin: 20px 0 8px;
}
#login input {
  width: 100%;
}
#login .remember-login {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 16px 0 0;
  cursor: pointer;
}
#login #remember-login {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--blue);
}
#login button {
  color: #fff;
  background: var(--blue);
  margin-top: 16px;
}
#workspace:not([hidden]) {
  display: flex;
  height: 100dvh;
}
nav {
  width: 65px;
  flex-shrink: 0;
  background: var(--nav);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}
.account {
  height: 65px;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 18px;
  border-bottom: 1px solid var(--line);
}
.account span {
  font-size: 10px;
  font-weight: 400;
  margin-top: 3px;
}
nav button {
  border: 0;
  border-radius: 0;
  font-size: 11px;
  padding: 10px 2px;
  height: 75px;
  flex-shrink: 0;
  color: #a6bac8;
}
nav button.active {
  background: #163144;
  color: white;
}
.nav-icon {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 4px;
}
#export {
  font-size: 12px;
}
#pipeline-menu {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 65px;
  width: 265px;
  background: var(--panel);
  box-shadow: 6px 0 12px #0003;
  display: flex;
  flex-direction: column;
}
#pipeline-menu header {
  height: 65px;
  padding: 0 20px 0 30px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
#pipeline-menu h2 {font-size: 18px; font-weight: 700; text-transform: uppercase; margin: 0;}
#pipeline-items {flex: 1; overflow: auto; scrollbar-width: thin;}
.pipeline-item, #pipeline-menu footer button {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 16px 20px 16px 30px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: #f2f2f2;
  line-height: 24px;
}
.pipeline-item[aria-current=page] {color: #4c8bf7;}
.pipeline-item {white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 56px;}
#pipeline-menu footer {flex-shrink: 0; border-top: 1px solid var(--line);}
#pipeline-menu footer button span {float: right; color: var(--muted);}
#pipeline-menu-back {margin-left: auto; border: 0; font-size: 22px;}
.column h2 {border-top: 4px solid transparent;}
main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.list-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  height: 65px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.list-toolbar h1 {
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .3px;
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.view-switch {
  display: flex;
}
.view-switch button {
  border: 0;
  color: var(--muted);
  font-size: 22px;
  padding: 5px 8px;
}
.view-switch button[aria-pressed=true] {
  color: #80b5ff;
}
#search {
  border: 0;
  border-left: 1px solid var(--line);
  flex: 1;
  min-width: 80px;
  padding: 20px;
}
#summary, #user {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
#notice {
  padding: 6px 24px;
  color: var(--muted);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
#board {
  display: flex;
  overflow: auto;
  gap: 0;
  padding: 0 15px;
  flex: 1;
}
.column {
  min-width: 260px;
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid #203747;
  padding: 0 8px;
}
.column h2 {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--background);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 0;
  padding: 20px 10px 12px;
  margin: 0 0 12px;
  min-height: 70px;
}
.deal {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
  padding: 14px 12px;
  background: var(--panel);
  border: 1px solid #2a4659;
}
.deal strong {
  display: block;
  color: #79b3f5;
  margin-bottom: 9px;
  font-size: 14px;
}
.deal span {
  font-size: 12px;
}
.deal small {
  display: block;
  color: var(--muted);
  margin-top: 10px;
  font-size: 11px;
}
.empty {
  color: #536f80;
  padding: 10px;
  font-size: 12px;
}
#list-view {
  overflow: auto;
  padding: 15px;
  flex: 1;
}
.deals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.deals-table th {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  text-align: left;
  padding: 13px;
}
.deals-table td {
  padding: 13px;
  border-top: 1px solid var(--line);
}
.deals-table button {
  border: 0;
  padding: 0;
  color: #79b3f5;
  text-align: left;
}
.deals-table tr:hover td {
  background: var(--panel);
}
#card {
  position: fixed;
  top: 0;
  left: 65px;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  width: calc(100% - 65px);
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: var(--background);
  z-index: 10;
}
.card-layout {
  display: flex;
  height: 100%;
}
.card-fields {
  background: var(--panel);
  flex: 0 0 calc(34vw - 44.2px);
  min-width: 340px;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 17px 24px 10px 10px;
}
.card-heading h2 {
  font-size: 21px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#close {
  font-size: 28px;
  padding: 0 3px;
  border: 0;
  line-height: 30px;
}
#card-id {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.card-tags {
  padding: 6px 30px;
  font-size: 12px;
}
.card-tags span {
  border: 1px solid #3c5668;
  border-radius: 2px;
  padding: 2px 5px;
}
.stage-block {
  margin: 10px 30px 0;
}
#pipeline-name {
  color: var(--muted);
  font-size: 12px;
}
#stage {
  display: block;
  width: 100%;
  padding: 3px 0 8px;
  border: 0;
  font-size: 14px;
  font-weight: 600;
}
.stage-progress {
  height: 4px;
  display: flex;
  gap: 2px;
}
.stage-progress button {height: 4px;min-width: 0;padding: 0;flex: 1;border: 0;border-radius: 0;}
.stage-progress button.future {opacity: .2;}
#card-title {width: 100%;min-width: 0;padding: 0;border: 0;resize: none;font-size: 24px;line-height: 30px;height: 32px;color: white;font-weight: 700;overflow: hidden;}
#card-title:focus {outline-offset: 3px;}
#card-tabs {overflow-x: auto;flex-shrink: 0;scrollbar-width: thin;}
#card-tabs button {white-space: nowrap;}
.card-tabbar {position: relative;flex-shrink: 0;}
.card-tabbar .card-tabs {margin-top: 12px;padding: 0 23px;gap: 0;overflow: hidden;}
.card-tabbar .card-tabs button {min-width: 0;overflow: hidden;text-overflow: ellipsis;padding-left: 7px;padding-right: 7px;}
#card-tabs-more {flex-shrink: 0;}
#card-extra-tabs {position: absolute;right: 15px;top: 100%;z-index: 5;width: 220px;max-height: 50vh;overflow: auto;background: var(--panel);border: 1px solid var(--line);box-shadow: 0 5px 20px #0005;}
#card-extra-tabs button {display: block;width: 100%;text-align: left;border: 0;border-radius: 0;}
#card-extra-tabs button[aria-selected=true] {color: #82b9ff;}
.field-row label {color: var(--muted);}
.field-row {font-size: 15px;}
.field-row input:not([type=checkbox]),.field-row select,.field-row textarea {width: 100%;min-width: 0;border-color: transparent;padding: 1px 0;border-radius: 0;}
.field-row input:hover,.field-row select:hover,.field-row textarea:hover {border-bottom-color: var(--line);}
.field-row textarea {height: 26px;min-height: 26px;resize: vertical;}
.field-row input[type=checkbox] {appearance: none;width: 18px;height: 18px;border: 1px solid #516774;border-radius: 50%;padding: 0;cursor: pointer;}
.field-row input[type=checkbox]:checked {background: #4c8bf7;box-shadow: inset 0 0 0 4px var(--panel);}
.budget-value {display: flex;align-items: center;gap: 4px;}
.card-meta {font-size: 12px;}
#card-savebar {padding: 12px 30px;display: flex;gap: 10px;flex-shrink: 0;background: #173d56;border-top: 1px solid var(--line);}
#card-save {background: #4c8bf7;border-color: #4c8bf7;color: white;}
.card-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-top: 12px;
  padding: 0 20px;
  gap: 7px;
}
.card-tabs button {
  font-size: 13px;
  font-weight: bold;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
  padding: 12px 9px;
}
.card-tabs button[aria-selected=true] {
  color: white;
  border-bottom-color: #9bc2dd;
}
.fields-scroll {
  flex: 1;
  overflow: auto;
  padding: 15px 30px 30px;
}
.field-row {
  display: grid;
  grid-template-columns: 39% 1fr;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  align-items: baseline;
  overflow-wrap: anywhere;
}
.field-row > span:first-child {
  color: var(--muted);
}
#claim {
  font-size: 12px;
  padding: 5px 9px;
  margin: 2px 0 12px 41%;
}
#linked {
  font-size: 12px;
  color: #a5c9e3;
}
.contact-fields {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.contact-fields h3 {
  color: #8ab7d4;
  font-size: 16px;
  margin: 0 0 10px;
}
.contact-phone {
  grid-template-columns: 39% 1fr;
  align-items: center;
}
#phone {
  color: #9bc5e5;
}
#call {
  padding: 4px 10px;
  font-size: 13px;
  border: 0;
  color: white;
  background: #4c8bf8;
}
.contact-actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 10px calc(39% + 6px);
}
#telegram-contact {
  padding: 4px 10px;
  font-size: 13px;
  border: 0;
  color: white;
  background: #22a6ca;
}
.integration-rail {
  flex: 0 0 65px;
  background: var(--background);
  border-left: 1px solid var(--line);
}
#call-status {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  flex: 1;
  padding: 0 14px;
}
#timeline {
  flex: 1;
  overflow: auto;
  padding: 25px 14px;
}
.event {
  margin: 0 0 14px;
  padding: 7px 16px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.event small {
  display: block;
  font-size: 11px;
  margin-bottom: 4px;
}
.event.incoming, .event.outgoing {
  color: var(--text);
  background: #071f2e;
  max-width: 85%;
  width: fit-content;
  border-radius: 9px;
  padding: 12px 15px;
}
.event.outgoing {
  background: #284d78;
  margin-left: auto;
}
.event.note {
  background: #605932;
  color: #f4e6bd;
  border-radius: 3px;
}
#compose {
  margin-bottom: 15px;
  border: 1px solid #526b7b;
  border-radius: 3px;
  background: var(--panel);
  padding: 9px 14px;
  box-shadow: 0 5px 10px #0003;
  min-height: 72px;
}
#compose.minimized .compose-actions {
  display: none;
}
#compose.minimized {height: 72px;max-height: 72px;overflow: hidden;padding: 10px 15px 0;}
#compose:not(.minimized) {min-height: 130px;padding: 10px 15px 12px;}
#compose.is-note {background: #605932;}
#text {min-height: 30px;max-height: 180px;overflow: auto;white-space: pre-wrap;overflow-wrap: anywhere;outline: none;font-size: 15px;line-height: 20px;padding: 5px 0 10px;}
#text:empty:before {content: attr(data-placeholder);color: var(--muted);pointer-events: none;}
.compose-shortcut {margin-left: auto;font-size: 11px;color: var(--muted);}
#card-error:empty {display: none;}
#card-error {padding-bottom: 8px;}
.compose-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
#compose-kind {
  border: 0;
  color: #97bde5;
  padding: 3px 0;
  font-size: 12px;
  max-width: 65%;
}
textarea {
  display: block;
  resize: vertical;
  width: 100%;
  min-height: 40px;
  height: 42px;
  max-height: 200px;
  border: 0;
  padding: 8px 0;
  font-size: 14px;
}
.compose-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
#send {
  background: var(--blue);
  border: 0;
  font-size: 12px;
  padding: 7px 12px;
}
#card-error, #login-error {
  color: #ed9a9a;
  font-size: 12px;
  margin: 0;
}
@media (max-width: 760px) {
  .list-toolbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 65px;
    gap: 5px;
    padding: 10px;
  }
  .list-toolbar h1 {
    max-width: 65%;
    font-size: 12px;
  }
  #search {
    order: 5;
    width: 100%;
    flex-basis: 100%;
    padding: 8px;
    border: 1px solid var(--line);
  }
  #notice {
    padding: 6px 10px;
  }
  #user {
    display: none;
  }
  #card {
    overflow: auto;
  }
  .card-layout {
    display: block;
    height: auto;
  }
  .card-fields {
    min-width: 0;
    max-width: none;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .fields-scroll {
    overflow: visible;
    padding: 10px 20px;
  }
  .field-row {
    font-size: 13px;
  }
  .contact-fields {
    margin-top: 12px;
    padding-top: 12px;
  }
  .conversation {
    min-height: 60vh;
    padding: 0 10px;
  }
  .integration-rail {
    display: none;
  }
  #timeline {
    overflow: visible;
  }
  #compose {
    position: sticky;
    bottom: 5px;
  }
}
#account { flex-shrink: 0; }
#avatar { font-size: 22px; color: #d3e8f5; }
#account-menu {
  position: fixed;
  top: 8px;
  left: 70px;
  z-index: 40;
  min-width: 220px;
  padding: 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 8px 25px #0008;
}
#account-menu button { display: block; width: 100%; text-align: left; margin-top: 8px; font-size: 14px; }
.settings-panel {
  width: min(1100px,95vw);
  max-height: 90dvh;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel);
}
.settings-panel::backdrop { background: #07131dbb; }
/* Occasional forms get spatial feedback; frequent cards, typing and keyboard actions stay instant. */
@media (prefers-reduced-motion: no-preference) {
  @supports (transition-behavior: allow-discrete) and (overlay: auto) {
    :root[data-input-method=pointer] :is(#new-deal-panel,#profile-panel,#settings-panel) {
      transition:opacity 200ms var(--ease-out),transform 200ms var(--ease-out),display 200ms allow-discrete,overlay 200ms allow-discrete;
    }
    :root[data-input-method=pointer] :is(#new-deal-panel,#profile-panel,#settings-panel):not([open]) {opacity:0;transform:translateY(6px) scale(.99);}
    @starting-style {
      :root[data-input-method=pointer] :is(#new-deal-panel,#profile-panel,#settings-panel)[open] {opacity:0;transform:translateY(6px) scale(.99);}
    }
  }
}
.settings-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  border-bottom: 1px solid var(--line);
}
.settings-panel h2 { font-size: 20px; margin: 0; }
.settings-content { padding: 20px 25px; }
.settings-form { display: grid; gap: 10px; max-width: 500px; padding: 25px; }
.settings-form label { font-size: 13px; color: var(--muted); }
.settings-form button { background: var(--blue); color:#fff; margin-top: 8px; }
.user-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.user-row input { max-width: 200px; }
.user-row button { font-size: 12px; }
.policy-block { padding: 15px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.policy-block h4 { margin: 10px 0; }
#settings-result, #profile-result { color: #acd5a7; }
#module-view {flex: 1;overflow: auto;}
.module-toolbar {display: flex;gap: 15px;align-items: center;padding: 18px 25px;border-bottom: 1px solid var(--line);}
.module-toolbar input[type=checkbox] {margin-right: 10px;}
.task-board {display: flex;min-height: 100%;overflow: auto;}
.task-column {flex: 1;min-width: 240px;padding: 15px;border-right: 1px solid var(--line);}
.task-column h3 {font-size: 15px;font-weight: 400;text-transform: uppercase;color: var(--muted);}
.task-card {display: block;width: 100%;padding: 15px;margin: 10px 0;text-align: left;background: var(--panel);}
.task-card span,.task-card small {display: block;margin-top: 8px;color: var(--muted);}
.task-card.overdue {border-left: 3px solid #db6068;}
.task-buttons {display: flex;gap: 10px;}
.inbox-row {display: grid;width: 100%;grid-template-columns: 200px 1fr 220px;gap: 20px;padding: 24px 30px;border: 0;border-bottom: 1px solid var(--line);border-radius: 0;text-align: left;}
.inbox-row span {white-space: nowrap;text-overflow: ellipsis;overflow: hidden;}
.inbox-row small {color: var(--muted);}
.analytics-preview {display: grid;grid-template-columns: repeat(4,1fr);gap: 20px;padding: 25px;}
.analytics-preview div {padding: 20px;background: var(--panel);}
.analytics-preview strong {font-size: 40px;}
#module-view>h2 {padding: 10px 25px;font-size: 18px;}
.contact-editor-layout {display: grid;grid-template-columns: 55% 45%;}
#contact-form,.contact-editor-layout>aside {padding: 20px 30px;}
#contact-form>label {display: block;color: var(--muted);margin: 20px 0 10px;}
.contact-method {display: flex;gap: 6px;margin: 10px 0;}
.contact-method input {min-width: 0;flex: 1;}
.contact-method select {max-width: 110px;}
#contact-savebar {position: sticky;bottom: 0;background: var(--panel);padding: 12px 0;display: flex;gap: 10px;}
#contact-savebar button:first-child {background: var(--blue);color:#fff;}
.linked-deal {display: block;text-align: left;width: 100%;margin: 10px 0;}
.linked-deal span {display: block;font-size: 13px;color: var(--muted);margin-top: 8px;}
#contact-name {padding: 0;border: 0;color: white;font-size: 16px;}
#contact-error {padding: 0 30px;color: #ed9ca5;}
