:root {
  --blue: #3558df;
  --blue-dark: #2542ba;
  --blue-soft: #eef2ff;
  --ink: #202637;
  --muted: #6e7687;
  --line: #e6e9f0;
  --bg: #f7f8fc;
  --white: #fff;
  --green: #238162;
  --orange: #a96512;
  --red: #c64150;
  --radius: 14px;
  font-family:
    "Golos Text",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9daff7;
  outline-offset: 3px;
}
button {
  background: none;
  border: 0;
}
input,
textarea,
select {
  border: 1px solid #dce0e9;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  padding: 11px 13px;
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #8b92a0;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #7b93ec;
  outline-color: #cad5ff;
}
textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.9px;
  line-height: 1.25;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  stroke-width: 1.7;
}
.flex {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.stack {
  display: grid;
  gap: 18px;
}
.tag {
  font-size: 12px;
  border-radius: 5px;
  padding: 4px 7px;
  white-space: nowrap;
  color: var(--muted);
  background: #f0f2f7;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 15px;
  border: 1px solid #dde1ea;
  border-radius: 9px;
  background: #fff;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  background: #f4f6fb;
}
.btn.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 3px 5px #3558df14;
}
.btn.primary:hover {
  background: var(--blue-dark);
}
.btn.soft {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: transparent;
}
.btn.text {
  border-color: transparent;
  background: none;
  color: var(--muted);
}
.btn.danger {
  color: var(--red);
}
.btn.sm {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--muted);
}
.icon-btn:hover {
  background: #eef1f8;
}
.demo-bar {
  position: relative;
  z-index: 20;
  min-height: 38px;
  background: #edf0f9;
  border-bottom: 1px solid #e0e5f1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 25px;
  font-size: 12px;
  color: #596582;
  gap: 12px;
}
.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7a8ac2;
}
.demo-bar button {
  font-size: 12px;
  color: #5267a5;
  padding: 3px 5px;
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: calc(100vh - 38px);
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: calc(100vh - 38px);
  min-height: 650px;
  display: flex;
  flex-direction: column;
  background: #fcfdff;
  border-right: 1px solid var(--line);
  padding: 28px 16px 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 30px;
  color: var(--ink);
}
.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: var(--blue);
  border-radius: 11px;
  color: #fff;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -1px;
}
.brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.3px;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  width: 100%;
  border-radius: 8px;
  color: #737b8b;
  font-weight: 450;
  text-align: left;
  min-height: 43px;
}
.nav-item:hover {
  background: #f1f4fc;
}
.nav-item.active {
  background: #eaf0ff;
  color: var(--blue);
  font-weight: 550;
}
.nav-item .count {
  margin-left: auto;
  min-width: 23px;
  text-align: center;
  background: #dce5ff;
  color: #4461bf;
  border-radius: 5px;
  font-size: 12px;
  padding: 3px 5px;
}
.nav-section {
  margin: 29px 12px 11px;
  font-size: 12px;
  color: #979ead;
}
.project-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--pc);
  flex-shrink: 0;
}
.side-project {
  padding: 10px 13px;
  font-size: 13px;
  color: #6b7383;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  min-height: 39px;
  text-align: left;
}
.side-project:hover {
  background: #f0f3fa;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.sidebar-foot {
  margin-top: 18px;
  padding: 16px 8px 0;
  border-top: 1px solid var(--line);
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: #eef1f8;
  color: #6d7b99;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.avatar.blue {
  background: #e6edff;
  color: #4968bc;
}
.avatar.orange {
  background: #fdf0e0;
  color: #b98139;
}
.avatar.purple {
  background: #f1ebfa;
  color: #9070b0;
}
.app-main {
  min-width: 0;
}
.topbar {
  height: 74px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 20px;
}
.breadcrumb {
  color: #8e96a4;
  font-size: 13px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumb strong {
  font-weight: 450;
  color: #525d72;
}
.role-switch {
  background: #f2f4f9;
  padding: 4px;
  display: flex;
  border-radius: 9px;
  gap: 3px;
}
.role-switch button {
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 12px;
  color: #7b8496;
}
.role-switch button.active {
  background: #fff;
  color: #3d4c6c;
  box-shadow: 0 1px 4px #20263715;
}
.bell {
  position: relative;
}
.bell:after {
  content: "";
  position: absolute;
  right: 9px;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border: 2px solid #fff;
  border-radius: 50%;
}
.content {
  max-width: 1590px;
  margin: auto;
  padding: 34px 36px 40px;
}
.page-head {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.page-head p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.date-label {
  font-size: 12px;
  color: #929aab;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 27px;
}
.stat {
  padding: 19px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  min-width: 0;
}
.stat > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.stat .stat-icon {
  color: #909bb6;
  background: #f4f6fc;
  padding: 6px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.stat-num {
  font-size: 31px;
  letter-spacing: -1.1px;
  font-weight: 550;
  display: block;
  margin-top: 1px;
  line-height: 1.2;
}
.stat small {
  color: #969dae;
  font-size: 12px;
  display: block;
  margin-top: 9px;
}
.stat.emphasis {
  background: #f0f4ff;
  border-color: #dce5ff;
}
.stat.emphasis .stat-num {
  color: var(--blue);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-pad {
  padding: 25px;
}
.tabbar {
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  padding: 0 23px;
  overflow-x: auto;
}
.tab {
  position: relative;
  white-space: nowrap;
  padding: 18px 0;
  color: #8790a0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tab.active {
  color: var(--blue);
  font-weight: 550;
}
.tab.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 3px;
}
.tab span {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #f0f2f7;
  color: #8790a0;
}
.tab.active span {
  background: #edf1ff;
  color: var(--blue);
}
.filters {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 350px;
}
.search input {
  width: 100%;
  padding-left: 38px;
  font-size: 13px;
  height: 38px;
}
.search .icon {
  position: absolute;
  top: 10px;
  left: 12px;
  color: #98a1b2;
  width: 17px;
  height: 17px;
}
.filters select {
  height: 38px;
  padding: 8px 31px 8px 11px;
  font-size: 12px;
}
.filter-extra {
  margin-left: auto;
  color: #8992a4;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font-size: 12px;
  color: #8d95a5;
  font-weight: 450;
  padding: 12px 18px;
  background: #fbfcfe;
  border-bottom: 1px solid #eef0f5;
  white-space: nowrap;
}
td {
  font-size: 13px;
  padding: 18px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tr.ticket-row {
  cursor: pointer;
  transition: background 0.12s;
}
tr.ticket-row:hover {
  background: #f8faff;
}
.ticket-title {
  font-weight: 500;
  color: #30394e;
  display: block;
  text-align: left;
  line-height: 1.45;
  padding: 0;
}
.ticket-title:hover {
  color: var(--blue);
}
.ticket-sub {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 5px;
  font-size: 11px;
  color: #969dae;
}
.unread {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
  margin-left: 5px;
}
.project-label {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
}
.project-mini {
  font-size: 10px;
  background: var(--pt);
  color: var(--pc);
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  width: 27px;
  height: 27px;
  font-weight: 550;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  white-space: nowrap;
  font-weight: 450;
}
.status.new {
  background: #eef1ff;
  color: #6277c8;
}
.status.working {
  background: #eaf1fe;
  color: #4780c6;
}
.status.waiting {
  background: #fff5e5;
  color: #b38a35;
}
.status.resolved {
  background: #e8f5ef;
  color: #478b71;
}
.status.closed {
  background: #f0f1f5;
  color: #8b91a0;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.priority {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: #9097a4;
}
.priority.high {
  color: #d58b3a;
}
.priority.urgent {
  color: #cd616c;
}
.bars {
  display: inline-flex;
  align-items: flex-end;
  height: 13px;
  gap: 2px;
}
.bars i {
  width: 3px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.3;
}
.bars i:first-child {
  height: 5px;
  opacity: 1;
}
.bars i:nth-child(2) {
  height: 9px;
}
.bars i:last-child {
  height: 13px;
}
.priority.high .bars i:nth-child(2),
.priority.urgent .bars i {
  opacity: 1;
}
.list-footer {
  padding: 15px 23px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #939cac;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.project-card:before {
  content: "";
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--pc);
}
.project-card:hover {
  border-color: #bccaf0;
}
.project-badge {
  height: 44px;
  width: 44px;
  display: grid;
  place-items: center;
  background: var(--pt);
  color: var(--pc);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
}
.project-card h3 {
  margin: 17px 0 7px;
}
.project-card p {
  font-size: 13px;
  color: var(--muted);
}
.project-card .card-bottom {
  margin-top: 23px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #8a94a7;
}
.section-head {
  margin: 25px 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-head h2 {
  font-size: 16px;
}
.section-head small {
  color: #939aab;
  margin-left: 10px;
  font-weight: 400;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.detail-title {
  max-width: 760px;
  margin-bottom: 24px;
}
.detail-title h1 {
  font-size: 27px;
  line-height: 1.4;
  margin: 10px 0 16px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8c96a8;
  font-size: 13px;
  padding: 0;
  margin-bottom: 20px;
}
.meta-rail .field {
  margin-bottom: 19px;
}
.meta-rail select {
  width: 100%;
  font-size: 13px;
}
.meta-rail label {
  font-size: 12px;
  display: block;
  color: #8e98aa;
  margin-bottom: 9px;
}
.meta-rail h3 {
  margin-bottom: 23px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 21px 0;
}
.conversation {
  padding: 25px;
}
.message {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.message:last-child {
  margin-bottom: 0;
}
.message-body {
  flex: 1;
  min-width: 0;
}
.message-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  margin: 6px 0 11px;
  flex-wrap: wrap;
}
.message-head strong {
  font-weight: 550;
}
.message-head time {
  color: #a0a7b5;
  font-size: 11px;
  margin-left: auto;
}
.message p {
  font-size: 14px;
  color: #586377;
  white-space: pre-line;
}
.message.note {
  background: #fffbef;
  margin: 0 -8px 24px;
  padding: 14px 8px;
  border-radius: 9px;
}
.event {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 7px 0 25px 46px;
  color: #8d97a7;
  font-size: 12px;
  flex-wrap: wrap;
}
.event .icon {
  width: 14px;
  height: 14px;
}
.file-chip {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: inline-flex;
  gap: 11px;
  align-items: center;
  font-size: 12px;
  color: #63738d;
  background: #fff;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}
.file-chip .icon {
  color: #8da0cc;
}
.file-chip small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  color: #9ba3b0;
}
.composer {
  padding: 20px 25px;
  border-top: 1px solid var(--line);
}
.compose-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 17px;
}
.compose-tab {
  font-size: 13px;
  padding: 0;
  color: #929bad;
}
.compose-tab.active {
  color: var(--blue);
  font-weight: 500;
}
.composer textarea {
  width: 100%;
  border: 0;
  padding: 0;
  min-height: 105px;
  font-size: 14px;
  outline-offset: 5px;
}
.composer .send-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.form-grid {
  display: grid;
  gap: 22px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 9px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.field .hint {
  font-size: 12px;
  color: #8b95a6;
  margin-top: 7px;
  line-height: 1.5;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.choice-tabs {
  display: flex;
  background: #f4f6fb;
  border-radius: 9px;
  padding: 4px;
  margin: 13px 0 18px;
  gap: 5px;
}
.choice-tabs button {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  color: #7d899e;
  font-size: 13px;
}
.choice-tabs button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 4px #25375c10;
}
.project-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.project-option {
  text-align: left;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 11px;
  align-items: center;
}
.project-option.selected {
  border-color: var(--blue);
  background: #f6f8ff;
  box-shadow: 0 0 0 1px var(--blue);
}
.project-option strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.project-option small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.match {
  border-radius: 9px;
  margin-top: 12px;
  padding: 13px 14px;
  background: #edf7f1;
  color: #448265;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.match.error {
  background: #fff0f1;
  color: #b15c64;
}
.match.info {
  background: #f1f4fc;
  color: #7385a7;
}
.dropzone {
  border: 1px dashed #cdd6e9;
  border-radius: 11px;
  background: #fafbff;
  padding: 25px 15px;
  text-align: center;
  cursor: pointer;
  display: block !important;
  font-weight: 400 !important;
}
.dropzone:hover,
.dropzone.drag {
  background: #eef3ff;
  border-color: var(--blue);
}
.dropzone .icon {
  color: #869bd0;
  margin-bottom: 9px;
  width: 25px;
  height: 25px;
}
.dropzone strong {
  color: var(--blue);
  font-weight: 500;
}
.dropzone p {
  color: #939dae;
  font-size: 12px;
  margin-top: 5px;
}
.hidden {
  display: none !important;
}
.notice {
  padding: 14px 16px;
  border-radius: 9px;
  background: #f1f5ff;
  font-size: 13px;
  color: #7584a5;
  line-height: 1.6;
}
.empty {
  padding: 65px 20px;
  text-align: center;
  color: #929bae;
}
.empty .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 15px;
}
.empty h3 {
  color: #53637f;
  margin-bottom: 10px;
}
.empty .btn {
  margin-top: 17px;
}
.channel-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px;
  background: #fff;
}
.channel-icon {
  height: 42px;
  width: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 15px;
  background: #edf2ff;
  color: #6b86cf;
}
.channel-icon.tg {
  background: #eaf5ff;
  color: #459aca;
}
.channel-icon.max {
  background: #f1edff;
  color: #8553cb;
  font-size: 12px;
  font-weight: 650;
}
.channel-card h3 {
  margin: 16px 0 8px;
}
.channel-card p {
  font-size: 13px;
  color: var(--muted);
  min-height: 43px;
}
.channel-card .btn {
  margin-top: 20px;
}
.switch {
  width: 35px;
  height: 20px;
  border-radius: 20px;
  background: #dbe0eb;
  padding: 2px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.switch:before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #2936581f;
  transition: transform 0.15s;
}
.switch[aria-checked="true"] {
  background: var(--blue);
}
.switch[aria-checked="true"]:before {
  transform: translateX(15px);
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child {
  border: 0;
}
.setting-row h3 {
  font-size: 14px;
  font-weight: 500;
}
.setting-row p {
  font-size: 12px;
  color: #8f99ac;
  margin-top: 5px;
}
.settings-layout {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 26px;
}
.settings-menu {
  display: grid;
  align-content: start;
  gap: 5px;
}
.settings-menu button {
  padding: 12px 14px;
  text-align: left;
  border-radius: 8px;
  color: #8590a2;
  font-size: 13px;
}
.settings-menu button.active {
  background: #eaf0ff;
  color: var(--blue);
}
.notifications {
  display: grid;
  gap: 12px;
}
.notification {
  display: flex;
  align-items: start;
  gap: 15px;
  padding: 21px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.notification.unseen {
  border-left: 3px solid #627eed;
}
.notification h3 {
  font-size: 14px;
  margin: 2px 0 6px;
}
.notification p {
  font-size: 13px;
  color: #8b95a7;
}
.notification time {
  margin-left: auto;
  font-size: 11px;
  white-space: nowrap;
  color: #9ca4b3;
}
.client-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 6%;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.client-head .brand {
  padding: 0;
}
.client-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.client-nav button {
  color: #8992a4;
  font-size: 13px;
  padding: 28px 0;
  white-space: nowrap;
}
.client-nav button.active {
  color: var(--blue);
  box-shadow: 0 2px var(--blue);
}
.client-main {
  max-width: 1180px;
  margin: auto;
  padding: 38px 30px 50px;
}
.client-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.client-welcome h1 {
  font-size: 30px;
}
.client-welcome p {
  margin-top: 9px;
  font-size: 14px;
  color: #8993a7;
}
.client-projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 32px;
}
.client-project {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.client-project h3 {
  margin-bottom: 6px;
}
.client-project p {
  color: #8a95a8;
  font-size: 12px;
}
.client-project .icon-btn {
  margin-left: auto;
}
.help-note {
  padding: 23px;
  background: #f0f4ff;
  border: 1px solid #e0e8fc;
  border-radius: 12px;
}
.help-note h3 {
  margin-bottom: 10px;
  font-size: 14px;
}
.help-note p {
  font-size: 13px;
  color: #8391aa;
}
.steps {
  display: grid;
  gap: 23px;
  margin-top: 23px;
}
.step {
  display: flex;
  gap: 12px;
  color: #8491a7;
  font-size: 13px;
  line-height: 1.5;
}
.step b {
  border: 1px solid #d6deef;
  background: #fff;
  border-radius: 50%;
  height: 25px;
  width: 25px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 400;
  font-size: 11px;
  color: #7b8daf;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #18223766;
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.modal {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 24px 80px #14214340;
  width: 560px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.modal-head h2 {
  font-size: 21px;
}
.modal .form-grid {
  gap: 18px;
}
.modal-actions {
  margin-top: 25px;
  display: flex;
  gap: 9px;
  justify-content: flex-end;
}
.modal.wide {
  width: 740px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #263551;
  color: #fff;
  border: 1px solid #ffffff24;
  border-radius: 10px;
  padding: 14px 21px;
  box-shadow: 0 5px 22px #24304b26;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
  font-size: 13px;
  max-width: 90vw;
  line-height: 1.5;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.concept-hero {
  padding: 32px;
  background: #edf2ff;
  border: 1px solid #dfe7fe;
  border-radius: 14px;
  margin-bottom: 22px;
}
.concept-hero h1 {
  max-width: 700px;
  font-size: 29px;
  margin-bottom: 15px;
}
.concept-hero p {
  color: #687ba3;
  max-width: 780px;
  font-size: 15px;
}
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.concept-copy p,
.concept-copy li {
  font-size: 14px;
  line-height: 1.8;
  color: #748199;
}
.concept-copy h2 {
  margin-bottom: 15px;
  font-size: 18px;
}
.concept-copy h3 {
  margin: 20px 0 7px;
}
.concept-copy ul {
  padding-left: 19px;
  margin: 10px 0;
}
.flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.flow span {
  padding: 9px 13px;
  background: #f0f3fc;
  border-radius: 7px;
  color: #6e82ad;
  font-size: 12px;
}
.flow .icon {
  width: 14px;
  color: #9aa8c3;
}
.login-layout {
  min-height: calc(100vh - 38px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-brand {
  background: #eef3ff;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand .brand {
  padding: 0;
}
.login-brand h1 {
  font-size: 44px;
  max-width: 480px;
  line-height: 1.23;
  margin-bottom: 22px;
  letter-spacing: -1.5px;
}
.login-brand p {
  color: #7b8cac;
  max-width: 380px;
  font-size: 16px;
}
.login-form {
  align-self: center;
  justify-self: center;
  width: 380px;
  max-width: 100%;
  padding: 30px;
}
.login-form h2 {
  font-size: 26px;
  margin-bottom: 13px;
}
.login-form > p {
  font-size: 13px;
  color: #8b95a7;
  margin-bottom: 28px;
}
.login-form .btn {
  width: 100%;
}
.mobile-menu {
  display: none;
}
.banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eef7f1;
  padding: 13px 16px;
  border-radius: 10px;
  color: #668877;
  font-size: 13px;
  margin-bottom: 22px;
}
.review-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.all-files {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.file-preview {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
}
.danger-text {
  color: var(--red);
}
.checkbox {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}
.filter-label {
  color: #8b96a8;
  font-size: 12px;
}
.project-detail-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}
.domain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.domain-row:last-child {
  border: 0;
}
.domain-row small {
  font-size: 12px;
  color: #9aa3b3;
}
.form-error {
  color: #b34c5c;
  font-size: 13px;
  margin: 12px 0;
}
.settings-description {
  margin: 8px 0 25px;
  font-size: 13px;
  color: #8692a8;
}
.channel-dot {
  width: 7px;
  height: 7px;
  background: #74a697;
  border-radius: 50%;
}
.no-wrap {
  white-space: nowrap;
}
@media (min-width: 1550px) {
  .content {
    padding: 42px 48px;
  }
  .topbar {
    padding: 0 48px;
  }
  .shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 209px minmax(0, 1fr);
  }
  .content {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col {
    grid-template-columns: minmax(0, 1fr) 265px;
  }
  .ticket-table .author-col {
    display: none;
  }
  .client-nav {
    gap: 17px;
  }
  .tabbar {
    gap: 19px;
  }
  .priority-col {
    display: none;
  }
}
@media (max-width: 950px) {
  .shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding: 22px 10px;
  }
  .brand {
    gap: 8px;
    padding-left: 8px;
  }
  .brand strong {
    font-size: 14px;
  }
  .brand small {
    font-size: 10px;
  }
  .brand-mark {
    width: 33px;
    height: 33px;
    font-size: 12px;
  }
  .nav-item {
    font-size: 13px;
  }
  .content {
    padding: 24px 20px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .meta-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .meta-rail .divider {
    display: none;
  }
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  .topbar {
    padding: 0 20px;
  }
  .breadcrumb {
    display: none;
  }
  .topbar {
    justify-content: flex-end;
  }
  .client-head {
    padding: 0 25px;
  }
  .client-head .role-switch {
    display: none;
  }
  .client-nav {
    gap: 18px;
  }
  .concept-grid {
    grid-template-columns: 1fr;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-menu {
    display: flex;
    overflow: auto;
    gap: 3px;
  }
  .settings-menu button {
    white-space: nowrap;
  }
  .login-brand {
    padding: 40px;
  }
  .login-brand h1 {
    font-size: 36px;
  }
}
@media (max-width: 720px) {
  .demo-bar {
    padding: 7px 14px;
    font-size: 10px;
    gap: 5px;
  }
  .demo-bar .demo-note {
    display: none;
  }
  .demo-bar button {
    font-size: 10px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    position: fixed;
    top: 37px;
    bottom: 0;
    height: calc(100vh - 37px);
    width: 245px;
    z-index: 40;
    box-shadow: 15px 0 50px #19304c25;
    min-height: 0;
  }
  .sidebar.open {
    display: flex;
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    height: 62px;
    padding: 0 16px;
    justify-content: space-between;
    gap: 5px;
  }
  .role-switch button {
    padding: 7px 10px;
    font-size: 11px;
  }
  .content {
    padding: 25px 16px 35px;
  }
  .page-head {
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 22px;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .page-head p {
    font-size: 12px;
    max-width: 245px;
  }
  .page-head .btn {
    font-size: 12px;
    padding: 9px 11px;
  }
  .stats {
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 15px;
  }
  .stat > div {
    font-size: 12px;
  }
  .stat-num {
    font-size: 27px;
  }
  .stat small {
    font-size: 10px;
  }
  .tabbar {
    padding: 0 16px;
    gap: 22px;
  }
  .tab {
    font-size: 12px;
    padding: 16px 0;
  }
  .filters {
    padding: 13px 15px;
    gap: 8px;
  }
  .search {
    max-width: none;
    flex-basis: 100%;
  }
  .filters select {
    font-size: 11px;
    max-width: 48%;
    flex: 1;
  }
  .filter-extra {
    display: none;
  }
  .ticket-table {
    display: block;
  }
  .ticket-table thead {
    display: none;
  }
  .ticket-table tbody {
    display: block;
  }
  .ticket-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    gap: 11px 8px;
  }
  .ticket-table tr:last-child {
    border-bottom: 0;
  }
  .ticket-table td {
    padding: 0;
    border: 0;
    white-space: normal;
  }
  .ticket-table .subject-col {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .ticket-table .updated-col {
    display: none;
  }
  .ticket-table .project-col {
    grid-column: 1;
    grid-row: 2;
  }
  .ticket-table .status-col {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }
  .ticket-title {
    font-size: 13px;
  }
  .ticket-sub {
    margin-top: 5px;
  }
  .ticket-table .project-label {
    font-size: 12px;
  }
  .list-footer {
    font-size: 10px;
    padding: 14px 16px;
  }
  .project-grid,
  .client-projects {
    grid-template-columns: 1fr;
  }
  .project-card {
    padding: 19px;
  }
  .panel-pad {
    padding: 20px;
  }
  .form-row,
  .project-options {
    grid-template-columns: 1fr;
  }
  .two-col {
    gap: 16px;
  }
  .meta-rail {
    grid-template-columns: 1fr;
  }
  .conversation {
    padding: 19px 15px;
  }
  .message {
    gap: 9px;
  }
  .message-head {
    gap: 7px;
  }
  .message-head time {
    width: 100%;
    margin: 0;
  }
  .message p {
    font-size: 13px;
  }
  .message .avatar {
    width: 29px;
    height: 29px;
    font-size: 9px;
  }
  .event {
    margin-left: 38px;
    font-size: 11px;
  }
  .composer {
    padding: 18px 15px;
  }
  .composer .send-row {
    flex-wrap: wrap;
  }
  .detail-title h1 {
    font-size: 24px;
  }
  .client-head {
    padding: 14px 17px;
    flex-wrap: wrap;
    gap: 13px;
  }
  .client-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    order: 3;
  }
  .client-nav button {
    font-size: 11px;
    padding: 11px 0;
  }
  .client-head > .avatar {
    margin-left: auto;
  }
  .client-main {
    padding: 25px 16px 35px;
  }
  .client-welcome {
    align-items: flex-start;
    gap: 15px;
  }
  .client-welcome h1 {
    font-size: 26px;
  }
  .client-welcome p {
    font-size: 12px;
  }
  .client-welcome .btn {
    font-size: 12px;
    padding: 10px;
  }
  .client-project {
    padding: 17px;
  }
  .client-projects {
    gap: 12px;
    margin-bottom: 24px;
  }
  .settings-menu button {
    font-size: 12px;
    padding: 10px;
  }
  .concept-hero {
    padding: 23px;
  }
  .concept-hero h1 {
    font-size: 24px;
  }
  .concept-hero p {
    font-size: 14px;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 25px;
  }
  .login-brand > div:nth-child(2) {
    display: none;
  }
  .login-brand > small {
    display: none;
  }
  .login-form {
    width: 100%;
    max-width: 420px;
    padding: 30px 24px;
    align-self: start;
  }
  .modal-overlay {
    padding: 12px;
  }
  .modal {
    padding: 23px;
    max-height: 92vh;
  }
  .modal-head h2 {
    font-size: 20px;
  }
  .notification {
    padding: 17px;
    gap: 10px;
  }
  .notification time {
    font-size: 10px;
  }
  .notification h3 {
    font-size: 13px;
  }
  .notification p {
    font-size: 12px;
  }
  .table-wrap:not(:has(.ticket-table)) {
    overflow-x: auto;
  }
  .client-table {
    min-width: 650px;
  }
  .channel-grid {
    grid-template-columns: 1fr !important;
  }
  .page-head .date-label {
    display: none;
  }
  .settings-events th,
  .settings-events td {
    padding: 13px 10px;
  }
  .settings-events th {
    font-size: 11px;
  }
  .settings-events td {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Regularly used controls and status labels remain readable at normal scale. */
.status {
  font-size: 13px;
}
.ticket-title {
  font-size: 14px;
}
.tab {
  font-size: 14px;
}
.project-label {
  font-size: 14px;
}
.priority {
  font-size: 13px;
}
.message p {
  font-size: 15px;
}
.nav-item {
  font-size: 14px;
}
.client-nav {
  gap: 18px;
}
.client-nav button {
  font-size: 13px;
}
.concept-copy p,
.concept-copy li {
  font-size: 15px;
}
.ticket-table .ticket-sub .icon {
  width: 14px;
  height: 14px;
}
@media (max-width: 1200px) {
  .status {
    font-size: 12px;
  }
  .tab {
    font-size: 13px;
  }
  .client-head .role-switch {
    display: none;
  }
}
@media (max-width: 720px) {
  .status {
    font-size: 12px;
  }
  .tab {
    font-size: 13px;
  }
  .ticket-title {
    font-size: 14px;
  }
  .client-nav button {
    font-size: 12px;
  }
  .project-label {
    font-size: 13px;
  }
  .message p {
    font-size: 14px;
  }
  .conversation .tabbar {
    padding: 0;
  }
  .conversation .tabbar .small {
    display: none;
  }
  .page-head p {
    max-width: none;
  }
  .client-nav {
    overflow: auto;
    justify-content: flex-start;
    gap: 20px;
  }
  .form-grid > .form-row {
    gap: 20px;
  }
}
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shell {
  min-height: 100vh;
}
.sidebar {
  height: 100vh;
}
.boot-state {
  max-width: 560px;
  margin: 15vh auto;
  padding: 30px;
  text-align: center;
  display: grid;
  gap: 20px;
}
.boot-state p {
  color: var(--muted);
}
.public-footer {
  max-width: 1180px;
  margin: auto;
  padding: 0 30px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
.client-nav a {
  color: #8992a4;
  font-size: 13px;
  padding: 28px 0;
  white-space: nowrap;
}
.client-nav a.active {
  color: var(--blue);
  box-shadow: 0 2px var(--blue);
}
.settings-menu a {
  padding: 12px 14px;
  border-radius: 8px;
  color: #8590a2;
  font-size: 13px;
}
.settings-menu a.active {
  background: #eaf0ff;
  color: var(--blue);
}
.setup-notice {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 23px;
}
.setup-notice a {
  margin-left: auto;
  white-space: nowrap;
}
.meta-info h3 {
  margin-bottom: 22px;
}
.meta-info .field {
  margin: 20px 0;
}
.meta-info select {
  width: 100%;
}
.meta-info label {
  font-size: 12px;
  color: var(--muted);
}
.profile-signature {
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  color: #758199;
}
.message-signature {
  white-space: pre-line;
  margin-top: 20px !important;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 12px !important;
  color: #8d97a8 !important;
}
.success-panel {
  max-width: 700px;
  margin: 35px auto;
  text-align: center;
  padding: 45px 35px;
}
.success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 23px;
  background: #eaf5ee;
  color: #4d9675;
}
.form-send p {
  max-width: 365px;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.secret-display {
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 1px;
  background: var(--blue-soft);
  padding: 18px;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.compose-tabs label {
  font-size: 13px;
  color: var(--muted);
  gap: 6px;
}
.compose-tabs input {
  accent-color: var(--blue);
}
.channel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat-num {
  margin-top: 12px;
}
.settings-description {
  line-height: 1.65;
}
.profile-signature:empty {
  display: none;
}
.brand:focus-visible {
  outline-offset: 4px;
}
.nav-item {
  text-decoration: none;
}
@media (max-width: 950px) {
  .settings-menu a {
    white-space: nowrap;
  }
  .channel-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .sidebar {
    top: 0;
    height: 100vh;
  }
  .setup-notice {
    font-size: 12px;
    flex-wrap: wrap;
  }
  .setup-notice span {
    flex: 1;
  }
  .client-nav a {
    font-size: 12px;
    padding: 12px 0;
  }
  .public-footer {
    padding: 0 16px 24px;
  }
  .form-send {
    flex-direction: column;
    gap: 18px;
  }
  .form-send .btn {
    width: 100%;
  }
  .success-panel {
    padding: 25px;
    margin: 15px auto;
  }
  .success-panel h1 {
    font-size: 25px;
  }
  .settings-menu a {
    padding: 10px;
    font-size: 12px;
  }
  .panel .tabbar > .small {
    display: none;
  }
  .project-detail-head h1 {
    font-size: 24px;
  }
  .modal .form-grid {
    gap: 17px;
  }
  .meta-info h3 {
    margin-bottom: 15px;
  }
}
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: #f5f7fc;
}
.auth-page > .brand {
  padding: 0 0 28px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 45px #25387b08;
}
.auth-card .small {
  margin-top: 24px;
}
.auth-card .btn {
  width: 100%;
}
