:root {
  color-scheme:light;
  --ink:#1b303c;
  --muted:#7a8790;
  --line:#e3e9ec;
  --green:#168774;
  --green-dark:#116c5d;
  --green-soft:#e8f4f0;
  --paper:#f6f8f9;
  --nav:#142d39;
  --shadow:0 10px 40px #102b3814;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px;
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  color:var(--ink);
  background:var(--paper)
}
[hidden] {
  display:none!important
}
button,input,textarea,select {
  font:inherit;
  color:inherit
}
button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
button:disabled {
  cursor:wait;
  opacity:.6
}
a {
  color:var(--green);
  text-decoration:none
}
a:hover {
  text-decoration:underline
}
button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:3px solid #5bbfae;
  outline-offset:3px
}
input:focus,textarea:focus,select:focus {
  outline:2px solid #16877430;
  border-color:var(--green)
}
input,textarea,select {
  background:#fff;
  border:1px solid #dce4e8;
  border-radius:7px;
  padding:10px 12px;
  min-width:0
}
textarea {
  resize:vertical;
  line-height:1.6
}
input::placeholder,textarea::placeholder {
  color:#99a4ac
}
button {
  border:0;
  background:none
}
h1,h2,h3,p {
  margin:0
}
svg {
  width:18px;
  height:18px;
  flex:none;
  stroke:currentColor;
  fill:none;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  vertical-align:middle
}
[data-icon] {
  display:inline-flex;
  align-items:center;
  justify-content:center
}
label {
  display:block;
  font-size:12px;
  font-weight:600;
  color:#667783;
  margin-bottom:7px
}
.muted {
  color:var(--muted);
  line-height:1.65
}
.primary,.secondary,.text-button,.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:38px;
  padding:9px 15px;
  border-radius:7px;
  font-weight:550;
  font-size:13px;
  white-space:nowrap
}
.primary {
  background:var(--green);
  color:#fff;
  box-shadow:0 2px 3px #12706114
}
.primary:hover {
  background:var(--green-dark)
}
.secondary {
  background:#fff;
  border:1px solid var(--line)
}
.secondary:hover {
  border-color:#becdd3;
  background:#f9fbfb
}
.text-button {
  color:var(--muted);
  padding-inline:8px
}
.text-button:hover {
  background:#e8eef0;
  color:var(--ink)
}
.icon-button {
  width:34px;
  min-height:34px;
  padding:6px;
  color:#73848d
}
.icon-button:hover {
  background:#eaf0f1
}
.wide {
  width:100%
}
.danger {
  color:#b34444
}
.eyebrow {
  color:#81c6b8;
  font-size:10px;
  font-weight:650;
  letter-spacing:1.8px
}
.eyebrow.dark {
  color:#80939c;
  font-size:9px;
  letter-spacing:1.4px
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link {
  position:fixed;
  left:20px;
  top:-100px;
  z-index:100;
  background:#fff;
  padding:12px
}
.skip-link:focus {
  top:12px
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:25px;
  font-weight:700;
  letter-spacing:-.8px;
  color:white
}
.brand:hover {
  text-decoration:none
}
.brand-mark {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--green);
  color:#fff;
  width:34px;
  height:35px;
  border-radius:9px;
  font-size:29px;
  font-weight:750;
  line-height:1;
  letter-spacing:-2px;
  padding-right:2px
}
.brand-dot {
  color:#54c0a8
}
.avatar {
  width:29px;
  height:29px;
  background:#eaf1f5;
  color:#4a6576;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  font-size:10px;
  font-weight:700;
  flex:none
}
.live-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#59b99f;
  display:inline-block;
  flex:none
}
.startup {
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  color:var(--muted)
}
/* Вход не зависит от внешних шрифтов, изображений или CDN. */
.login-screen {
  display:grid;
  grid-template-columns:minmax(320px,44%) 1fr;
  min-height:100vh
}
.login-story {
  background:var(--nav);
  padding:45px 52px;
  color:white;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:65px;
  overflow:hidden
}
.login-story h1 {
  font-size:clamp(34px,3.8vw,60px);
  line-height:1.1;
  letter-spacing:-2px;
  margin:20px 0 24px
}
.login-story p {
  color:#a6bcc6;
  line-height:1.8;
  font-size:14px
}
.story-foot {
  font-size:11px;
  color:#78949f
}
.login-illustration {
  display:flex;
  gap:13px;
  margin:45px 0 15px;
  transform:rotate(-5deg);
  opacity:.8
}
.login-illustration>div {
  background:#ffffff08;
  border:1px solid #ffffff12;
  width:110px;
  border-radius:9px;
  padding:12px;
  flex:none
}
.login-illustration i {
  display:block;
  height:5px;
  width:45%;
  border-radius:3px;
  background:#5fae9d;
  margin-bottom:18px
}
.login-illustration b {
  display:block;
  background:#ffffff0e;
  border:1px solid #ffffff0a;
  border-radius:6px;
  height:64px;
  margin-bottom:9px
}
.login-illustration>div:nth-child(2) {
  transform:translateY(20px)
}
.login-content {
  display:grid;
  place-items:center;
  padding:50px 30px;
  background:#fff
}
.login-box {
  width:min(380px,100%)
}
.login-symbol {
  background:var(--green-soft);
  color:var(--green);
  border-radius:12px;
  width:48px;
  height:48px;
  margin-bottom:24px
}
.login-symbol svg {
  width:24px;
  height:24px
}
.login-box h2 {
  font-size:22px;
  letter-spacing:-.5px;
  margin-bottom:10px
}
.login-box .muted {
  font-size:13px;
  margin-bottom:28px
}
.login-box input {
  width:100%;
  height:45px;
  margin-bottom:16px
}
.login-box .primary {
  height:44px
}
.form-error {
  font-size:12px;
  color:#af3f3f;
  line-height:1.6;
  margin-top:15px
}
.admin-login {
  border-top:1px solid var(--line);
  margin-top:26px;
  padding-top:20px;
  font-size:12px;
  color:var(--muted)
}
.admin-login summary {
  cursor:pointer
}
.admin-login form {
  margin-top:18px
}
.login-help {
  font-size:11px;
  color:#91a0a9;
  line-height:1.8;
  margin-top:26px
}
.notice {
  padding:12px;
  background:var(--green-soft);
  border-radius:7px;
  font-size:12px;
  line-height:1.7;
  color:#347564;
  margin-bottom:18px
}
#login-code {
  text-align:center;
  font-size:24px;
  letter-spacing:10px;
  font-variant-numeric:tabular-nums
}
/* Каркас */
.app-shell {
  display:flex;
  min-height:100vh
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:232px;
  background:var(--nav);
  color:#b3c5cc;
  display:flex;
  flex-direction:column;
  padding:30px 17px 15px;
  z-index:20
}
.sidebar .brand {
  padding:0 12px
}
.workspace-label {
  display:flex;
  gap:9px;
  align-items:center;
  margin:37px 10px 31px;
  font-size:11px;
  color:#e1eaee;
  line-height:1.7
}
.workspace-label small {
  display:block;
  font-size:10px;
  color:#78939f
}
.workspace-monogram {
  background:#294550;
  color:#acccc7;
  border:1px solid #3b5760;
  border-radius:7px;
  width:30px;
  height:31px;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:10px;
  font-weight:600
}
.nav-heading {
  font-size:9px;
  font-weight:600;
  letter-spacing:1.2px;
  color:#728d99;
  margin:0 12px 12px;
  display:flex;
  justify-content:space-between
}
.nav-heading span {
  font-size:10px;
  letter-spacing:0
}
.nav-link {
  display:flex;
  align-items:center;
  gap:9px;
  width:100%;
  padding:11px 12px;
  margin-bottom:4px;
  border-radius:7px;
  font-size:12px;
  color:#a6bdc6;
  text-align:left;
  line-height:1.4
}
.nav-link .team-label {
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.nav-link svg {
  width:16px;
  height:16px
}
.nav-link:hover {
  background:#203d49;
  text-decoration:none
}
.nav-link.active {
  background:#234c4d;
  color:#d5eee8
}
.nav-link.active svg {
  color:#74c6af
}
.nav-count {
  font-size:10px;
  min-width:21px;
  text-align:center;
  background:#ffffff0b;
  color:#90b4b8;
  border-radius:4px;
  padding:2px 5px
}
.sidebar #project-nav {
  overflow-y:auto
}
.sidebar-empty {
  font-size:11px;
  line-height:1.7;
  margin:14px 12px;
  color:#91a7b0
}
.sidebar-bottom {
  margin-top:auto;
  padding-top:25px
}
.sidebar-info {
  display:flex;
  align-items:center;
  gap:7px;
  color:#78969f;
  font-size:9px;
  padding:17px 12px 20px;
  white-space:nowrap
}
.profile-button {
  display:flex;
  align-items:center;
  text-align:left;
  gap:10px;
  color:#ecf2f4;
  width:100%;
  border-top:1px solid #ffffff0e;
  padding:17px 8px 0
}
.profile-button .avatar {
  background:#36515b;
  color:#b8d8d3;
  width:32px;
  height:32px
}
.profile-button>span:nth-child(2) {
  flex:1;
  min-width:0
}
.profile-button b {
  display:block;
  font-size:11px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:550
}
.profile-button small {
  font-size:9px;
  display:block;
  margin-top:4px;
  color:#77949f
}
.profile-button svg {
  width:15px;
  height:15px;
  color:#88a1ac
}
.main-shell {
  margin-left:232px;
  min-width:0;
  width:calc(100% - 232px)
}
.topbar {
  height:67px;
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:0 30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.breadcrumb {
  display:flex;
  align-items:center;
  gap:11px;
  color:#8c9ba4;
  font-size:11px;
  min-width:0
}
.breadcrumb svg {
  width:15px;
  height:15px
}
.breadcrumb strong {
  color:#536976;
  font-weight:500;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.separator {
  color:#cad3d8
}
.topbar-right {
  display:flex;
  align-items:center;
  gap:13px;
  flex:none
}
.connection {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  color:#8a9a9f
}
.connection.offline {
  color:#b9794b
}
.connection.offline .live-dot {
  background:#d29d5b
}
.mobile-menu {
  display:none
}
#workspace {
  padding:30px 30px 18px;
  outline:none
}
.board-heading {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center
}
.board-heading h1 {
  font-size:27px;
  font-weight:650;
  letter-spacing:-.8px;
  margin:8px 0 7px
}
.board-heading p {
  font-size:11px
}
.board-heading .primary {
  font-size:12px;
  padding:10px 14px
}
.board-summary {
  display:flex;
  align-items:center;
  gap:26px;
  margin:24px 0 28px;
  font-size:11px;
  color:#8a99a2;
  flex-wrap:wrap
}
.summary-item {
  display:flex;
  align-items:center;
  gap:8px
}
.summary-item svg {
  width:15px;
  height:15px;
  color:#96a5ad
}
.summary-item b {
  color:#4a626f;
  font-weight:650
}
.summary-item.urgent b {
  color:#bd5b4e
}
.summary-separator {
  width:1px;
  height:15px;
  background:var(--line)
}
.board-tabs {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #dce4e8;
  gap:16px
}
.tab-group {
  display:flex;
  gap:25px
}
.tab {
  position:relative;
  display:flex;
  gap:8px;
  align-items:center;
  padding:0 0 14px;
  color:#8b9aa2;
  font-size:12px
}
.tab svg {
  width:14px;
  height:14px
}
.tab.active {
  color:var(--ink);
  font-weight:600
}
.tab.active:after {
  content:"";
  position:absolute;
  bottom:-1px;
  left:0;
  right:0;
  height:2px;
  background:var(--green);
  border-radius:3px
}
.tab>span:not([data-icon]) {
  font-size:10px;
  min-width:20px;
  background:#e5eeec;
  color:#518379;
  border-radius:4px;
  padding:1px 5px
}
.view-switch {
  display:flex;
  gap:2px;
  background:#eaf0f2;
  padding:3px;
  border:1px solid #e3e9ec;
  border-radius:6px;
  margin-bottom:9px
}
.view-switch button {
  padding:3px 8px;
  border-radius:4px;
  color:#95a4ac
}
.view-switch svg {
  width:15px;
  height:15px
}
.view-switch .selected {
  background:#fff;
  box-shadow:0 1px 4px #203a4512;
  color:#426d6a
}
.filters {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  padding:19px 0 22px
}
.search-field {
  display:flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:7px;
  padding:0 10px;
  flex:1;
  min-width:195px;
  max-width:370px;
  height:35px;
  color:#9aa9b0
}
.search-field input {
  border:0;
  outline:none;
  padding:8px 0;
  flex:1;
  box-shadow:none;
  font-size:11px;
  width:100%;
  background:none
}
.search-field input:focus {
  outline:none
}
.search-field:focus-within {
  border-color:var(--green);
  box-shadow:0 0 0 2px #16877415
}
.search-field svg {
  width:15px;
  height:15px
}
.search-field kbd {
  border:1px solid #e4e9eb;
  background:#f8fafb;
  padding:0 4px;
  border-radius:3px;
  font-size:10px
}
.filters>select,.extra-filters select {
  font-size:11px;
  padding:8px 25px 8px 10px;
  height:35px;
  max-width:190px;
  border-color:var(--line)
}
.filters>button {
  min-height:35px;
  font-size:11px;
  padding:8px 10px
}
.filter-toggle svg {
  width:13px;
  height:13px
}
.filter-toggle[aria-expanded=true] {
  background:var(--green-soft);
  color:var(--green)
}
#extra-filter-dot {
  width:5px;
  height:5px;
  background:var(--green);
  border-radius:50%
}
.extra-filters {
  display:flex;
  gap:8px;
  width:100%;
  padding-top:4px
}
.error-banner {
  background:#fff5ec;
  color:#99643e;
  border:1px solid #f0d9c5;
  border-radius:7px;
  padding:12px 15px;
  margin-bottom:16px;
  font-size:12px;
  line-height:1.6
}
.board-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-top:17px;
  font-size:10px;
  color:#9ba8ae;
  line-height:1.6
}
/* Доска и компактный список */
.kanban {
  display:flex;
  align-items:flex-start;
  gap:16px;
  overflow-x:auto;
  padding-bottom:18px;
  min-height:45vh;
  scrollbar-width:thin;
  scrollbar-color:#c8d4d9 transparent
}
.column {
  flex:1 0 254px;
  min-width:254px;
  max-width:340px;
  background:#edf1f3;
  border:1px solid #e7ecee;
  border-radius:10px;
  overflow:hidden;
  transition:background .12s,border-color .12s
}
.column.drag-over {
  background:#deefea;
  border-color:#73b4a5
}
.column-head {
  display:flex;
  align-items:center;
  gap:8px;
  padding:14px 12px 11px;
  font-size:11px;
  font-weight:650
}
.status-dot {
  width:7px;
  height:7px;
  background:#73a8ca;
  border-radius:50%;
  flex:none
}
.status-dot.in_progress {
  background:#d5a15b
}
.status-dot.waiting_user {
  background:#a18ac6
}
.status-dot.done {
  background:#60ac92
}
.status-dot.archived {
  background:#98a4ad
}
.status-dot.orphaned {
  background:#d07666
}
.column-head .count {
  font-size:10px;
  color:#98a7ae;
  background:#e2e8eb;
  border-radius:4px;
  padding:1px 5px;
  margin-left:2px;
  font-weight:500
}
.column-head svg {
  margin-left:auto;
  width:14px;
  height:14px;
  color:#a8b5bc
}
.column-cards {
  padding:2px 8px 8px;
  min-height:135px
}
.task-card {
  position:relative;
  display:block;
  text-align:left;
  width:100%;
  padding:13px 12px 11px;
  margin-bottom:9px;
  border:1px solid #e0e7ea;
  background:#fff;
  border-radius:8px;
  box-shadow:0 1px 2px #18384606;
  transition:box-shadow .15s,border-color .15s,transform .15s;
  cursor:pointer
}
.task-card:hover {
  border-color:#adc5c2;
  box-shadow:0 4px 13px #17333e0b;
  transform:translateY(-1px)
}
.task-card:active {
  cursor:grabbing
}
.task-card.dragging {
  opacity:.45;
  transform:rotate(1deg)
}
.task-card.drop-before {
  border-top:3px solid var(--green);
  padding-top:11px
}
.task-card.locked {
  cursor:pointer
}
.task-card.unread:after {
  position:absolute;
  right:12px;
  bottom:13px;
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--green)
}
.card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  margin-bottom:9px
}
.ticket-number {
  color:#9eabb2;
  font-size:10px;
  font-weight:500;
  letter-spacing:.2px
}
.priority {
  font-size:9px;
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:2px 6px;
  border-radius:4px;
  white-space:nowrap;
  background:#f2f4f5;
  color:#97a3ac;
  font-weight:500
}
.priority.high {
  background:#fff3e4;
  color:#b7833f
}
.priority.critical {
  background:#fbeae7;
  color:#bd6555
}
.priority.low {
  background:#eff4f8;
  color:#8c9dad
}
.priority svg {
  width:10px;
  height:10px;
  stroke-width:2
}
.task-card h3 {
  font-size:12px;
  font-weight:600;
  line-height:1.55;
  letter-spacing:-.05px;
  color:#334c59;
  margin-bottom:10px;
  overflow-wrap:anywhere
}
.category {
  font-size:9px;
  padding:3px 6px;
  border-radius:4px;
  background:#edf4fa;
  color:#7195b0;
  display:inline-flex;
  max-width:100%;
  line-height:1.4
}
.category.hardware {
  background:#edf4fa;
  color:#7398b2
}
.category.software {
  background:#f2effa;
  color:#9a85b2
}
.category.account {
  background:#eaf3f1;
  color:#6e9f91
}
.category.network {
  background:#fcf2e7;
  color:#b99b74
}
.category.print {
  background:#faeff4;
  color:#b28b9e
}
.category.other {
  background:#f0f3f5;
  color:#879aa5
}
.card-origin {
  display:flex;
  align-items:flex-start;
  gap:5px;
  color:#98a6ae;
  font-size:9px;
  margin-top:10px;
  line-height:1.5;
  overflow-wrap:anywhere
}
.card-origin svg {
  width:11px;
  height:11px;
  margin-top:1px
}
.card-bottom {
  display:flex;
  align-items:center;
  gap:6px;
  border-top:1px solid #f1f4f5;
  padding-top:10px;
  margin-top:12px;
  color:#a5b1b9;
  font-size:9px;
  min-height:32px
}
.card-bottom .avatar {
  width:23px;
  height:23px;
  font-size:8px
}
.card-assignee {
  max-width:105px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#80949e;
  font-size:9px
}
.card-counters {
  display:flex;
  align-items:center;
  gap:7px;
  margin-left:auto;
  padding-right:7px
}
.card-counters>span {
  display:flex;
  gap:3px;
  align-items:center;
  white-space:nowrap
}
.card-counters svg {
  width:11px;
  height:11px
}
.unassigned-avatar {
  width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px dashed #d5dfe3;
  border-radius:50%;
  color:#a9b7bf
}
.unassigned-avatar svg {
  width:12px;
  height:12px
}
.empty-column {
  font-size:10px;
  line-height:1.8;
  text-align:center;
  color:#a7b5bc;
  padding:21px 10px
}
.empty-column svg {
  display:block;
  margin:0 auto 7px;
  width:23px;
  height:23px;
  opacity:.5
}
.column-foot {
  padding:0 12px 10px;
  font-size:9px;
  color:#a3b1b9
}
.empty-state {
  text-align:center;
  border:1px dashed #cdd9df;
  border-radius:10px;
  padding:65px 25px;
  background:#ffffff70;
  color:#7f959e
}
.empty-state>svg {
  width:34px;
  height:34px;
  color:#8bafa7;
  margin-bottom:17px
}
.empty-state h2 {
  font-size:18px;
  color:#3c5967;
  margin-bottom:10px
}
.empty-state p {
  font-size:12px;
  line-height:1.8;
  max-width:460px;
  margin:auto
}
.empty-state .primary {
  margin-top:20px
}
.ticket-table-wrap {
  overflow-x:auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px
}
.ticket-table {
  border-collapse:collapse;
  width:100%;
  font-size:11px;
  min-width:760px
}
.ticket-table th {
  text-align:left;
  font-size:10px;
  font-weight:500;
  color:#8b9da6;
  background:#fafcfc;
  white-space:nowrap
}
.ticket-table td,.ticket-table th {
  padding:13px 14px;
  border-bottom:1px solid #eef2f3;
  vertical-align:middle
}
.ticket-table tbody tr:last-child td {
  border-bottom:0
}
.ticket-table tbody tr:hover {
  background:#f7fbfa
}
.ticket-table .title-cell {
  max-width:330px
}
.ticket-table .title-cell button {
  font-weight:550;
  font-size:12px;
  text-align:left;
  line-height:1.5;
  padding:0;
  color:#3e5b69
}
.ticket-table small {
  display:block;
  font-size:10px;
  color:#a0aeb6;
  margin-top:5px
}
.status-label {
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  font-size:10px;
  color:#7b8e99
}
.unread-label {
  background:var(--green-soft);
  color:var(--green);
  font-size:9px;
  padding:2px 5px;
  border-radius:4px;
  margin-left:5px
}
/* Карточка заявки */
dialog {
  border:1px solid #dce6e9;
  border-radius:13px;
  padding:0;
  box-shadow:0 25px 90px #102f3940;
  color:var(--ink);
  max-height:92vh
}
dialog::backdrop {
  background:#0e293a70;
  backdrop-filter:blur(3px)
}
.ticket-dialog {
  width:min(1060px,95vw)
}
.dialog-top {
  display:flex;
  align-items:center;
  gap:11px;
  padding:15px 24px;
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:3;
  min-height:63px
}
.dialog-top .ticket-number {
  font-size:12px;
  color:#7a929e
}
.dialog-top .dialog-top-actions {
  display:flex;
  gap:3px;
  margin-left:auto
}
.dialog-top h2 {
  font-size:16px;
  font-weight:600
}
.dialog-top .source {
  font-size:10px;
  color:#9aa9b0;
  border-left:1px solid var(--line);
  padding-left:11px
}
.ticket-body {
  display:grid;
  grid-template-columns:minmax(0,1fr) 286px;
  max-height:calc(92vh - 63px);
  overflow-y:auto
}
.ticket-main {
  padding:26px 28px 20px;
  min-width:0
}
.ticket-side {
  background:#f8fafb;
  border-left:1px solid var(--line);
  padding:25px 23px
}
.ticket-main h1 {
  font-size:23px;
  line-height:1.4;
  letter-spacing:-.5px;
  margin-bottom:18px;
  overflow-wrap:anywhere
}
.detail-section {
  margin-bottom:25px
}
.section-label {
  font-size:10px;
  letter-spacing:.7px;
  text-transform:uppercase;
  color:#8b9da7;
  font-weight:600;
  margin-bottom:10px;
  display:flex;
  align-items:center;
  gap:7px
}
.section-label svg {
  width:14px;
  height:14px
}
.description {
  white-space:pre-wrap;
  line-height:1.8;
  font-size:12px;
  color:#5f7582;
  overflow-wrap:anywhere
}
.auto-summary {
  background:#edf4f7;
  border:1px solid #dfeaf0;
  padding:13px 15px;
  border-radius:7px;
  font-size:11px;
  line-height:1.8;
  color:#78929f
}
.auto-summary summary {
  cursor:pointer;
  font-size:10px;
  font-weight:550
}
.auto-summary p {
  margin-top:8px;
  white-space:pre-wrap
}
.hr-summary {
  font-size:11px;
  border:1px solid var(--line);
  border-radius:7px;
  padding:12px 14px;
  color:#7a8e99
}
.hr-summary summary {
  cursor:pointer;
  font-weight:550
}
.hr-task {
  border-top:1px solid var(--line);
  margin-top:10px;
  padding-top:10px;
  line-height:1.8
}
.hr-task p {
  white-space:pre-wrap
}
.attachment-list {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}
.attachment-link {
  display:flex;
  gap:8px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:7px;
  padding:9px 11px;
  font-size:11px;
  max-width:100%;
  color:#5b7b87;
  background:#fff
}
.attachment-link span {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis
}
.attachment-link small {
  display:block;
  font-size:9px;
  color:#9eacb4;
  margin-top:4px
}
.attachment-link svg {
  color:#9eafb8;
  width:16px;
  height:16px
}
.attachment-link.unavailable {
  opacity:.6
}
.conversation-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  margin:27px 0 17px;
  padding-bottom:12px
}
.conversation-heading h2 {
  font-size:13px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:7px
}
.conversation-heading svg {
  width:15px;
  height:15px;
  color:#8eaaa9
}
.conversation-heading select {
  padding:5px 8px;
  font-size:10px;
  border:0;
  background:none;
  color:#8b9ca5
}
.timeline {
  display:flex;
  flex-direction:column;
  gap:16px
}
.message {
  display:flex;
  align-items:flex-start;
  gap:9px
}
.message .avatar {
  width:27px;
  height:27px;
  font-size:9px
}
.message-content {
  min-width:0;
  flex:1
}
.message-meta {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:10px;
  color:#a1aeb6;
  line-height:1.5;
  flex-wrap:wrap
}
.message-meta b {
  color:#5d7581;
  font-size:11px;
  font-weight:550
}
.message-meta time {
  margin-left:auto;
  font-size:9px;
  white-space:nowrap
}
.message-text {
  white-space:pre-wrap;
  font-size:12px;
  line-height:1.8;
  margin-top:6px;
  color:#607783;
  overflow-wrap:anywhere
}
.message.note .message-content {
  background:#fff8e9;
  border:1px solid #f2e8ce;
  border-radius:7px;
  padding:10px 12px
}
.message.note .message-meta b {
  color:#9c8960
}
.message.note .note-label {
  font-size:9px;
  color:#b19a66
}
.system-message {
  display:flex;
  align-items:flex-start;
  gap:9px;
  font-size:10px;
  line-height:1.8;
  color:#a0aeb6;
  padding-left:5px
}
.system-message svg {
  width:12px;
  height:12px;
  margin-top:3px;
  color:#b1c0c8;
  flex:none
}
.system-message time {
  font-size:9px;
  white-space:nowrap;
  margin-left:auto;
  color:#b4bfc5
}
.composer {
  background:#fff;
  border:1px solid #d7e2e5;
  border-radius:8px;
  margin-top:23px;
  overflow:hidden
}
.composer-tabs {
  display:flex;
  align-items:center;
  gap:15px;
  padding:11px 13px 0
}
.composer-tab {
  font-size:10px;
  padding:0 0 7px;
  color:#9aaab3;
  border-bottom:2px solid transparent
}
.composer-tab.active {
  color:var(--green);
  border-color:var(--green);
  font-weight:600
}
.composer.is-note {
  background:#fffdf7;
  border-color:#e4d9bb
}
.composer.is-note .composer-tab.active {
  color:#a58b50;
  border-color:#c8ac6d
}
.composer textarea {
  border:0;
  background:none;
  outline:none;
  padding:12px 13px;
  min-height:100px;
  width:100%;
  border-radius:0;
  font-size:12px;
  resize:vertical
}
.composer textarea:focus {
  outline:none
}
.composer-foot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border-top:1px solid #eef2f3
}
.composer-foot .primary {
  font-size:10px;
  min-height:32px;
  padding:7px 11px
}
.composer-foot .icon-button {
  min-height:29px;
  width:29px
}
.composer-hint {
  font-size:9px;
  color:#a3b0b8;
  display:flex;
  align-items:center;
  gap:5px;
  line-height:1.6
}
.composer-hint svg {
  width:12px;
  height:12px
}
.composer-disclaimer {
  font-size:10px;
  color:#9cabb3;
  line-height:1.8;
  margin-top:8px
}
.ticket-side .section-label {
  font-size:9px;
  margin-top:22px
}
.ticket-side .section-label:first-child {
  margin-top:0
}
.ticket-side select,.ticket-side input {
  width:100%;
  font-size:11px;
  padding:9px 10px;
  margin-bottom:13px
}
.ticket-side .primary {
  width:100%;
  font-size:11px;
  margin:1px 0 14px
}
.ticket-side label {
  font-size:10px;
  font-weight:500
}
.requester-profile {
  display:flex;
  align-items:center;
  gap:9px;
  margin:12px 0 17px
}
.requester-profile .avatar {
  width:33px;
  height:33px;
  font-size:11px
}
.requester-profile b {
  display:block;
  font-size:11px;
  font-weight:550;
  line-height:1.5
}
.requester-profile small {
  font-size:9px;
  color:#97a8b1;
  line-height:1.7;
  display:block;
  margin-top:3px
}
.contact-list {
  margin:0;
  display:grid;
  grid-template-columns:1fr;
  gap:11px
}
.contact-list>div {
  min-width:0
}
.contact-list dt {
  font-size:9px;
  color:#9aaab4;
  margin-bottom:3px
}
.contact-list dd {
  margin:0;
  font-size:11px;
  line-height:1.6;
  color:#66808e;
  overflow-wrap:anywhere
}
.contact-list dd button {
  padding:0;
  color:var(--green);
  font-size:11px;
  display:inline-flex;
  align-items:center;
  gap:5px
}
.contact-list svg {
  width:11px;
  height:11px
}
.detail-divider {
  height:1px;
  background:var(--line);
  margin:21px 0
}
.ticket-dates {
  font-size:10px;
  line-height:2;
  color:#94a6af
}
.ticket-dates>div {
  display:flex;
  justify-content:space-between;
  gap:7px
}
.ticket-dates b {
  font-weight:400;
  color:#6b8491
}
.ticket-lock {
  display:flex;
  align-items:flex-start;
  gap:6px;
  background:#edf1f4;
  color:#8b9ca6;
  border-radius:6px;
  padding:10px;
  font-size:10px;
  line-height:1.7;
  margin-bottom:15px
}
.ticket-lock svg {
  width:13px;
  height:13px;
  margin-top:2px
}
.ticket-refresh-banner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:#fff6e7;
  border:1px solid #ebdbbd;
  border-radius:7px;
  padding:9px 12px;
  margin-bottom:15px;
  font-size:10px;
  color:#998158
}
.ticket-refresh-banner button {
  font-size:10px;
  min-height:28px;
  padding:4px 8px
}
.archived-banner {
  padding:10px 13px;
  background:#edf2f4;
  border-radius:6px;
  font-size:11px;
  line-height:1.7;
  color:#879ba5;
  margin-bottom:15px
}
.save-changes {
  margin-top:0!important
}
.dialog-loading {
  padding:70px;
  text-align:center;
  font-size:12px;
  color:var(--muted)
}
/* Вспомогательные диалоги */
.create-dialog {
  width:min(600px,94vw)
}
.create-body {
  padding:23px 25px
}
.create-body input,.create-body textarea,.create-body select {
  width:100%;
  margin-bottom:17px;
  font-size:12px
}
.create-body textarea {
  min-height:140px
}
.create-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}
.create-actions {
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:8px
}
.requester-results {
  background:#fff;
  border:1px solid var(--line);
  border-radius:7px;
  max-height:180px;
  overflow-y:auto;
  margin:-10px 0 17px
}
.requester-option {
  display:block;
  text-align:left;
  width:100%;
  padding:10px 12px;
  font-size:12px;
  border-bottom:1px solid #edf1f3
}
.requester-option:last-child {
  border:0
}
.requester-option:hover {
  background:var(--green-soft)
}
.requester-option small {
  display:block;
  font-size:10px;
  color:#97a5ae;
  margin-top:4px
}
.selected-requester {
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--green-soft);
  border:1px solid #cde8df;
  border-radius:7px;
  padding:10px 12px;
  margin-bottom:17px;
  font-size:12px;
  color:#4c8c7d
}
.selected-requester button {
  font-size:11px;
  color:#739d92
}
.field-help {
  font-size:10px;
  line-height:1.8;
  color:#99a8af;
  margin:-7px 0 20px
}
.confirm-dialog {
  width:min(380px,92vw);
  padding:25px
}
.confirm-dialog h2 {
  font-size:18px;
  margin-bottom:12px
}
.confirm-dialog p {
  font-size:12px;
  line-height:1.8;
  color:#7c929f
}
.confirm-dialog .create-actions {
  margin-top:24px
}
.toast {
  position:fixed;
  bottom:25px;
  left:calc(50% + 100px);
  transform:translateX(-50%);
  padding:13px 20px;
  background:#193d45;
  color:#e9f5f0;
  border:1px solid #ffffff20;
  border-radius:9px;
  box-shadow:var(--shadow);
  font-size:12px;
  line-height:1.6;
  z-index:100;
  max-width:min(540px,92vw)
}
.toast.error {
  background:#8d4a42;
  color:#fff4f0
}
.skeleton-card {
  height:160px;
  background:linear-gradient(100deg,#fff 25%,#f8fafb 45%,#fff 65%);
  background-size:200% 100%;
  border-radius:8px;
  border:1px solid var(--line);
  margin:8px;
  animation:shimmer 1.5s infinite
}
@keyframes shimmer {
  to {
    background-position:-200% 0
  }
}
.sidebar-shade {
  display:none
}
@media(min-width:1600px) {
  .column {
    flex-basis:280px;
    max-width:none
  }
  .kanban {
    gap:20px
  }
  #workspace {
    padding:34px 38px
  }
  .topbar {
    padding-inline:38px
  }
  .task-card h3 {
    font-size:13px
  }
  .task-card {
    padding:16px
  }
  .card-assignee {
    max-width:140px
  }
}
@media(max-width:1200px) {
  .sidebar {
    width:210px;
    padding-inline:12px
  }
  .main-shell {
    margin-left:210px;
    width:calc(100% - 210px)
  }
  #workspace {
    padding:25px 22px
  }
  .topbar {
    padding-inline:22px
  }
  .filters .search-field {
    max-width:none;
    min-width:235px
  }
  .filters>select {
    max-width:160px
  }
  .board-summary {
    gap:18px
  }
  .column {
    min-width:248px;
    flex-basis:248px
  }
  .ticket-side {
    padding:23px 20px
  }
  .ticket-main {
    padding:24px
  }
  .ticket-body {
    grid-template-columns:minmax(0,1fr) 260px
  }
  .toast {
    left:calc(50% + 80px)
  }
}
@media(max-width:850px) {
  .sidebar {
    width:215px;
    transform:translateX(-100%);
    transition:transform .2s
  }
  .sidebar.open {
    transform:translateX(0)
  }
  .main-shell {
    margin:0;
    width:100%
  }
  .mobile-menu {
    display:inline-flex
  }
  .sidebar-shade:not([hidden]) {
    display:block;
    position:fixed;
    inset:0;
    z-index:19;
    background:#102c3b65
  }
  .topbar {
    height:59px;
    padding-inline:17px;
    justify-content:flex-start
  }
  .topbar-right {
    margin-left:auto
  }
  .connection {
    font-size:9px
  }
  .breadcrumb {
    font-size:10px;
    gap:8px
  }
  .breadcrumb>span:nth-child(2),.breadcrumb .separator {
    display:none
  }
  #workspace {
    padding:23px 18px
  }
  .board-heading h1 {
    font-size:24px
  }
  .board-heading p {
    font-size:10px
  }
  .board-summary {
    gap:18px;
    margin:21px 0 25px
  }
  .summary-separator {
    display:none
  }
  .filters {
    gap:8px;
    padding-top:16px
  }
  .filters .search-field {
    flex-basis:100%;
    max-width:none
  }
  .filters>select {
    flex:1;
    max-width:none;
    font-size:10px;
    min-width:125px
  }
  .filters .filter-toggle {
    margin-left:auto
  }
  .kanban {
    gap:12px
  }
  .column {
    min-width:265px;
    flex-basis:265px;
    max-width:300px
  }
  .toast {
    left:50%
  }
  .login-story {
    padding:35px
  }
  .ticket-dialog {
    width:97vw
  }
  .ticket-body {
    grid-template-columns:minmax(0,1fr) 235px
  }
  .ticket-main {
    padding:22px 20px
  }
  .ticket-side {
    padding:23px 17px
  }
  .dialog-top {
    padding-inline:20px
  }
}
@media(max-width:600px) {
  .login-screen {
    display:block
  }
  .login-story {
    padding:25px;
    min-height:170px;
    gap:0
  }
  .login-story>div,.story-foot {
    display:none
  }
  .login-story:after {
    content:"Рабочее место технической поддержки";
    font-size:12px;
    color:#91b4bf;
    margin-top:25px
  }
  .login-content {
    padding:35px 25px;
    display:block;
    min-height:calc(100vh - 170px)
  }
  .login-box {
    margin:auto
  }
  .login-symbol {
    display:none
  }
  .login-box h2 {
    font-size:20px
  }
  .topbar-right {
    gap:3px
  }
  .connection>span:nth-child(2) {
    max-width:90px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
  }
  .board-heading {
    align-items:flex-start;
    gap:9px
  }
  .board-heading h1 {
    font-size:21px;
    line-height:1.25;
    letter-spacing:-.4px;
    margin-top:7px
  }
  .board-heading .primary {
    font-size:0;
    width:35px;
    height:35px;
    padding:0;
    flex:none;
    margin-top:18px
  }
  .board-heading .primary svg {
    width:17px;
    height:17px
  }
  .board-heading .muted {
    max-width:250px
  }
  .board-summary {
    gap:12px 20px;
    line-height:1.5;
    margin-bottom:22px;
    font-size:10px
  }
  .summary-item {
    gap:5px
  }
  .summary-item svg {
    width:13px;
    height:13px
  }
  .tab {
    font-size:11px
  }
  .tab-group {
    gap:18px
  }
  .view-switch {
    margin-bottom:8px
  }
  .filters>select {
    min-width:100px;
    font-size:10px;
    padding-right:12px;
    height:34px
  }
  .filters>select:nth-of-type(3) {
    flex-basis:calc(100% - 145px)
  }
  .filters .filter-toggle {
    margin:0
  }
  .filters>button {
    font-size:10px
  }
  .extra-filters {
    flex-wrap:wrap
  }
  .extra-filters select {
    flex:1;
    max-width:none;
    font-size:10px
  }
  .board-footer {
    align-items:flex-start
  }
  .board-footer>span:last-child {
    display:none
  }
  .ticket-dialog {
    max-height:96dvh;
    width:100vw;
    border-radius:11px 11px 0 0;
    margin:auto 0 0;
    max-width:100vw
  }
  .dialog-top {
    padding:11px 15px;
    min-height:55px;
    gap:8px
  }
  .dialog-top .source {
    display:none
  }
  .ticket-body {
    display:flex;
    flex-direction:column;
    max-height:calc(96dvh - 55px)
  }
  .ticket-main {
    padding:21px 18px;
    order:2
  }
  .ticket-side {
    border-left:0;
    border-bottom:1px solid var(--line);
    padding:17px 18px;
    order:1
  }
  .ticket-side .requester-section,.ticket-side .dates-section {
    display:none
  }
  .ticket-side .controls-section {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 12px
  }
  .ticket-side .controls-section>.section-label {
    grid-column:1/-1;
    margin-bottom:10px
  }
  .ticket-side .controls-section>label {
    margin-bottom:3px
  }
  .ticket-side .controls-section>select {
    margin-bottom:9px
  }
  .ticket-side .ticket-lock {
    grid-column:1/-1
  }
  .ticket-side .primary {
    width:100%;
    margin-bottom:3px
  }
  .ticket-side .detail-divider {
    display:none
  }
  .ticket-side #ticket-properties {
    grid-column:1/-1;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 12px
  }
  .ticket-side .subject-field,.ticket-side .save-changes {
    grid-column:1/-1
  }
  .ticket-side .mobile-edit-toggle {
    display:block
  }
  .ticket-main h1 {
    font-size:21px
  }
  .contact-mobile {
    display:block!important;
    border-top:1px solid var(--line);
    padding-top:17px
  }
  .contact-mobile summary {
    font-size:11px;
    color:#6f8d9a;
    cursor:pointer
  }
  .contact-mobile .contact-list {
    margin-top:14px;
    grid-template-columns:1fr 1fr
  }
  .conversation-heading {
    margin-top:20px
  }
  .message-meta time {
    font-size:8px
  }
  .system-message {
    gap:6px;
    font-size:9px
  }
  .system-message time {
    font-size:8px
  }
  .composer-foot .composer-hint {
    max-width:160px
  }
  .ticket-refresh-banner {
    margin-bottom:12px
  }
  .board-content {
    min-height:300px
  }
  .create-row {
    gap:10px
  }
  .create-body {
    padding:20px
  }
  .create-dialog .dialog-top h2 {
    font-size:15px
  }
}
.contact-mobile {
  display:none
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
/* Размеры рабочих элементов рассчитаны на длительную работу с текстом. */
.nav-link {
  font-size:13px
}
.nav-heading {
  font-size:10px
}
.sidebar-info {
  font-size:10px
}
.board-heading p {
  font-size:12px
}
.board-summary {
  font-size:12px
}
.filters>select,.extra-filters select,.search-field input,.filters>button {
  font-size:12px
}
.task-card h3 {
  font-size:14px
}
.ticket-number {
  font-size:11px
}
.priority {
  font-size:10px
}
.category {
  font-size:10px
}
.card-origin {
  font-size:11px
}
.card-bottom,.card-assignee,.card-counters {
  font-size:10px
}
.card-assignee {
  max-width:100px
}
.column-head {
  font-size:12px
}
.empty-column {
  font-size:11px
}
.description,.message-text,.composer textarea {
  font-size:13px
}
.ticket-side select,.ticket-side input,.contact-list dd {
  font-size:12px
}
.properties-details>summary {
  display:none
}
.properties-details {
  width:100%
}
.ticket-side .controls-section>.primary {
  margin-top:0
}
.requester-none {
  margin:0;
  padding:12px
}
@media(max-width:600px) {
  .board-heading p {
    font-size:11px
  }
  .board-summary {
    font-size:11px
  }
  .filters>select,.filters>button {
    font-size:11px
  }
  .filters .search-field input {
    font-size:12px
  }
  .properties-details {
    grid-column:1/-1;
    border-top:1px solid var(--line);
    margin-top:10px;
    padding-top:13px
  }
  .properties-details>summary {
    display:list-item;
    cursor:pointer;
    color:#7c939f;
    font-size:11px;
    line-height:1.8;
    margin-bottom:2px
  }
  .properties-details[open]>summary {
    margin-bottom:13px
  }
  .ticket-side .controls-section>.primary {
    margin-top:14px;
    margin-bottom:0;
    min-height:35px;
    align-self:start
  }
  .ticket-side .status-field select {
    margin-bottom:0
  }
  .ticket-main h1 {
    font-size:22px
  }
  .description,.message-text,.composer textarea {
    font-size:14px
  }
  .contact-list dd {
    font-size:12px
  }
}

.scope-nav{overflow-y:auto;padding:0 12px}.scope-heading{margin-top:25px}.scope-nav-item{margin:0 0 14px;font-size:11px;line-height:1.7;color:#8faab5}.scope-nav-item strong{display:block;color:#c9dbe0;font-weight:500}.scope-nav-item span{display:block;color:#7897a4;font-size:10px}
