/* ===== Tokens like cabinet ===== */
    :root{
      --assc-primary:#e53935;
      --assc-bg:#07080c;
      --assc-text:#ffffff;
      --assc-muted:rgba(255,255,255,.68);
      --assc-card:rgba(255,255,255,0.055);
      --assc-border:rgba(255,255,255,0.22);
      --assc-shadow:0 18px 60px rgba(0,0,0,.55);
    }

    .assc-root, .assc-root *{ box-sizing:border-box; }

    /* ===== Full-width cabinet section ===== */
    .assc-root{
      font-family:'Montserrat',system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Text",sans-serif !important;
      color:#fff !important;

      width:100vw;
      max-width:100vw;
      margin-left:calc(50% - 50vw);
      margin-right:calc(50% - 50vw);

      background: transparent !important;
      position:relative;
      overflow-x:hidden;
      padding: 24px 0 42px !important;
      border-radius: 0 !important;
      box-shadow: none !important;
    }

    /* ===== Background + overlay (settings driven) ===== */
    .assc-root::before{
      content:"";
      position:fixed;
      inset:0;
      z-index:-2;
      background:
        var(--assc-backdrop-bg,#07080c);
      transform: translateZ(0);
    }

    .assc-root::after{
      content:"";
      position:fixed;
      inset:0;
      z-index:-1;
      background: rgba(0,0,0, var(--assc-overlay,0));
      background-image:
        linear-gradient(
          to bottom,
          rgba(0,0,0,0) 0%,
          rgba(0,0,0,0) 60%,
          rgba(0,0,0,.45) 75%,
          rgba(0,0,0,.75) 90%,
          rgba(0,0,0,1) 100%
        );
      pointer-events:none;
      transform: translateZ(0);
    }

    /* ===== Hero (Title PNG) ===== */
    .assc-cabinet{
      width:100%;
      max-width: 1400px;
      margin:0 auto;
      padding: 0 22px;
    }
    .assc-hero{
      display:flex;
      justify-content:center;
      align-items:flex-start;
      margin: 18px 0 18px;
    }
    .assc-hero-logo{
      display:block;
      width: 420px;
      max-width: 92vw;
      height:auto;
      filter: drop-shadow(0 12px 34px rgba(0,0,0,.65));
    }
    .assc-hero-fallback{
      font-size:28px;
      font-weight:600;
      letter-spacing:-.2px;
      text-align:center;
      text-shadow: 0 18px 60px rgba(0,0,0,.55);
    }

    /* ===== Layout ===== */
    .assc-shell{
      display:grid;
      grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
      gap:14px;
      width:100%;
    }

    /* ===== Glass cards ===== */
    .assc-sidebar,
    .assc-main{
      background: var(--assc-card);
      backdrop-filter: blur(22px) saturate(120%);
      -webkit-backdrop-filter: blur(22px) saturate(120%);

      border-radius: 24px;
      border: 1px solid var(--assc-border);

      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        var(--assc-shadow);
      position:relative;
      overflow:hidden;
    }
    .assc-sidebar::after,
    .assc-main::after{
      content:"";
      position:absolute;
      inset:0;
      border-radius:inherit;
      pointer-events:none;
      box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.14),
        inset 0 0 0 2px rgba(255,255,255,.06);
      opacity:.9;
    }

    .assc-sidebar{ padding: 14px 12px 10px; display:flex; flex-direction:column; min-height: 560px; }
    .assc-main{ padding: 14px 14px 10px; display:flex; flex-direction:column; min-height: 560px; height: 680px; max-height: calc(100vh - 220px); }

    /* ===== Sidebar header ===== */
    .assc-sidebar-title{ font-size:16px; font-weight:700; }
    .assc-sidebar-sub{ font-size:11px; color: rgba(255,255,255,.72); margin-top:2px; font-weight:600; }

    /* ===== Buttons (chrome glass like Royalties) ===== */
    .assc-new-ticket-btn,
    .assc-send-btn,
    .assc-close-ticket-btn,
    .assc-filter-btn,
    .assc-mobile-back{
      position:relative;
      isolation:isolate;
      overflow:hidden;
      border-radius:999px !important;

      background: rgba(255,255,255,0.08) !important;
      backdrop-filter: blur(14px) saturate(160%);
      -webkit-backdrop-filter: blur(14px) saturate(160%);

      border: 1px solid rgba(255,255,255,0.28) !important;
      color:#fff !important;

      font-weight: 700;
      letter-spacing: .2px;
      cursor:pointer;

      transition: transform .25s ease, box-shadow .25s ease, background .25s ease, opacity .25s ease;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }
    .assc-new-ticket-btn::before,
    .assc-send-btn::before,
    .assc-close-ticket-btn::before,
    .assc-filter-btn::before,
    .assc-mobile-back::before{
      content:"";
      position:absolute;
      inset:-40% -60%;
      background: linear-gradient(120deg, rgba(255,255,255,.45), rgba(255,255,255,0) 55%);
      transform: rotate(18deg);
      opacity:.42;
      z-index:-1;
      pointer-events:none;
    }
    .assc-new-ticket-btn::after,
    .assc-send-btn::after,
    .assc-close-ticket-btn::after,
    .assc-filter-btn::after,
    .assc-mobile-back::after{
      content:"";
      position:absolute;
      inset:0;
      border-radius:inherit;
      box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.35),
        inset 0 0 0 2px rgba(255,255,255,.08);
      pointer-events:none;
    }
    .assc-new-ticket-btn:hover,
    .assc-send-btn:hover,
    .assc-close-ticket-btn:hover,
    .assc-filter-btn:hover,
    .assc-mobile-back:hover{
      transform: translateY(-1px);
      background: rgba(255,255,255,0.12) !important;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.55);
    }

    .assc-root .assc-ticket-search-wrap{ margin:10px 0 10px; border-radius:999px; overflow:hidden; }
    .assc-root input.assc-ticket-search[type="search"],
    .assc-root .assc-ticket-search{
      display:block !important;
      box-sizing:border-box !important;
      width:100% !important;
      min-height:42px !important;
      border-radius: 999px !important;
      border: 1px solid rgba(255,255,255,0.24) !important;
      background: rgba(255,255,255,0.07) !important;
      color:#fff !important;
      font-size:12px !important;
      font-family:inherit !important;
      font-weight:700 !important;
      padding: 11px 16px !important;
      outline:none !important;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 28px rgba(0,0,0,.18) !important;
      -webkit-appearance:none !important;
      appearance:none !important;
    }
    .assc-ticket-search::-webkit-search-decoration,
    .assc-ticket-search::-webkit-search-cancel-button{ -webkit-appearance:none; appearance:none; }
    .assc-ticket-search::placeholder{ color: rgba(255,255,255,.58); }
    .assc-root .assc-ticket-search:focus{
      border-color: rgba(229,57,53,.5) !important;
      box-shadow: 0 0 0 2px rgba(229,57,53,.22), inset 0 1px 0 rgba(255,255,255,.14) !important;
    }

    .assc-topic-filter-wrap{ margin:0 0 10px; border-radius:999px; overflow:hidden; }
    .assc-root .assc-topic-filter,
    .assc-root .assc-new-ticket-owner{
      width:100% !important;
      min-height:42px !important;
      border-radius:999px !important;
      border:1px solid rgba(255,255,255,0.24) !important;
      background:rgba(0,0,0,0.25) !important;
      color:#fff !important;
      font-size:12px !important;
      font-family:inherit !important;
      font-weight:800 !important;
      padding:10px 42px 10px 14px !important;
      outline:none !important;
      -webkit-appearance:none !important;
      appearance:none !important;
    }
    .assc-root .assc-topic-filter option,
    .assc-root .assc-new-ticket-owner option{ background:#0b0c10 !important; color:#fff !important; }
    .assc-new-ticket-hint{ margin:-2px 0 10px; font-size:11px; line-height:1.35; color:rgba(255,255,255,.72); font-weight:700; }

    .assc-filters{ display:flex; gap:8px; margin:10px 0 12px; flex-wrap:wrap; }
    .assc-filter-btn{ flex:1 1 calc(50% - 4px); padding:8px 10px; font-size:10px; text-transform:uppercase; letter-spacing:.06em; }
    .assc-filter-btn.is-active{ border-color: rgba(229,57,53,.55) !important; box-shadow: 0 0 0 2px rgba(229,57,53,.22); }

    .assc-new-ticket-btn{ width:100%; padding: 12px 14px; font-size:13px; margin-bottom:10px; min-height:48px; font-weight:600; }

    /* ===== Dialog list ===== */
    .assc-dialogs{ flex:1 1 auto; overflow-y:auto; display:flex; flex-direction:column; gap:8px; padding-right:2px; }
    .assc-dialogs-empty{ font-size:13px; color: rgba(255,255,255,.8); padding:10px 4px; font-weight:600; }

    .assc-dialog-item{
      width:100%;
      box-sizing:border-box;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(255,255,255,0.04);
      padding: 9px 9px 10px;
      display:block;
      cursor:pointer;
      text-align:left;
      overflow:hidden;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
    }
    .assc-dialog-item:hover{
      transform: translateY(-1px);
      border-color: rgba(255,255,255,0.28);
      box-shadow: 0 20px 80px rgba(0,0,0,.35);
      background: rgba(255,255,255,0.055);
    }
    .assc-dialog-item.is-active{
      border-color: rgba(229,57,53,.35);
      box-shadow: 0 24px 80px rgba(229,57,53,.18);
      background: rgba(255,255,255,0.06);
    }
    .assc-dialog-main{ min-width:0; width:100%; display:flex; flex-direction:column; gap:7px; }
    .assc-dialog-topline{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:7px;
      min-width:0;
      width:100%;
    }
    .assc-dialog-chips{
      display:flex;
      align-items:center;
      gap:5px;
      flex-wrap:wrap;
      min-width:0;
      max-width:calc(100% - 92px);
    }
    .assc-dialog-rightchips{ display:flex; align-items:center; gap:5px; flex:0 0 auto; }
    .assc-unread-badge{
      min-width:20px;
      height:20px;
      padding:0 6px;
      border-radius:999px;
      background:#e53935;
      color:#fff;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      font-size:10px;
      line-height:1;
      font-weight:900;
      box-shadow:0 0 14px rgba(229,57,53,.45);
      border:1px solid rgba(255,255,255,.24);
      flex:0 0 auto;
    }
    .assc-dialog-item.has-unread{ border-color:rgba(229,57,53,.42); box-shadow:0 0 0 1px rgba(229,57,53,.18), 0 18px 60px rgba(229,57,53,.12); }
    .assc-ticket-number{
      flex:0 0 auto;
      max-width:100%;
      font-size:9px;
      line-height:1.15;
      padding: 2px 6px;
      border-radius:999px;
      color:#fff;
      background: rgba(229,57,53,.24);
      border:1px solid rgba(229,57,53,.38);
      letter-spacing:.02em;
      white-space:nowrap;
    }
    .assc-dialog-topic{
      font-size:9px;
      line-height:1.15;
      padding: 2px 6px;
      border-radius:999px;
      background: rgba(255,255,255,.06);
      border:1px solid rgba(255,255,255,.18);
      color: rgba(255,255,255,.92);
      flex:0 1 auto;
      font-weight:700;
      max-width: 128px;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .assc-dialog-bodyrow{ display:flex; align-items:center; gap:9px; min-width:0; width:100%; }
    .assc-dialog-avatar{
      width: 36px; height:36px; border-radius:999px;
      background-size:cover; background-position:center; background-color: rgba(255,255,255,.08);
      box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 10px 30px rgba(0,0,0,.35);
      flex-shrink:0;
    }
    .assc-dialog-text{ min-width:0; flex:1 1 auto; }
    .assc-dialog-title{ font-size:13px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
    .assc-dialog-meta{ display:flex; flex-direction:column; gap:3px; margin-top:4px; font-size:11px; color: rgba(255,255,255,.86); min-width:0; }
    .assc-dialog-user, .assc-dialog-preview{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
    .assc-dialog-left, .assc-dialog-right{ min-width:0; }

    .assc-badge{
      display:inline-flex; align-items:center; justify-content:center;
      padding: 4px 9px;
      border-radius:999px;
      font-size:9.5px;
      line-height:1.1;
      font-weight:700;
      text-transform:uppercase;
      letter-spacing:.045em;
      border:1px solid rgba(255,255,255,.18);
      background: rgba(255,255,255,.06);
      color: rgba(255,255,255,.92);
      white-space:nowrap;
      flex:0 0 auto;
    }
    .assc-badge-open{
      background: rgba(239,11,22,.12);
      border-color: rgba(239,11,22,.28);
      color: #ff5b63;
    }
    .assc-badge-in_work{
      background: rgba(255,255,255,.10);
      border-color: rgba(255,255,255,.20);
      color: #ffffff;
    }
    .assc-badge-waiting_user{
      background: rgba(255,255,255,.10);
      border-color: rgba(255,255,255,.20);
      color: #ffffff;
    }
    .assc-badge-closed{
      background: rgba(248,113,113,.12);
      border-color: rgba(248,113,113,.25);
      color: #f87171;
    }

    /* ===== Main thread ===== */
    .assc-thread-container{ flex:1 1 auto; position:relative; display:flex; flex-direction:column; overflow:hidden; }
    .assc-thread{ display:none; flex-direction:column; min-height:0; height:100%; }
    .assc-thread.is-active{ display:flex; }

    .assc-thread-placeholder{
      font-size:14px;
      color: rgba(255,255,255,.85);
      margin:auto;
      text-align:center;
      font-weight:700;
      padding: 14px 16px;
      border-radius: 18px;
      border: 1px dashed rgba(255,255,255,.18);
      background: rgba(255,255,255,.05);
      max-width: 720px;
    }

    .assc-thread-header{
      display:flex;
      justify-content:space-between;
      gap: 12px;
      align-items:center;
      padding-bottom: 10px;
      margin-bottom: 10px;
      border-bottom: 1px solid rgba(255,255,255,.16);
    }
    .assc-thread-left{ display:flex; align-items:center; gap:10px; min-width:0; flex:1 1 auto; }
    .assc-thread-title-wrap{ min-width:0; flex:1 1 auto; }
    .assc-thread-title-row{ display:flex; align-items:center; justify-content:flex-start; gap:10px; min-width:0; }
    .assc-thread-title{ font-size:15px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
    .assc-thread-topic-badge{
      font-size:11px;
      padding: 3px 10px;
      border-radius:999px;
      background: rgba(255,255,255,.06);
      border:1px solid rgba(255,255,255,.18);
      color: rgba(255,255,255,.92);
      flex-shrink:0;
      font-weight:600;
    }
    .assc-thread-meta{ margin-top:4px; font-size:11px; color: rgba(255,255,255,.76); display:flex; gap:10px; flex-wrap:wrap; font-weight:700; }
    .assc-thread-status-wrap{ display:flex; flex-direction:row; align-items:center; justify-content:flex-end; gap:10px; flex:0 0 auto; }
    .assc-thread-badges{ display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }

    .assc-close-ticket-btn{
      display:inline-flex !important;
      align-items:center;
      justify-content:center;
      padding: 8px 13px;
      font-size: 12px;
      line-height:1;
      min-height: 38px;
      min-width: 126px;
      white-space:nowrap;
      flex:0 0 auto;
      z-index:3;
    }

    /* ===== Messages ===== */
    .assc-messages{ flex:1 1 auto; overflow-y:auto; padding: 6px 2px 6px; min-height:0; }
    .assc-thread-inner{ display:flex; flex-direction:column; gap: 8px; }

    .assc-msg{ display:flex; gap:10px; max-width: 85%; }
    .assc-msg-artist{ margin-left:auto; flex-direction:row-reverse; }
    .assc-msg-support{ margin-right:auto; }
    .assc-msg-system{ margin: 10px auto; max-width: 92%; }

    .assc-msg-avatar{
      width: 38px; height:38px;
      border-radius:999px;
      background-size:cover; background-position:center;
      background-color: rgba(255,255,255,.08);
      box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 10px 30px rgba(0,0,0,.35);
      flex-shrink:0;
    }
    .assc-avatar-support{
      width:38px; height:38px;
      border-radius:50%;
      background: rgba(255,255,255,0.10);
      border: 1px solid rgba(255,255,255,0.22);
      backdrop-filter: blur(14px) saturate(160%);
      -webkit-backdrop-filter: blur(14px) saturate(160%);
      color:#fff;
      font-weight: 900;
      font-size: 18px;
      display:flex; align-items:center; justify-content:center;
      box-shadow: 0 16px 60px rgba(0,0,0,.45);
    }

    .assc-msg-bubble{
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.18);
      box-shadow: 0 14px 50px rgba(0,0,0,.45);
      border-radius: 18px;
      padding: 10px 12px;
      font-size: 13px;
      line-height: 1.45;
      position:relative;
      transition: transform .12s ease, box-shadow .12s ease;
      overflow:hidden;
    }
    .assc-msg-bubble:hover{ transform: translateY(-1px); box-shadow: 0 18px 70px rgba(0,0,0,.55); }
    .assc-msg-bubble-first{ border-color: rgba(229,57,53,.26); }

    .assc-msg-artist .assc-msg-bubble{
      background: rgba(229,57,53,0.10);
      border-color: rgba(229,57,53,0.26);
    }
    .assc-msg-system .assc-msg-bubble{
      background: rgba(255,255,255,.05);
      border-style: dashed;
      text-align:center;
    }

    .assc-msg-head{
      display:flex;
      justify-content:space-between;
      gap:10px;
      font-size:10px;
      text-transform:uppercase;
      letter-spacing:.06em;
      color: rgba(255,255,255,.72);
      margin-bottom:6px;
      font-weight:600;
    }
    .assc-msg-body{ font-size: 13px; color: rgba(255,255,255,.95); }

    .assc-files{ margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; }
    .assc-file{ display:inline-flex; align-items:center; justify-content:center; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); text-decoration:none; overflow:hidden; }
    .assc-file-image img{ display:block; max-width: 140px; max-height: 96px; border-radius: 12px; }
   .assc-file-doc{
  padding: 8px 10px;
  font-size: 11px;
  color:#fff;
  background: rgba(255,255,255,0.06);
  font-weight:900;

  justify-content:flex-start;
  gap:8px;
}

.assc-file-ext{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 44px;
  height: 24px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.22);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
}

.assc-file-caption{
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


    .assc-quick-replies{
      margin:0 0 10px;
      padding:11px;
      border-radius:16px;
      border:1px solid rgba(255,255,255,.14);
      background:rgba(255,255,255,.045);
    }
    .assc-quick-replies-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      margin-bottom:8px;
    }
    .assc-quick-replies-title{
      font-size:11px;
      font-weight:900;
      text-transform:uppercase;
      letter-spacing:.06em;
      color:rgba(255,255,255,.78);
    }
    .assc-quick-replies-hint{
      font-size:10px;
      font-weight:700;
      color:rgba(255,255,255,.48);
      text-align:right;
    }
    .assc-quick-replies-filters{
      display:flex;
      gap:6px;
      overflow-x:auto;
      padding:0 0 8px;
      scrollbar-width:thin;
    }
    .assc-quick-filter{
      flex:0 0 auto;
      border:1px solid rgba(255,255,255,.14) !important;
      background:transparent !important;
      color:rgba(255,255,255,.72) !important;
      border-radius:999px !important;
      padding:5px 9px !important;
      font-size:10px !important;
      line-height:1 !important;
      font-family:inherit !important;
      font-weight:800 !important;
      cursor:pointer !important;
    }
    .assc-quick-filter.is-active{
      background:rgba(229,57,53,.18) !important;
      border-color:rgba(229,57,53,.48) !important;
      color:#fff !important;
    }
    .assc-quick-replies-list{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:7px;
      max-height:226px;
      overflow:auto;
      padding-right:2px;
    }
    .assc-quick-reply-btn{
      min-width:0;
      min-height:70px;
      border-radius:12px !important;
      border:1px solid rgba(255,255,255,.16) !important;
      background:rgba(255,255,255,.065) !important;
      color:#fff !important;
      padding:9px 10px !important;
      cursor:pointer !important;
      font-family:inherit !important;
      text-align:left !important;
      display:flex !important;
      flex-direction:column !important;
      align-items:flex-start !important;
      justify-content:flex-start !important;
      gap:3px !important;
      overflow:hidden;
    }
    .assc-quick-reply-btn[hidden]{display:none !important;}
    .assc-quick-reply-group{
      font-size:9px;
      line-height:1;
      font-weight:900;
      letter-spacing:.05em;
      text-transform:uppercase;
      color:rgba(229,57,53,.9);
    }
    .assc-quick-reply-label{
      width:100%;
      font-size:11px;
      line-height:1.25;
      font-weight:900;
      color:inherit;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .assc-quick-reply-preview{
      display:-webkit-box;
      -webkit-line-clamp:2;
      -webkit-box-orient:vertical;
      overflow:hidden;
      font-size:9.5px;
      line-height:1.3;
      font-weight:600;
      color:rgba(255,255,255,.58);
    }
    .assc-quick-reply-btn:hover{
      background:rgba(255,255,255,.11) !important;
      border-color:rgba(229,57,53,.4) !important;
      transform:translateY(-1px);
    }

    /* Cabinet: one compact trigger; replies open above the composer without shrinking messages. */
    .assc-quick-replies-cabinet{
      position:relative;
      z-index:30;
      margin:0;
      padding:0;
      border:0;
      border-radius:0;
      background:transparent;
    }
    .assc-quick-replies-toggle{
      width:100%;
      min-height:42px;
      display:flex;
      align-items:center;
      gap:9px;
      padding:7px 10px;
      border:1px solid rgba(255,255,255,.14);
      border-radius:13px;
      background:rgba(255,255,255,.045);
      color:#fff;
      font-family:inherit;
      text-align:left;
      cursor:pointer;
      transition:border-color .18s ease,background .18s ease,transform .18s ease;
    }
    .assc-quick-replies-toggle:hover{
      border-color:rgba(229,57,53,.42);
      background:rgba(255,255,255,.075);
    }
    .assc-quick-toggle-icon{
      width:28px;
      height:28px;
      display:grid;
      place-items:center;
      flex:0 0 auto;
      border-radius:9px;
      background:rgba(229,57,53,.14);
      color:#ff4c52;
      font-size:13px;
    }
    .assc-quick-toggle-copy{
      min-width:0;
      display:flex;
      flex-direction:column;
      gap:1px;
      flex:1 1 auto;
    }
    .assc-quick-toggle-copy strong{
      font-size:11px;
      line-height:1.2;
      font-weight:900;
      color:inherit;
    }
    .assc-quick-toggle-copy small{
      font-size:9.5px;
      line-height:1.2;
      font-weight:700;
      color:rgba(255,255,255,.5);
    }
    .assc-quick-toggle-count{
      min-width:24px;
      height:22px;
      padding:0 7px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      border-radius:999px;
      border:1px solid rgba(255,255,255,.14);
      background:rgba(255,255,255,.06);
      color:rgba(255,255,255,.78);
      font-size:9px;
      font-weight:900;
    }
    .assc-quick-toggle-chevron{
      flex:0 0 auto;
      font-size:16px;
      line-height:1;
      color:rgba(255,255,255,.58);
      transition:transform .18s ease;
    }
    .assc-quick-replies-cabinet.is-open .assc-quick-toggle-chevron{transform:rotate(180deg);}
    .assc-quick-replies-panel{
      position:absolute;
      left:0;
      right:0;
      bottom:calc(100% + 9px);
      z-index:80;
      max-height:min(54vh,430px);
      overflow:hidden;
      padding:12px;
      border:1px solid rgba(255,255,255,.18);
      border-radius:18px;
      background:rgba(17,17,19,.98);
      box-shadow:0 24px 70px rgba(0,0,0,.5);
      backdrop-filter:blur(22px) saturate(145%);
      -webkit-backdrop-filter:blur(22px) saturate(145%);
    }
    .assc-quick-replies-panel[hidden]{display:none !important;}
    .assc-quick-replies-cabinet .assc-quick-replies-head{
      align-items:flex-start;
      margin-bottom:9px;
    }
    .assc-quick-replies-cabinet .assc-quick-replies-hint{
      margin-top:3px;
      text-align:left;
    }
    .assc-quick-replies-close{
      width:30px;
      height:30px;
      display:grid;
      place-items:center;
      flex:0 0 auto;
      padding:0;
      border:1px solid rgba(255,255,255,.14);
      border-radius:10px;
      background:rgba(255,255,255,.055);
      color:#fff;
      font-family:inherit;
      font-size:20px;
      line-height:1;
      cursor:pointer;
    }
    .assc-quick-replies-cabinet .assc-quick-replies-list{
      grid-template-columns:repeat(3,minmax(0,1fr));
      max-height:min(36vh,270px);
      gap:7px;
    }
    .assc-quick-replies-cabinet .assc-quick-reply-btn{
      min-height:50px;
      padding:8px 9px !important;
      justify-content:center !important;
    }
    .assc-quick-replies-cabinet .assc-quick-reply-preview{display:none;}

    @media(max-width:900px){
      .assc-quick-replies-cabinet .assc-quick-replies-list{grid-template-columns:repeat(2,minmax(0,1fr));}
    }
    @media(max-width:640px){
      .assc-quick-replies-admin .assc-quick-replies-head{align-items:flex-start;flex-direction:column;gap:3px;}
      .assc-quick-replies-admin .assc-quick-replies-hint{text-align:left;}
      .assc-quick-replies-admin .assc-quick-replies-list{grid-template-columns:1fr;max-height:250px;}
      .assc-quick-replies-panel{position:fixed;left:12px;right:12px;bottom:12px;max-height:72vh;}
      .assc-quick-replies-cabinet .assc-quick-replies-list{grid-template-columns:1fr;max-height:48vh;}
    }

    /* ===== Reply form ===== */
    .assc-reply-form{
      position:relative;
      z-index:12;
      overflow:visible;
      margin-top: 12px;
      border-radius: 18px;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.18);
      backdrop-filter: blur(18px) saturate(140%);
      -webkit-backdrop-filter: blur(18px) saturate(140%);
      padding: 10px 12px 10px;
      display:flex;
      flex-direction:column;
      gap: 10px;
    }
    .assc-reply-form textarea{
      width:100%;
      resize:none;
      min-height: 56px;
      max-height: 140px;
      font-size: 13px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(255,255,255,0.06);
      color:#fff;
      padding: 12px 12px;
      font-family:inherit;
      font-weight:600;
    }
    .assc-reply-form textarea:focus{
      outline:none;
      border-color: rgba(229,57,53,.35);
      box-shadow: 0 0 0 2px rgba(229,57,53,.18);
    }
    .assc-reply-footer{ display:flex; justify-content:space-between; align-items:center; gap: 12px; flex-wrap:wrap; }
    .assc-file-label{ display:inline-flex; align-items:center; gap:8px; font-size: 12px; color: rgba(255,255,255,.9); cursor:pointer; font-weight:600; }
    .assc-file-input{ display:none; }
    .assc-send-btn{ padding: 12px 16px; font-size: 13px; min-height: 48px; }

    .assc-reply-note{ font-size: 12px; color: rgba(255,255,255,.76); min-height: 14px; font-weight:700; }

    .assc-thread-closed-info{
      margin-top: 12px;
      font-size: 13px;
      padding: 12px 14px;
      border-radius: 18px;
      border: 1px dashed rgba(255,255,255,.18);
      background: rgba(255,255,255,.05);
      color: rgba(255,255,255,.88);
      font-weight:600;
    }

    .assc-login-msg{
      padding: 18px 18px;
      border-radius: 18px;
      background: rgba(255,255,255,.05);
      border: 1px dashed rgba(255,255,255,.18);
      color: rgba(255,255,255,.88);
      font-size: 14px;
      font-weight:600;
      max-width: 920px;
      margin: 14px auto;
      text-align:center;
    }

    /* ===== Modal ===== */
    .assc-new-ticket-modal[aria-hidden="true"]{ display:none; }
    .assc-new-ticket-modal{
      position:absolute;
      inset:0;
      display:flex;
      align-items:center;
      justify-content:center;
      z-index: 50;
      padding: 18px;
    }
    .assc-new-ticket-backdrop{
      position:absolute;
      inset:0;
      background: rgba(0,0,0,.65);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }
    .assc-new-ticket-dialog{
      position:relative;
      z-index:2;
      width:100%;
      max-width: 440px;
      background: rgba(255,255,255,0.08);
      backdrop-filter: blur(24px) saturate(160%);
      -webkit-backdrop-filter: blur(24px) saturate(160%);
      border: 1px solid rgba(255,255,255,0.22);
      border-radius: 24px;
      padding: 18px;
      box-shadow: 0 30px 100px rgba(0,0,0,.7);
      overflow:hidden;
    }
    .assc-new-ticket-dialog::before{
      content:"";
      position:absolute;
      inset:-40% -60%;
      background: linear-gradient(120deg, rgba(255,255,255,.45), rgba(255,255,255,0) 55%);
      transform: rotate(18deg);
      opacity:.22;
      pointer-events:none;
    }
    .assc-new-ticket-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 12px; }
    .assc-new-ticket-title{ font-size: 16px; font-weight:900; }
    .assc-new-ticket-close{ border:none; background:transparent; color:#fff; font-size: 20px; cursor:pointer; padding: 0 6px; font-weight:900; }

    .assc-new-ticket-form select,
    .assc-new-ticket-form input[type="text"],
    .assc-new-ticket-form input[type="search"],
    .assc-new-ticket-form textarea{
      width:100%;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(255,255,255,0.06);
      color:#fff;
      font-size: 13px;
      padding: 12px 12px;
      margin-bottom: 10px;
      font-family:inherit;
      font-weight:700;
    }
    .assc-new-ticket-form textarea{ resize: vertical; }


    .assc-release-picker{margin:0 0 10px;padding:12px;border-radius:18px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.045);}
    .assc-release-picker[hidden], .assc-release-picker.is-hidden{display:none!important;}
    .assc-release-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:9px;}
    .assc-release-picker-title{font-size:12px;line-height:1.2;font-weight:900;color:#fff;}
    .assc-release-picker-subtitle{margin-top:3px;color:rgba(255,255,255,.62);font-size:10px;line-height:1.35;font-weight:700;}
    .assc-release-clear{flex:0 0 auto;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;border-radius:999px;min-height:28px;padding:0 10px;font-family:inherit;font-size:10px;font-weight:900;cursor:pointer;}
    .assc-release-clear:hover{background:rgba(229,9,20,.20);border-color:rgba(229,9,20,.35);}
    .assc-new-ticket-form .assc-release-search{margin-bottom:8px!important;}
    .assc-release-picker-count{min-height:14px;margin:-2px 0 7px;color:rgba(255,255,255,.58);font-size:10px;line-height:1.25;font-weight:800;}
    .assc-release-form-note{margin:-4px 0 8px;color:rgba(255,255,255,.64);font-size:11px;line-height:1.4;font-weight:600;}
    .assc-dialog-release{display:inline-flex;align-items:center;max-width:100%;min-height:22px;padding:0 8px;border-radius:999px;border:1px solid rgba(229,9,20,.25);background:rgba(229,9,20,.10);color:#ffeff0;font-size:10px;line-height:1;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .assc-release-context{display:flex;align-items:center;gap:12px;margin-top:10px;padding:11px 12px;border-radius:18px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.045);min-width:0;}
    .assc-release-context.is-compact{margin-top:8px;padding:9px 10px;border-radius:15px;}
    .assc-release-context-cover{width:42px;height:42px;border-radius:12px;object-fit:cover;background:rgba(255,255,255,.08);flex:0 0 auto;}
    .assc-release-context-body{min-width:0;flex:1 1 auto;}
    .assc-release-context-label{color:rgba(255,255,255,.56);font-size:9px;line-height:1;font-weight:900;letter-spacing:.08em;text-transform:uppercase;margin-bottom:4px;}
    .assc-release-context-title{color:#fff;font-size:13px;line-height:1.2;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
    .assc-release-context-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:5px;color:rgba(255,255,255,.70);font-size:10px;line-height:1.15;font-weight:700;}
    .assc-release-context-meta span:not(:last-child)::after{content:"·";margin-left:6px;color:rgba(255,255,255,.35);}
    .assc-release-context-link{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 12px;border-radius:999px;border:1px solid rgba(229,9,20,.32);background:rgba(229,9,20,.12);color:#fff!important;text-decoration:none!important;font-size:11px;font-weight:900;}
    .assc-admin-release-link{font-weight:700;color:#e50914;text-decoration:none;}
    .assc-root.assc-unified[data-theme="light"] .assc-release-picker,.assc-root.assc-unified.is-light .assc-release-picker{background:#fff!important;border-color:#e5e7eb!important;box-shadow:0 10px 30px rgba(15,23,42,.05)!important;}
    .assc-root.assc-unified[data-theme="light"] .assc-release-picker-title,.assc-root.assc-unified.is-light .assc-release-picker-title{color:#101828!important;}
    .assc-root.assc-unified[data-theme="light"] .assc-release-picker-subtitle,.assc-root.assc-unified.is-light .assc-release-picker-subtitle,
    .assc-root.assc-unified[data-theme="light"] .assc-release-picker-count,.assc-root.assc-unified.is-light .assc-release-picker-count{color:#667085!important;}
    .assc-root.assc-unified[data-theme="light"] .assc-release-clear,.assc-root.assc-unified.is-light .assc-release-clear{background:#f9fafb!important;border-color:#e5e7eb!important;color:#101828!important;}
    .assc-root.assc-unified[data-theme="light"] .assc-release-form-note,.assc-root.assc-unified.is-light .assc-release-form-note{color:#667085!important;}
    .assc-root.assc-unified[data-theme="light"] .assc-dialog-release,.assc-root.assc-unified.is-light .assc-dialog-release{color:#b42318!important;background:#fff1f1!important;border-color:#ffd0d0!important;}
    .assc-root.assc-unified[data-theme="light"] .assc-release-context,.assc-root.assc-unified.is-light .assc-release-context{background:#fff!important;border-color:#e5e7eb!important;box-shadow:0 10px 30px rgba(15,23,42,.05)!important;}
    .assc-root.assc-unified[data-theme="light"] .assc-release-context-label,.assc-root.assc-unified.is-light .assc-release-context-label{color:#98a2b3!important;}
    .assc-root.assc-unified[data-theme="light"] .assc-release-context-title,.assc-root.assc-unified.is-light .assc-release-context-title{color:#101828!important;}
    .assc-root.assc-unified[data-theme="light"] .assc-release-context-meta,.assc-root.assc-unified.is-light .assc-release-context-meta{color:#667085!important;}
    .assc-new-ticket-form select:focus,
    .assc-new-ticket-form input:focus,
    .assc-new-ticket-form textarea:focus{
      outline:none;
      border-color: rgba(229,57,53,.35);
      box-shadow: 0 0 0 2px rgba(229,57,53,.18);
    }

    /* ===== Mobile ===== */
    .assc-mobile-back{ display:none; padding: 8px 10px; font-size: 12px; min-height: 40px; }

    @media (max-width: 980px){
      .assc-cabinet{ padding: 0 14px; }
      .assc-shell{ grid-template-columns: minmax(0,1fr); }
      .assc-root:not(.assc-mobile-chat-open) .assc-main{ display:none; }
      .assc-root.assc-mobile-chat-open .assc-sidebar{ display:none; }
      .assc-main{ height: calc(100vh - 180px); max-height: none; }
      .assc-mobile-back{ display:inline-flex; align-items:center; justify-content:center; }
      .assc-msg{ max-width: 92%; }
    }
.assc-attach-preview{
  margin-top: 8px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));
  gap:8px;
  width:100%;
  min-width:0;
}

.assc-attach-chip{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,0.06);
  max-width: 100%;
  min-width:0;
  position:relative;
}

.assc-attach-thumb{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.18);
  flex-shrink:0;
}

.assc-attach-ext{
  width: 46px;
  height: 36px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 10px;
  font-weight: 900;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.18);
  flex-shrink:0;
}

.assc-attach-text{ min-width:0; }
.assc-attach-name{
  overflow-wrap:anywhere;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}
.assc-attach-meta{
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.72);
}

.assc-attach-clear{
  margin-left: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  cursor: pointer;
  flex-shrink: 0;

  display:flex;
  align-items:center;
  justify-content:center;

  position: relative;
  color: transparent !important; /* гасим текст */
  overflow: hidden;
}

.assc-attach-clear::before{
  content:"";
  width: 14px;
  height: 14px;

  background: rgba(255,255,255,0.92);

  -webkit-mask-image: var(--assc-icon-close-attach);
  mask-image: var(--assc-icon-close-attach);

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: contain;
  mask-size: contain;
}

	
/* ===============================
   SVG ICONS (close + select arrow)
   =============================== */

.assc-root{
  /* 1) КРЕСТИК МОДАЛКИ */
  --assc-icon-close-modal: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%27-0.5%200%2025%2025%27%20fill%3D%27none%27%3E%3Cpath%20d%3D%27M3%2021.32L21%203.32001%27%20stroke%3D%27%23000%27%20stroke-width%3D%271.5%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3Cpath%20d%3D%27M3%203.32001L21%2021.32%27%20stroke%3D%27%23000%27%20stroke-width%3D%271.5%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E");

  /* 2) СТРЕЛКА СЕЛЕКТА */
  --assc-icon-chevron: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%3E%3Cpath%20d%3D%27M19%209L14%2014.1599C13.7429%2014.4323%2013.4329%2014.6493%2013.089%2014.7976C12.7451%2014.9459%2012.3745%2015.0225%2012%2015.0225C11.6255%2015.0225%2011.2549%2014.9459%2010.9109%2014.7976C10.567%2014.6493%2010.2571%2014.4323%2010%2014.1599L5%209%27%20stroke%3D%27%23000%27%20stroke-width%3D%271.5%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E");

  /* 3) КРЕСТИК ВЛОЖЕНИЯ */
 --assc-icon-close-attach: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20clip-rule%3D%27evenodd%27%20d%3D%27M10.9393%2012L6.9696%2015.9697L8.03026%2017.0304L12%2013.0607L15.9697%2017.0304L17.0304%2015.9697L13.0607%2012L17.0303%208.03039L15.9696%206.96973L12%2010.9393L8.03038%206.96973L6.96972%208.03039L10.9393%2012Z%27%20fill%3D%27%23000%27/%3E%3C/svg%3E");


  /* размеры */
  --assc-close-btn: 34px;
  --assc-close-icon: 18px;
  --assc-chevron: 18px;
}


/* ===== КРЕСТИК (no pink hover) ===== */
.assc-new-ticket-close{
  width: var(--assc-close-btn) !important;
  height: var(--assc-close-btn) !important;
  border-radius: 999px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  border: 1px solid rgba(255,255,255,0.18) !important;
  background: rgba(255,255,255,0.08) !important;

  padding: 0 !important;
  cursor: pointer !important;

  /* гасим любые “розовые” эффекты темы */
  color: #fff !important;
  outline: none !important;
  box-shadow: none !important;
  text-shadow: none !important;

  transition: background .18s ease, transform .18s ease, opacity .18s ease !important;
}

.assc-new-ticket-close::before{
  content:"";
  width: var(--assc-close-icon);
  height: var(--assc-close-icon);

  background: rgba(255,255,255,0.92);

  -webkit-mask-image: var(--assc-icon-close-modal);
  mask-image: var(--assc-icon-close-modal);

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}


.assc-new-ticket-close:hover{
  background: rgba(255,255,255,0.14) !important; /* НЕ розовый */
  transform: translateY(-1px) !important;
}

.assc-new-ticket-close:active{
  transform: translateY(0) !important;
}

.assc-new-ticket-close:focus{
  box-shadow: 0 0 0 2px rgba(255,255,255,0.18) !important;
}

/* ===== SELECT: белый текст + норм стрелка ===== */
.assc-new-ticket-form select{
  color: #fff !important;
  background: rgba(0,0,0,0.25) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;

  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  padding-right: 46px !important;
}

/* пункты */
.assc-new-ticket-form select option{
  background: #0b0c10 !important;
  color: #fff !important;
}

/* стрелка рисуется на wrapper */
.assc-select-wrap{
  position: relative;
}

.assc-select-wrap::after{
  content:"";
  position:absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);

  width: var(--assc-chevron);
  height: var(--assc-chevron);

  pointer-events:none;

  background: rgba(255,255,255,0.92);

  -webkit-mask-image: var(--assc-icon-chevron);
  mask-image: var(--assc-icon-chevron);

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: contain;
  mask-size: contain;
}


/* =========================================================
   MNRCM STATS STYLE OVERRIDE v2.0.3
   Функционал не меняется — только визуал кабинета.
========================================================= */
.assc-root.assc-unified{
  --assc-red:#ee0b14;
  --assc-red-soft:rgba(238,11,20,.10);
  --assc-sidebar-w:var(--mnrcm-sidebar-w,236px);
  --assc-sidebar-collapsed:var(--mnrcm-sidebar-collapsed,74px);
  min-height:100vh!important;
  padding:0!important;
  overflow-x:hidden!important;
  color:var(--assc-text)!important;
  background:var(--assc-page-bg)!important;
  font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif!important;
  font-weight:400!important;
}
.assc-root.assc-unified[data-theme="light"],
.assc-root.assc-unified.is-light{
  --assc-page-bg:#f4f6fa;
  --assc-panel:#ffffff;
  --assc-panel-2:#f8fafc;
  --assc-panel-3:#eef2f7;
  --assc-text:#111827;
  --assc-title:#111827;
  --assc-muted:#68758a;
  --assc-faint:#94a3b8;
  --assc-line:#e2e8f0;
  --assc-side-bg:#ffffff;
  --assc-side-border:#e2e8f0;
  --assc-input:#ffffff;
  --assc-shadow:0 18px 48px rgba(15,23,42,.08);
  --assc-bubble-artist:#ffffff;
  --assc-bubble-support:#fff4f4;
}
.assc-root.assc-unified[data-theme="dark"],
.assc-root.assc-unified.is-dark{
  --assc-page-bg:#090b10;
  --assc-panel:#11141b;
  --assc-panel-2:#151923;
  --assc-panel-3:#1b202b;
  --assc-text:#f9fafb;
  --assc-title:#ffffff;
  --assc-muted:#9aa4b5;
  --assc-faint:#6b7280;
  --assc-line:rgba(255,255,255,.10);
  --assc-side-bg:#10131a;
  --assc-side-border:rgba(255,255,255,.10);
  --assc-input:#0d1017;
  --assc-shadow:0 24px 70px rgba(0,0,0,.38);
  --assc-bubble-artist:#171b24;
  --assc-bubble-support:#211418;
}
.assc-root.assc-unified,
.assc-root.assc-unified *{
  font-weight:400!important;
}
.assc-root.assc-unified::after{
  display:none!important;
}
.assc-root.assc-unified::before{
  content:""!important;
  position:fixed!important;
  top:0!important;
  left:0!important;
  bottom:0!important;
  right:auto!important;
  width:var(--assc-sidebar-w)!important;
  background:var(--assc-side-bg)!important;
  border-right:1px solid var(--assc-side-border)!important;
  z-index:0!important;
  pointer-events:none!important;
  transform:none!important;
}
.assc-root.assc-unified.is-collapsed::before{
  width:var(--assc-sidebar-collapsed)!important;
}
.assc-root.assc-unified.no-mnrcm-menu::before{
  display:none!important;
}
.assc-root.assc-unified .mnrcm-sidebar{
  position:fixed!important;
  top:0!important;
  left:0!important;
  bottom:0!important;
  height:100vh!important;
  min-height:100vh!important;
  z-index:25!important;
}
.assc-root.assc-unified .assc-page{
  position:relative!important;
  z-index:2!important;
  width:calc(100vw - var(--assc-sidebar-w))!important;
  max-width:none!important;
  min-height:100vh!important;
  margin:0 0 0 var(--assc-sidebar-w)!important;
  padding:28px clamp(18px,2.1vw,34px) 38px!important;
  background:var(--assc-page-bg)!important;
}
.assc-root.assc-unified.is-collapsed .assc-page{
  width:calc(100vw - var(--assc-sidebar-collapsed))!important;
  margin-left:var(--assc-sidebar-collapsed)!important;
}
.assc-root.assc-unified.no-mnrcm-menu .assc-page{
  width:100vw!important;
  margin-left:0!important;
}
.assc-root.assc-unified .assc-cabinet{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
.assc-root.assc-unified .assc-hero,
.assc-root.assc-unified .assc-hero-logo,
.assc-root.assc-unified .assc-hero-fallback{
  display:none!important;
}
.assc-root.assc-unified .assc-page-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin:0 0 24px!important;
}
.assc-root.assc-unified .assc-kicker{
  margin:0 0 6px!important;
  color:var(--assc-muted)!important;
  font-size:12px!important;
  line-height:1.2!important;
  letter-spacing:.22em!important;
  text-transform:uppercase!important;
  font-weight:600!important;
}
.assc-root.assc-unified .assc-page-title{
  margin:0!important;
  color:var(--assc-red)!important;
  font-size:clamp(44px,4.8vw,70px)!important;
  line-height:.95!important;
  letter-spacing:-.055em!important;
  font-weight:600!important;
}
.assc-root.assc-unified .assc-page-subtitle{
  max-width:760px!important;
  margin:14px 0 0!important;
  color:var(--assc-muted)!important;
  font-size:15px!important;
  line-height:1.45!important;
}

.assc-root.assc-unified .assc-response-time-card{
  width:max-content!important;
  max-width:100%!important;
  margin:16px 0 0!important;
  padding:12px 14px!important;
  display:inline-grid!important;
  grid-template-columns:auto auto!important;
  grid-template-areas:"label value" "note note"!important;
  align-items:center!important;
  gap:3px 10px!important;
  border:1px solid var(--assc-line)!important;
  border-radius:18px!important;
  background:var(--assc-panel)!important;
  box-shadow:var(--assc-shadow)!important;
  color:var(--assc-text)!important;
}
.assc-root.assc-unified .assc-response-time-card span{
  grid-area:label!important;
  color:var(--assc-muted)!important;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:700!important;
  letter-spacing:.02em!important;
}
.assc-root.assc-unified .assc-response-time-card strong{
  grid-area:value!important;
  color:var(--assc-red)!important;
  font-size:13px!important;
  line-height:1.15!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.assc-root.assc-unified .assc-response-time-card em{
  grid-area:note!important;
  color:var(--assc-muted)!important;
  font-size:10px!important;
  line-height:1.2!important;
  font-style:normal!important;
}
.assc-root.assc-unified .assc-sidebar-response-time{
  margin:10px 0 0!important;
  padding:9px 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  border:1px solid var(--assc-line)!important;
  border-radius:15px!important;
  background:rgba(238,11,20,.07)!important;
}
.assc-root.assc-unified .assc-sidebar-response-time span{
  color:var(--assc-muted)!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:700!important;
}
.assc-root.assc-unified .assc-sidebar-response-time strong{
  color:var(--assc-red)!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.assc-root.assc-unified .assc-new-ticket-speed{
  margin:4px 34px 0 0!important;
  color:var(--assc-muted)!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-weight:600!important;
}
.assc-root.assc-unified .assc-new-ticket-speed strong{
  color:var(--assc-red)!important;
  font-weight:800!important;
}
.assc-root.assc-unified .assc-theme-toggle{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:50px!important;
  height:50px!important;
  border-radius:18px!important;
  border:1px solid var(--assc-line)!important;
  background:var(--assc-panel)!important;
  color:var(--assc-text)!important;
  box-shadow:var(--assc-shadow)!important;
  cursor:pointer!important;
  transition:transform .2s ease,border-color .2s ease,color .2s ease!important;
}
.assc-root.assc-unified .assc-theme-toggle:hover{
  transform:translateY(-1px)!important;
  border-color:rgba(238,11,20,.35)!important;
  color:var(--assc-red)!important;
}
.assc-root.assc-unified .assc-theme-toggle svg{
  width:19px!important;
  height:19px!important;
  min-width:19px!important;
  min-height:19px!important;
  max-width:19px!important;
  max-height:19px!important;
  display:block!important;
  color:currentColor!important;
  position:static!important;
  transform:none!important;
  pointer-events:none!important;
}
.assc-root.assc-unified .assc-theme-icon-dark,
.assc-root.assc-unified .assc-theme-icon-light{
  align-items:center!important;
  justify-content:center!important;
  width:20px!important;
  height:20px!important;
  pointer-events:none!important;
  line-height:0!important;
}
.assc-root.assc-unified[data-theme="light"] .assc-theme-icon-dark,
.assc-root.assc-unified.is-light .assc-theme-icon-dark{display:none!important;}
.assc-root.assc-unified[data-theme="light"] .assc-theme-icon-light,
.assc-root.assc-unified.is-light .assc-theme-icon-light{display:inline-flex!important;}
.assc-root.assc-unified[data-theme="dark"] .assc-theme-icon-light,
.assc-root.assc-unified.is-dark .assc-theme-icon-light{display:none!important;}
.assc-root.assc-unified[data-theme="dark"] .assc-theme-icon-dark,
.assc-root.assc-unified.is-dark .assc-theme-icon-dark{display:inline-flex!important;}

.assc-root.assc-unified .assc-shell{
  display:grid!important;
  grid-template-columns:minmax(300px,360px) minmax(0,1fr)!important;
  gap:18px!important;
  width:100%!important;
  min-height:calc(100vh - 156px)!important;
}
.assc-root.assc-unified .assc-sidebar,
.assc-root.assc-unified .assc-main,
.assc-root.assc-unified .assc-new-ticket-dialog{
  background:var(--assc-panel)!important;
  border:1px solid var(--assc-line)!important;
  border-radius:28px!important;
  box-shadow:var(--assc-shadow)!important;
  color:var(--assc-text)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.assc-root.assc-unified .assc-sidebar{
  padding:18px!important;
  max-height:calc(100vh - 154px)!important;
  overflow:hidden!important;
}
.assc-root.assc-unified .assc-main{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  overflow:hidden!important;
}
.assc-root.assc-unified .assc-sidebar-title,
.assc-root.assc-unified .assc-thread-title,
.assc-root.assc-unified .assc-new-ticket-title,
.assc-root.assc-unified .assc-msg-author,
.assc-root.assc-unified .assc-ticket-number,
.assc-root.assc-unified .assc-dialog-title{
  color:var(--assc-title)!important;
  font-weight:600!important;
}
.assc-root.assc-unified .assc-sidebar-sub,
.assc-root.assc-unified .assc-thread-meta,
.assc-root.assc-unified .assc-msg-meta,
.assc-root.assc-unified .assc-dialog-preview,
.assc-root.assc-unified .assc-dialog-time,
.assc-root.assc-unified .assc-new-ticket-hint,
.assc-root.assc-unified .assc-reply-note,
.assc-root.assc-unified .assc-dialogs-empty,
.assc-root.assc-unified .assc-thread-placeholder,
.assc-root.assc-unified .assc-thread-closed-info{
  color:var(--assc-muted)!important;
}
.assc-root.assc-unified input[type="text"],
.assc-root.assc-unified input[type="search"],
.assc-root.assc-unified textarea,
.assc-root.assc-unified select,
.assc-root.assc-unified .assc-ticket-search,
.assc-root.assc-unified .assc-topic-filter,
.assc-root.assc-unified .assc-new-ticket-owner,
.assc-root.assc-unified .assc-new-ticket-topic{
  background:var(--assc-input)!important;
  border:1px solid var(--assc-line)!important;
  border-radius:18px!important;
  color:var(--assc-text)!important;
  box-shadow:none!important;
  outline:none!important;
  font-weight:400!important;
}
.assc-root.assc-unified input::placeholder,
.assc-root.assc-unified textarea::placeholder{
  color:var(--assc-faint)!important;
}
.assc-root.assc-unified input:focus,
.assc-root.assc-unified textarea:focus,
.assc-root.assc-unified select:focus{
  border-color:rgba(238,11,20,.45)!important;
  box-shadow:0 0 0 3px rgba(238,11,20,.10)!important;
}
.assc-root.assc-unified select option{
  background:var(--assc-panel)!important;
  color:var(--assc-text)!important;
}
.assc-root.assc-unified .assc-filters{
  gap:8px!important;
}
.assc-root.assc-unified .assc-filter-btn,
.assc-root.assc-unified .assc-new-ticket-btn,
.assc-root.assc-unified .assc-send-btn,
.assc-root.assc-unified .assc-close-ticket-btn,
.assc-root.assc-unified .assc-file-label{
  border-radius:999px!important;
  font-weight:600!important;
  box-shadow:none!important;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease!important;
}
.assc-root.assc-unified .assc-quick-reply-btn{
  border-radius:12px!important;
  font-weight:600!important;
  box-shadow:none!important;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease!important;
}
.assc-root.assc-unified .assc-new-ticket-btn,
.assc-root.assc-unified .assc-send-btn,
.assc-root.assc-unified .assc-close-ticket-btn{
  background:var(--assc-red)!important;
  border:1px solid var(--assc-red)!important;
  color:#fff!important;
}
.assc-root.assc-unified .assc-close-ticket-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:128px!important;
  min-height:38px!important;
  padding:8px 13px!important;
  font-size:12px!important;
  line-height:1!important;
  white-space:nowrap!important;
  opacity:1!important;
  visibility:visible!important;
}
.assc-root.assc-unified .assc-filter-btn,
.assc-root.assc-unified .assc-file-label,
.assc-root.assc-unified .assc-quick-reply-btn{
  background:var(--assc-panel-2)!important;
  border:1px solid var(--assc-line)!important;
  color:var(--assc-text)!important;
}
.assc-root.assc-unified .assc-quick-replies-title{color:var(--assc-text)!important;}
.assc-root.assc-unified .assc-quick-replies-hint,
.assc-root.assc-unified .assc-quick-reply-preview{color:var(--assc-muted)!important;}
.assc-root.assc-unified .assc-quick-filter{
  background:transparent!important;
  border:1px solid var(--assc-line)!important;
  color:var(--assc-muted)!important;
}
.assc-root.assc-unified .assc-quick-filter.is-active{
  background:rgba(238,11,20,.12)!important;
  border-color:rgba(238,11,20,.38)!important;
  color:var(--assc-text)!important;
}
.assc-root.assc-unified .assc-quick-reply-group{color:var(--assc-red)!important;}
.assc-root.assc-unified .assc-filter-btn.is-active{
  background:var(--assc-red)!important;
  border-color:var(--assc-red)!important;
  color:#fff!important;
}
.assc-root.assc-unified .assc-dialogs{
  margin-top:14px!important;
  overflow:auto!important;
  padding-right:4px!important;
}
.assc-root.assc-unified .assc-dialog-item{
  background:var(--assc-panel-2)!important;
  border:1px solid var(--assc-line)!important;
  border-radius:22px!important;
  color:var(--assc-text)!important;
  box-shadow:none!important;
}
.assc-root.assc-unified .assc-dialog-item.is-active,
.assc-root.assc-unified .assc-dialog-item:hover{
  border-color:rgba(238,11,20,.42)!important;
  background:var(--assc-red-soft)!important;
}
.assc-root.assc-unified .assc-dialog-avatar,
.assc-root.assc-unified .assc-msg-avatar{
  background-color:var(--assc-panel-3)!important;
  border:1px solid var(--assc-line)!important;
}
.assc-root.assc-unified .assc-avatar-support{
  background:var(--assc-red)!important;
  color:#fff!important;
  border-color:var(--assc-red)!important;
}
.assc-root.assc-unified .assc-avatar-support.is-photo{
  background-color:var(--assc-panel-3)!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-position:center!important;
  color:transparent!important;
  border-color:rgba(238,11,20,.48)!important;
  box-shadow:0 0 0 2px rgba(238,11,20,.14),0 12px 28px rgba(0,0,0,.28)!important;
}
.assc-root.assc-unified .mnrpd-feed-badge{
  display:inline-flex!important;align-items:center!important;gap:5px!important;
  margin-left:7px!important;vertical-align:middle!important;border-radius:999px!important;
  padding:3px 7px!important;font:750 9px/1 Montserrat,Arial,sans-serif!important;
  letter-spacing:.02em!important;text-transform:uppercase!important;white-space:nowrap!important;
}
.assc-root.assc-unified .mnrpd-feed-badge i{display:inline-flex!important;align-items:center!important;justify-content:center!important;font-style:normal!important}
.assc-root.assc-unified .mnrpd-feed-badge.is-team{background:linear-gradient(135deg,#f90202,#111)!important;color:#fff!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:0 8px 18px rgba(249,2,2,.22)!important}
.assc-root.assc-unified .mnrpd-feed-badge.is-premium{background:linear-gradient(135deg,#2487ff,#7b61ff)!important;color:#fff!important;border:0!important;box-shadow:0 8px 18px rgba(36,135,255,.22)!important}
.assc-root.assc-unified .assc-dialog-item.is-premium-priority{
  border-color:rgba(36,135,255,.34)!important;
  box-shadow:inset 3px 0 0 #2487ff!important;
}
.assc-root.assc-unified .assc-dialog-item.is-premium-priority.is-active,
.assc-root.assc-unified .assc-dialog-item.is-premium-priority:hover{
  border-color:rgba(123,97,255,.58)!important;
  background:linear-gradient(135deg,rgba(36,135,255,.10),rgba(123,97,255,.07))!important;
}
.assc-root.assc-unified .assc-badge,
.assc-root.assc-unified .assc-thread-topic-badge,
.assc-root.assc-unified .assc-dialog-topic,
.assc-root.assc-unified .assc-unread-badge,
.assc-root.assc-unified .assc-rating-badge{
  border-radius:999px!important;
  font-weight:600!important;
}
.assc-root.assc-unified .assc-badge-open{
  background:#ee0b14!important;
  border:1px solid rgba(238,11,20,.72)!important;
  color:#ffffff!important;
  box-shadow:0 8px 20px rgba(238,11,20,.18)!important;
}
.assc-root.assc-unified .assc-badge-in_work,
.assc-root.assc-unified .assc-badge-waiting_user{
  background:#111113!important;
  border:1px solid rgba(255,255,255,.18)!important;
  color:#ffffff!important;
  box-shadow:0 8px 20px rgba(0,0,0,.16)!important;
}
.assc-root.assc-unified .assc-badge-closed{
  background:#ef4444!important;
  border:1px solid rgba(239,68,68,.72)!important;
  color:#ffffff!important;
  box-shadow:0 8px 20px rgba(239,68,68,.18)!important;
}
.assc-root.assc-unified .assc-thread-status-wrap{
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
}
.assc-root.assc-unified .assc-thread-badges{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
}
.assc-root.assc-unified .assc-thread-header{
  background:var(--assc-panel)!important;
  border-bottom:1px solid var(--assc-line)!important;
  color:var(--assc-text)!important;
}
.assc-root.assc-unified .assc-messages{
  background:var(--assc-page-bg)!important;
}
.assc-root.assc-unified .assc-thread-inner{
  gap:12px!important;
}
.assc-root.assc-unified .assc-msg-bubble{
  background:var(--assc-bubble-artist)!important;
  border:1px solid var(--assc-line)!important;
  color:var(--assc-text)!important;
  border-radius:22px!important;
  box-shadow:0 10px 30px rgba(15,23,42,.06)!important;
}
.assc-root.assc-unified .assc-msg-support .assc-msg-bubble{
  background:var(--assc-bubble-support)!important;
  border-color:rgba(238,11,20,.20)!important;
}
.assc-root.assc-unified .assc-msg-body,
.assc-root.assc-unified .assc-msg-body p,
.assc-root.assc-unified .assc-msg-body li,
.assc-root.assc-unified .assc-msg-body span,
.assc-root.assc-unified .assc-msg-body div{
  color:var(--assc-text)!important;
}
.assc-root.assc-unified .assc-msg-body a{
  color:var(--assc-red)!important;
}
.assc-root.assc-unified .assc-reply-form{
  background:var(--assc-panel)!important;
  border-top:1px solid var(--assc-line)!important;
}
.assc-root.assc-unified .assc-new-ticket-modal{
  z-index:99999!important;
}
.assc-root.assc-unified .assc-new-ticket-backdrop{
  background:rgba(15,23,42,.45)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
.assc-root.assc-unified .assc-new-ticket-dialog{
  width:min(720px,calc(100vw - 32px))!important;
  max-height:calc(100vh - 72px)!important;
  overflow:auto!important;
}
.assc-root.assc-unified .assc-new-ticket-close{
  background:var(--assc-panel-2)!important;
  border:1px solid var(--assc-line)!important;
}
.assc-root.assc-unified .assc-new-ticket-close::before,
.assc-root.assc-unified .assc-select-wrap::after{
  background:var(--assc-text)!important;
}
.assc-root.assc-unified .assc-mobile-back{
  background:var(--assc-panel-2)!important;
  border:1px solid var(--assc-line)!important;
  color:var(--assc-text)!important;
  border-radius:999px!important;
}
.assc-root.assc-unified .assc-files .assc-file{
  border-color:var(--assc-line)!important;
  background:var(--assc-panel-2)!important;
  color:var(--assc-text)!important;
}
.assc-root.assc-unified .assc-file-ext{
  background:var(--assc-red)!important;
  color:#fff!important;
}
.assc-root.assc-unified .assc-ticket-rating{
  background:var(--assc-panel-2)!important;
  border:1px solid var(--assc-line)!important;
  border-radius:20px!important;
  color:var(--assc-text)!important;
}
.assc-root.assc-unified .assc-rate-btn{
  background:var(--assc-panel)!important;
  border:1px solid var(--assc-line)!important;
}
.assc-root.assc-unified svg{
  max-width:22px!important;
  max-height:22px!important;
}

@media(max-width:1100px){
  .assc-root.assc-unified .assc-shell{
    grid-template-columns:minmax(280px,330px) minmax(0,1fr)!important;
  }
}
@media(max-width:980px){
  .assc-root.assc-unified::before{display:none!important;}
  .assc-root.assc-unified .mnrcm-sidebar{
    position:sticky!important;
    top:0!important;
    height:auto!important;
    min-height:0!important;
  }
  .assc-root.assc-unified .assc-page,
  .assc-root.assc-unified.is-collapsed .assc-page,
  .assc-root.assc-unified.no-mnrcm-menu .assc-page{
    width:100vw!important;
    margin-left:0!important;
    padding:18px 14px 32px!important;
  }
  .assc-root.assc-unified .assc-shell{
    grid-template-columns:1fr!important;
    min-height:auto!important;
  }
  .assc-root.assc-unified .assc-sidebar,
  .assc-root.assc-unified .assc-main{
    max-height:none!important;
    min-height:calc(100vh - 160px)!important;
  }
}
@media(max-width:680px){
  .assc-root.assc-unified .assc-page-head{
    display:block!important;
  }
  .assc-root.assc-unified .assc-theme-toggle{
    margin-top:14px!important;
  }
  .assc-root.assc-unified .assc-page-title{
    font-size:42px!important;
  }
  .assc-root.assc-unified .assc-sidebar,
  .assc-root.assc-unified .assc-main,
  .assc-root.assc-unified .assc-new-ticket-dialog{
    border-radius:24px!important;
  }
}



/* ===== v2.0.1: нормальная посадка списка тикетов ===== */
.assc-root.assc-unified .assc-shell{
  grid-template-columns:minmax(380px,440px) minmax(0,1fr)!important;
  align-items:stretch!important;
}
.assc-root.assc-unified .assc-sidebar{
  height:calc(100vh - 156px)!important;
  min-height:640px!important;
  max-height:none!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  padding:16px!important;
}
.assc-root.assc-unified .assc-sidebar-header,
.assc-root.assc-unified .assc-ticket-search-wrap,
.assc-root.assc-unified .assc-topic-filter-wrap,
.assc-root.assc-unified .assc-filters,
.assc-root.assc-unified .assc-new-ticket-btn{
  flex:0 0 auto!important;
}
.assc-root.assc-unified .assc-ticket-search-wrap{
  margin:10px 0 8px!important;
}
.assc-root.assc-unified .assc-topic-filter-wrap{
  margin:0 0 8px!important;
}
.assc-root.assc-unified .assc-filters{
  margin:8px 0 10px!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
.assc-root.assc-unified .assc-filter-btn{
  min-height:34px!important;
  padding:8px 10px!important;
  font-size:10px!important;
}
.assc-root.assc-unified .assc-new-ticket-btn{
  min-height:42px!important;
  padding:10px 14px!important;
  margin-bottom:10px!important;
}
.assc-root.assc-unified .assc-dialogs{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  gap:9px!important;
  padding:0 4px 4px 0!important;
  scrollbar-width:thin!important;
}
.assc-root.assc-unified .assc-dialog-item{
  display:flex!important;
  flex-direction:column!important;
  flex:0 0 auto!important;
  width:100%!important;
  min-height:82px!important;
  height:auto!important;
  max-height:none!important;
  padding:10px 11px!important;
  overflow:visible!important;
}
.assc-root.assc-unified .assc-dialog-main{
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
}
.assc-root.assc-unified .assc-dialog-topline{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  min-width:0!important;
}
.assc-root.assc-unified .assc-dialog-chips{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  flex:1 1 auto!important;
  max-width:none!important;
  overflow:hidden!important;
  flex-wrap:nowrap!important;
}
.assc-root.assc-unified .assc-dialog-rightchips{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  flex:0 0 auto!important;
}
.assc-root.assc-unified .assc-dialog-bodyrow{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
}
.assc-root.assc-unified .assc-dialog-avatar{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
}
.assc-root.assc-unified .assc-dialog-text{
  min-width:0!important;
  display:block!important;
  overflow:hidden!important;
}
.assc-root.assc-unified .assc-dialog-title{
  display:block!important;
  max-width:100%!important;
  font-size:12.5px!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.assc-root.assc-unified .assc-dialog-meta{
  display:grid!important;
  grid-template-columns:minmax(0,.42fr) minmax(0,.58fr)!important;
  gap:6px!important;
  margin-top:4px!important;
  min-width:0!important;
  overflow:hidden!important;
}
.assc-root.assc-unified .assc-dialog-user,
.assc-root.assc-unified .assc-dialog-preview{
  display:block!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:10.5px!important;
  line-height:1.25!important;
}
.assc-root.assc-unified .assc-ticket-number,
.assc-root.assc-unified .assc-dialog-topic,
.assc-root.assc-unified .assc-badge{
  min-height:20px!important;
  line-height:18px!important;
  padding:2px 7px!important;
  font-size:9px!important;
  white-space:nowrap!important;
}
.assc-root.assc-unified .assc-dialog-topic{
  max-width:135px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.assc-root.assc-unified .assc-main{
  height:calc(100vh - 156px)!important;
  min-height:640px!important;
  max-height:none!important;
}
@media(max-width:1240px){
  .assc-root.assc-unified .assc-shell{
    grid-template-columns:minmax(350px,390px) minmax(0,1fr)!important;
  }
  .assc-root.assc-unified .assc-dialog-meta{
    grid-template-columns:1fr!important;
    gap:2px!important;
  }
}
@media(max-width:980px){
  .assc-root.assc-unified .assc-shell{
    grid-template-columns:1fr!important;
  }
  .assc-root.assc-unified .assc-sidebar,
  .assc-root.assc-unified .assc-main{
    height:auto!important;
    min-height:calc(100vh - 160px)!important;
  }
  .assc-root.assc-unified .assc-dialogs{
    max-height:52vh!important;
  }
}
@media(max-width:680px){
  .assc-root.assc-unified .assc-dialog-item{
    min-height:78px!important;
  }
  .assc-root.assc-unified .assc-dialog-meta{
    grid-template-columns:1fr!important;
  }
}


/* =========================================================
   v2.0.4 — MOBILE TICKET BACK BUTTON FIX
   Кнопка возврата больше не теряется внизу: отдельная верхняя панель,
   закреплённая в мобильном открытом тикете.
========================================================= */
.assc-root.assc-unified .assc-mobile-thread-toolbar{
  display:none!important;
}
@media(min-width:981px){
  .assc-root.assc-unified .assc-mobile-thread-toolbar,
  .assc-root.assc-unified .assc-mobile-back{
    display:none!important;
  }
}
@media(max-width:980px){
  .assc-root.assc-unified.assc-mobile-chat-open .assc-main{
    display:flex!important;
  }
  .assc-root.assc-unified.assc-mobile-chat-open .assc-sidebar{
    display:none!important;
  }
  .assc-root.assc-unified .assc-thread{
    position:relative!important;
    overflow:visible!important;
  }
  .assc-root.assc-unified .assc-thread-container{
    overflow:visible!important;
  }
  .assc-root.assc-unified .assc-mobile-thread-toolbar{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex:0 0 auto!important;
    position:sticky!important;
    top:0!important;
    z-index:80!important;
    padding:0 0 10px!important;
    margin:0 0 8px!important;
    background:var(--assc-page-bg)!important;
    border-bottom:1px solid var(--assc-line)!important;
  }
  .assc-root.assc-unified .assc-mobile-back.assc-mobile-back-top{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-width:0!important;
    min-height:46px!important;
    padding:0 16px!important;
    border-radius:999px!important;
    background:var(--assc-panel-2)!important;
    border:1px solid var(--assc-line)!important;
    color:var(--assc-text)!important;
    font-size:13px!important;
    line-height:1!important;
    font-weight:900!important;
    box-shadow:0 10px 28px rgba(15,23,42,.10)!important;
    pointer-events:auto!important;
    opacity:1!important;
    visibility:visible!important;
    -webkit-tap-highlight-color:transparent!important;
    touch-action:manipulation!important;
  }
  .assc-root.assc-unified .assc-mobile-back.assc-mobile-back-top::before{
    opacity:.18!important;
  }
  .assc-root.assc-unified .assc-mobile-back.assc-mobile-back-top::after{
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.20)!important;
  }
  .assc-root.assc-unified .assc-thread-header{
    position:sticky!important;
    top:57px!important;
    z-index:70!important;
    align-items:flex-start!important;
    gap:10px!important;
    margin:0 0 10px!important;
    padding:10px!important;
    border:1px solid var(--assc-line)!important;
    border-radius:20px!important;
    background:var(--assc-panel)!important;
    box-shadow:0 10px 30px rgba(15,23,42,.06)!important;
  }
  .assc-root.assc-unified .assc-thread-left{
    align-items:flex-start!important;
    gap:0!important;
  }
  .assc-root.assc-unified .assc-thread-title-row{
    align-items:flex-start!important;
    gap:7px!important;
    flex-wrap:wrap!important;
  }
  .assc-root.assc-unified .assc-thread-title{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.2!important;
    font-size:15px!important;
  }
  .assc-root.assc-unified .assc-thread-meta{
    gap:6px!important;
    font-size:10.5px!important;
  }
  .assc-root.assc-unified .assc-thread-status-wrap{
    flex:0 0 auto!important;
    align-items:flex-end!important;
  }
  .assc-root.assc-unified .assc-messages{
    min-height:calc(100vh - 330px)!important;
  }
}
@media(max-width:520px){
  .assc-root.assc-unified .assc-thread-header{
    flex-direction:column!important;
  }
  .assc-root.assc-unified .assc-thread-status-wrap{
    width:100%!important;
    flex-direction:row!important;
    justify-content:space-between!important;
    align-items:center!important;
  }
  .assc-root.assc-unified .assc-thread-badges{
    justify-content:flex-start!important;
  }
  .assc-root.assc-unified .assc-close-ticket-btn{
    min-height:36px!important;
    padding:7px 10px!important;
    font-size:11px!important;
  }
}

/* =========================================================
   v2.0.5 — MOBILE LIST/CARD FIX
   На мобильном список тикетов и чат больше не показываются одновременно.
   В обычном состоянии виден только список; чат открывается только по клику на тикет.
========================================================= */
@media(max-width:980px){
  .assc-root.assc-unified:not(.assc-mobile-chat-open) .assc-main{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }
  .assc-root.assc-unified:not(.assc-mobile-chat-open) .assc-sidebar{
    display:flex!important;
    visibility:visible!important;
    pointer-events:auto!important;
    min-height:auto!important;
  }
  .assc-root.assc-unified.assc-mobile-chat-open .assc-main{
    display:flex!important;
    visibility:visible!important;
    pointer-events:auto!important;
    height:auto!important;
    min-height:calc(100vh - 160px)!important;
    padding:14px!important;
    margin:0!important;
    border:1px solid var(--assc-line)!important;
    box-shadow:var(--assc-shadow)!important;
    overflow:visible!important;
  }
  .assc-root.assc-unified.assc-mobile-chat-open .assc-sidebar{
    display:none!important;
  }
}




/* =========================================================
   v2.0.5 — FIX: скрытие элементов при фильтрах
   В unified-стиле у .assc-dialog-item стоит display:flex!important, поэтому
   inline display:none не перебивал CSS. Фильтры теперь используют класс/hidden.
========================================================= */
.assc-root.assc-unified .assc-dialog-item.assc-is-filter-hidden,
.assc-root.assc-unified .assc-dialog-item[hidden]{
  display:none!important;
}

/* =========================================================
   v2.1.2 — FIX: нормальная модалка нового тикета
   Модалка больше не центрируется внутри правой колонки чата,
   не режется контейнером и не остаётся узкой из-за старого max-width:440px.
========================================================= */
body.assc-new-ticket-modal-open{
  overflow:hidden!important;
}
.assc-root.assc-unified .assc-new-ticket-modal[aria-hidden="true"]{
  display:none!important;
}
.assc-root.assc-unified .assc-new-ticket-modal{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:100vh!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  box-sizing:border-box!important;
  z-index:2147483000!important;
  overflow:hidden!important;
}
body.admin-bar .assc-root.assc-unified .assc-new-ticket-modal{
  padding-top:50px!important;
}
.assc-root.assc-unified .assc-new-ticket-backdrop{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  background:rgba(15,23,42,.52)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
.assc-root.assc-unified .assc-new-ticket-dialog{
  position:relative!important;
  z-index:2!important;
  width:min(680px,100%)!important;
  max-width:680px!important;
  min-width:0!important;
  max-height:calc(100vh - 48px)!important;
  max-height:calc(100dvh - 48px)!important;
  margin:0 auto!important;
  padding:18px!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  transform:none!important;
  box-sizing:border-box!important;
}
body.admin-bar .assc-root.assc-unified .assc-new-ticket-dialog{
  max-height:calc(100vh - 78px)!important;
  max-height:calc(100dvh - 78px)!important;
}
.assc-root.assc-unified .assc-new-ticket-dialog::before{
  display:none!important;
}
.assc-root.assc-unified .assc-new-ticket-header{
  flex:0 0 auto!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  align-items:start!important;
  gap:10px!important;
  margin:0 0 12px!important;
  min-width:0!important;
}
.assc-root.assc-unified .assc-new-ticket-title{
  min-width:0!important;
  line-height:1.2!important;
}
.assc-root.assc-unified .assc-new-ticket-speed{
  margin:0!important;
  white-space:normal!important;
  text-align:right!important;
  line-height:1.25!important;
}
.assc-root.assc-unified .assc-new-ticket-close{
  flex:0 0 auto!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
}
.assc-root.assc-unified .assc-new-ticket-form{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:2px 4px 4px!important;
  margin:0!important;
  box-sizing:border-box!important;
  scrollbar-width:thin!important;
}
.assc-root.assc-unified .assc-new-ticket-form *,
.assc-root.assc-unified .assc-new-ticket-form *::before,
.assc-root.assc-unified .assc-new-ticket-form *::after{
  box-sizing:border-box!important;
}
.assc-root.assc-unified .assc-new-ticket-form .assc-select-wrap,
.assc-root.assc-unified .assc-new-ticket-form input[type="text"],
.assc-root.assc-unified .assc-new-ticket-form input[type="search"],
.assc-root.assc-unified .assc-new-ticket-form textarea{
  margin-bottom:8px!important;
}
.assc-root.assc-unified .assc-new-ticket-form select,
.assc-root.assc-unified .assc-new-ticket-form input[type="text"],
.assc-root.assc-unified .assc-new-ticket-form input[type="search"]{
  min-height:42px!important;
  padding-top:9px!important;
  padding-bottom:9px!important;
}
.assc-root.assc-unified .assc-new-ticket-form textarea{
  min-height:84px!important;
  max-height:150px!important;
}
.assc-root.assc-unified .assc-new-ticket-form .assc-release-picker{
  margin:0 0 8px!important;
  padding:10px!important;
  border-radius:18px!important;
}
.assc-root.assc-unified .assc-new-ticket-form .assc-release-picker-head{
  margin-bottom:8px!important;
}
.assc-root.assc-unified .assc-new-ticket-form .assc-release-picker-count{
  margin:0 0 6px!important;
}
.assc-root.assc-unified .assc-new-ticket-form .assc-release-form-note{
  margin:0 0 2px!important;
}
.assc-root.assc-unified .assc-new-ticket-form .assc-quick-replies{
  margin:0 0 8px!important;
  padding:8px!important;
}
.assc-root.assc-unified .assc-new-ticket-form .assc-quick-replies-title{
  font-size:10px!important;
}
.assc-root.assc-unified .assc-new-ticket-form .assc-quick-replies-list{
  max-height:210px!important;
  overflow:auto!important;
}
.assc-root.assc-unified .assc-new-ticket-form .assc-quick-reply-btn{
  max-width:100%!important;
  min-height:66px!important;
  padding:8px 9px!important;
}
.assc-root.assc-unified .assc-new-ticket-form .assc-reply-footer{
  position:sticky!important;
  bottom:0!important;
  z-index:5!important;
  padding:8px 0 0!important;
  margin:4px 0 0!important;
  background:var(--assc-panel)!important;
  border-top:1px solid var(--assc-line)!important;
}
.assc-root.assc-unified .assc-new-ticket-form .assc-send-btn,
.assc-root.assc-unified .assc-new-ticket-form .assc-file-label{
  min-height:40px!important;
}
@media(min-width:760px){
  .assc-root.assc-unified .assc-new-ticket-form.assc-new-ticket-form{
    padding-right:6px!important;
  }
  .assc-root.assc-unified .assc-new-ticket-form .assc-release-picker{
    padding:12px!important;
  }
}
@media(max-width:782px){
  body.admin-bar .assc-root.assc-unified .assc-new-ticket-modal{
    padding-top:62px!important;
  }
  body.admin-bar .assc-root.assc-unified .assc-new-ticket-dialog{
    max-height:calc(100vh - 86px)!important;
    max-height:calc(100dvh - 86px)!important;
  }
}
@media(max-width:560px){
  .assc-root.assc-unified .assc-new-ticket-modal{
    align-items:stretch!important;
    padding:10px!important;
  }
  body.admin-bar .assc-root.assc-unified .assc-new-ticket-modal{
    padding-top:56px!important;
  }
  .assc-root.assc-unified .assc-new-ticket-dialog{
    width:100%!important;
    max-width:none!important;
    max-height:none!important;
    height:100%!important;
    border-radius:22px!important;
    padding:14px!important;
  }
  .assc-root.assc-unified .assc-new-ticket-header{
    grid-template-columns:minmax(0,1fr) auto!important;
  }
  .assc-root.assc-unified .assc-new-ticket-speed{
    display:none!important;
  }
  .assc-root.assc-unified .assc-new-ticket-form .assc-reply-footer{
    flex-wrap:wrap!important;
    gap:8px!important;
  }
  .assc-root.assc-unified .assc-new-ticket-form .assc-file-label,
  .assc-root.assc-unified .assc-new-ticket-form .assc-send-btn{
    width:100%!important;
  }
}


/* =========================================================
   v2.1.3 — единая кнопка вложения без «кнопки внутри кнопки»
========================================================= */
.assc-root.assc-unified .assc-file-label{
  appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:126px!important;
  min-height:40px!important;
  padding:0 14px!important;
  border:1px solid var(--assc-line)!important;
  border-radius:999px!important;
  background:var(--assc-panel-2)!important;
  color:var(--assc-text)!important;
  box-shadow:none!important;
  cursor:pointer!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
.assc-root.assc-unified .assc-file-label:hover{
  border-color:rgba(238,11,20,.48)!important;
  background:rgba(238,11,20,.075)!important;
  color:var(--assc-text)!important;
  transform:translateY(-1px)!important;
}
.assc-root.assc-unified .assc-file-label:focus-within{
  border-color:rgba(238,11,20,.58)!important;
  box-shadow:0 0 0 3px rgba(238,11,20,.10)!important;
}
.assc-root.assc-unified .assc-file-label-content{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:auto!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:inherit!important;
  line-height:1!important;
  transform:none!important;
  filter:none!important;
}
.assc-root.assc-unified .assc-file-label-content::before,
.assc-root.assc-unified .assc-file-label-content::after,
.assc-root.assc-unified .assc-file-label-content i::before,
.assc-root.assc-unified .assc-file-label-content i::after,
.assc-root.assc-unified .assc-file-label-content b::before,
.assc-root.assc-unified .assc-file-label-content b::after{
  content:none!important;
  display:none!important;
}
.assc-root.assc-unified .assc-file-label-content i,
.assc-root.assc-unified .assc-file-label-content b{
  display:inline!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:inherit!important;
  font-style:normal!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1!important;
  transform:none!important;
  filter:none!important;
}


    /* v7.9.566 — visible notice when AJAX authentication denies polling. */
    .assc-root .assc-poll-warning{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:12px 16px;padding:13px 16px;border:1px solid rgba(229,9,20,.45);border-radius:12px;background:#25171b;color:#fff;font-size:13px;font-weight:600;line-height:1.5;}
    .assc-root .assc-poll-warning a{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:9px;background:#e50914;color:#fff!important;text-decoration:none;font-weight:800;}
    .assc-root.is-light .assc-poll-warning,.assc-root[data-theme="light"] .assc-poll-warning{background:#fff5f5;color:#4b1519;}
