/* UI60 — compact in-transit table + deal card. */

/* UI58 KPI arrow: plain arrow, no accidental mini-button box. */
.it58-kpi-arrow{
  width:auto!important;height:auto!important;min-width:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  display:inline-block!important;padding:0!important;
  color:var(--dash-accent,var(--b-green))!important;
  font-size:20px!important;line-height:1!important;font-weight:760!important;
  box-shadow:none!important;
}
.dashboard-kpi:hover .it58-kpi-arrow{transform:translateX(3px)!important;border-color:transparent!important}

/* Desktop primary view: secondary fields remain in DOM for filters/actions but live in the deal card. */
@media (min-width:761px){
  .it56-table{
    width:100%;
    min-width:930px;
    table-layout:fixed!important;
  }

  /* Column visibility is controlled exclusively by Personal View (st.columns). */

  .it56-table th,.it56-table td{min-width:0;max-width:none}
  .it56-table th{padding-left:5px!important;padding-right:22px!important}
  .it56-table td{padding-left:3px!important;padding-right:3px!important}

  .it56-table th:nth-child(1),.it56-table td:nth-child(1){
    width:30px;min-width:30px;max-width:30px;left:0!important;
  }
  .it56-table th:nth-child(2),.it56-table td:nth-child(2){
    width:29px;min-width:29px;max-width:29px;left:30px!important;
  }
  .it56-table th:nth-child(3),.it56-table td:nth-child(3){
    width:9.5%;left:59px!important;
  }
  .it56-table th:nth-child(4),.it56-table td:nth-child(4){
    width:15%;left:auto!important;position:relative!important;z-index:auto!important;
  }
  .it56-table thead th:nth-child(4){z-index:5!important}
  .it56-table tbody td:nth-child(4){box-shadow:none!important}
  .it56-table th:nth-child(6),.it56-table td:nth-child(6){width:11%}
  .it56-table th:nth-child(7),.it56-table td:nth-child(7){width:8.2%}
  .it56-table th:nth-child(10),.it56-table td:nth-child(10){width:9%}
  .it56-table th:nth-child(13),.it56-table td:nth-child(13){width:8.4%}
  .it56-table th:nth-child(14),.it56-table td:nth-child(14){width:8.4%}
  .it56-table th:nth-child(15),.it56-table td:nth-child(15){width:8.4%}
  .it56-table th:nth-child(16),.it56-table td:nth-child(16){width:10%}
  .it56-table th:nth-child(20),.it56-table td:nth-child(20){width:8.5%}
  .it56-table th:nth-child(24),.it56-table td:nth-child(24){width:82px;min-width:82px;max-width:82px}

  .it56-table td:nth-child(4){position:relative!important;padding-right:42px!important}
  .it60-memory-tag{
    position:absolute;right:4px;top:50%;translate:0 -50%;
    max-width:36px;padding:2px 4px;border-radius:6px;
    background:var(--b-surface-2);color:var(--b-text-3);
    font-size:7px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    pointer-events:none;
  }

  .it56-table td:nth-child(20){position:relative!important;padding-right:3px!important}
  .it60-pct-tag{
    position:static;display:inline-flex;align-items:center;translate:none;
    margin-left:6px;padding:2px 4px;border-radius:6px;background:var(--b-green-soft);
    color:var(--b-green);font-size:7.5px;font-weight:850;white-space:nowrap;
    pointer-events:none;vertical-align:middle;
  }

  .it56-table .it53-cell-input,.it56-table .it53-cell-select{font-size:8.8px!important}
  .it56-table td:nth-child(13),.it56-table td:nth-child(14),
  .it56-table td:nth-child(15),.it56-table td:nth-child(20){font-size:8.8px!important}

  .it60-open{
    width:auto;min-width:58px;height:23px;margin-right:3px;padding:0 7px;border:0;border-radius:7px;background:var(--b-surface-2);
    color:var(--b-text-2);font-size:8.2px;font-weight:750;line-height:1;display:inline-grid;place-items:center;
    cursor:pointer;vertical-align:middle;white-space:nowrap;
  }
  .it60-open:hover{background:var(--b-green-soft);color:var(--b-green)}
  .it56-table td:nth-child(16) .it57-cdek-actions{display:none!important}
  .it56-table td[data-it56-col-key="__delete"]{white-space:nowrap;text-align:center;padding-left:4px!important;padding-right:4px!important}
  .it56-table td[data-it56-col-key="__delete"] .it53-delete{width:23px!important;height:23px!important;min-width:23px!important;color:var(--b-red)!important}
  .it56-table td[data-it56-col-key="__delete"] .it53-delete:hover{background:var(--b-red-soft)!important;color:var(--b-red)!important}
}

body.it60-card-open{overflow:hidden!important}
.it60-card-actions + .it60-grid label{grid-column:1/-1}

/* Full deal card / drawer */
.it60-backdrop{
  position:fixed;z-index:2360;inset:0;background:rgba(4,10,7,.42);
  backdrop-filter:blur(8px);display:flex;justify-content:flex-end;
}
.it60-card{
  width:min(660px,calc(100vw - 28px));height:100%;
  background:var(--b-surface);border-left:1px solid var(--b-line);
  box-shadow:-24px 0 80px rgba(0,0,0,.22);
  display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  animation:it60-in .18s ease-out;
}
@keyframes it60-in{from{transform:translateX(18px);opacity:.5}to{transform:none;opacity:1}}
.it60-head{display:flex;align-items:flex-start;gap:12px;padding:16px 18px;border-bottom:1px solid var(--b-line)}
.it60-head>div{min-width:0;flex:1}
.it60-head small{display:block;font-size:7.5px;font-weight:850;letter-spacing:.07em;color:var(--b-green)}
.it60-head h2{margin:3px 0 0;font-size:18px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.it60-head p{margin:5px 0 0;font-size:9px;color:var(--b-text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.it60-close{width:32px;height:32px;border:0;border-radius:9px;background:var(--b-surface-2);font-size:19px;color:var(--b-text-2);cursor:pointer}
.it60-body{overflow:auto;padding:14px 16px 24px;display:grid;gap:10px;align-content:start}
.it60-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.it60-summary>div{padding:9px 10px;border:1px solid var(--b-line);border-radius:11px;background:var(--b-surface-2);min-width:0}
.it60-summary small,.it60-section label>span,.it60-read small{display:block;font-size:6.8px;text-transform:uppercase;letter-spacing:.035em;color:var(--b-text-3);font-weight:760}
.it60-summary strong{display:block;margin-top:4px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.it60-section{border:1px solid var(--b-line);border-radius:13px;background:var(--b-surface-glass-strong);overflow:hidden}
.it60-section>header{padding:9px 11px;border-bottom:1px solid var(--b-line);font-size:9px;font-weight:850;color:var(--b-text-2)}
.it60-grid{display:grid;grid-template-columns:1fr 1fr;padding:10px;gap:8px}
.it60-grid label,.it60-read{min-width:0;display:grid;gap:4px}
.it60-grid .wide{grid-column:1/-1}
.it60-grid input,.it60-grid select{
  width:100%;min-width:0;height:34px;border:1px solid var(--b-line);border-radius:9px;
  background:var(--b-surface-2);padding:0 8px;color:var(--b-text);font-size:9.5px;outline:0;
}
.it60-grid input:focus,.it60-grid select:focus{border-color:var(--b-green);box-shadow:0 0 0 2px color-mix(in srgb,var(--b-green) 12%,transparent)}
.it60-grid input:disabled,.it60-grid select:disabled{opacity:.72}
.it60-read strong{height:34px;display:flex;align-items:center;padding:0 8px;border:1px solid var(--b-line);border-radius:9px;background:var(--b-surface-2);font-size:9.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.it60-card-actions{display:flex;gap:6px;flex-wrap:wrap;padding:10px}
.it60-card-actions button,.it60-card-actions a{
  min-height:32px;padding:0 10px;border:1px solid var(--b-line);border-radius:9px;
  background:var(--b-surface-2);color:var(--b-text);font-size:8.5px;font-weight:750;
  text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
}
.it60-card-actions .primary{background:var(--b-green);border-color:var(--b-green);color:#fff}
.it60-card-actions .danger{margin-left:auto;background:var(--b-red-soft);border-color:transparent;color:var(--b-red)}
.it60-foot{padding:10px 16px;border-top:1px solid var(--b-line);display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--b-surface-glass-strong)}
.it60-foot span{font-size:8px;color:var(--b-text-3)}
.it60-foot button{min-height:32px;padding:0 12px;border:0;border-radius:9px;background:var(--b-surface-2);font-size:9px;font-weight:750}
.it60-saving{opacity:.58;pointer-events:none}

/* Mobile: compact deal cards, full details live in UI60 card instead of the giant expanded grid. */
@media (max-width:760px){
  .it53-mobile-card details{display:none!important}
  .it53-mobile-card{padding:10px!important}
  .it53-mobile-title{grid-template-columns:minmax(0,1fr) 72px!important}
  .it53-mobile-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .it53-mobile-kpis>span{padding:7px 6px!important}
  .it53-mobile-kpis small{font-size:6.3px!important}
  .it53-mobile-kpis strong{font-size:9.5px!important}
  .it60-mobile-meta{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:6px}
  .it60-mobile-meta>span{
    min-width:0;display:flex;align-items:center;gap:5px;padding:6px 7px;border:1px solid var(--b-line);
    border-radius:8px;background:color-mix(in srgb,var(--b-surface-2) 76%,transparent);
    font-size:7.7px;color:var(--b-text-2)
  }
  .it60-mobile-meta>span b{font-size:7px;color:var(--b-text-3);font-weight:700}
  .it60-mobile-meta>span em{min-width:0;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .it60-mobile-open{
    width:100%;min-height:33px;margin-top:7px;border:1px solid var(--b-line);border-radius:9px;
    background:var(--b-surface-2);color:var(--b-text);font-size:8.8px;font-weight:800;
  }
  .it60-mobile-open span{color:var(--b-green);font-size:13px;margin-left:4px}
  .it60-card{width:100%;max-width:none;border-left:0}
  .it60-head{padding:12px 13px}
  .it60-head h2{font-size:15px}
  .it60-body{padding:10px 9px 18px;gap:8px}
  .it60-summary{grid-template-columns:1fr 1fr;gap:5px}
  .it60-summary>div{padding:8px}
  .it60-grid{grid-template-columns:1fr;gap:7px;padding:8px}
  .it60-grid .wide{grid-column:auto}
  .it60-card-actions{padding:8px}
  .it60-card-actions>*{flex:1 1 calc(50% - 3px)}
  .it60-card-actions .danger{margin-left:0}
  .it60-foot{padding:8px 10px}
}


/* UI61 — centered deal modal, stronger hierarchy, editable desktop widths, mobile scroll/status. */
@media (min-width:761px){
  .it56-table tbody tr[data-it56-row]{cursor:pointer}
  .it56-table tbody tr[data-it56-row]:hover td{box-shadow:inset 0 1px 0 color-mix(in srgb,var(--b-green) 18%,transparent),inset 0 -1px 0 color-mix(in srgb,var(--b-green) 18%,transparent)}
  .it56-table tbody tr[data-it56-row] input,
  .it56-table tbody tr[data-it56-row] select,
  .it56-table tbody tr[data-it56-row] button,
  .it56-table tbody tr[data-it56-row] a,
  .it56-table tbody tr[data-it56-row] label{cursor:default}
  .it56-table .it56-col-resize{z-index:20}
  .it60-open{
    width:auto!important;min-width:58px!important;height:23px!important;padding:0 7px!important;
    border:1px solid var(--b-line)!important;border-radius:7px!important;
    background:var(--b-surface)!important;color:var(--b-text-2)!important;
    font-size:7.5px!important;font-weight:800!important;letter-spacing:.01em;
  }
  .it60-open:hover{border-color:var(--b-green)!important;background:var(--b-green-soft)!important;color:var(--b-green)!important}

  .it60-backdrop{
    display:grid!important;place-items:center!important;justify-content:initial!important;
    padding:24px!important;background:rgba(5,10,7,.56)!important;
  }
  .it60-card{
    width:min(980px,calc(100vw - 48px))!important;
    height:min(860px,calc(100dvh - 48px))!important;
    max-height:calc(100dvh - 48px)!important;
    border:1px solid var(--b-line-strong)!important;border-radius:20px!important;
    box-shadow:0 34px 110px rgba(0,0,0,.34)!important;
    animation:it61-pop .16s ease-out!important;overflow:hidden!important;
  }
}
@keyframes it61-pop{from{transform:translateY(10px) scale(.985);opacity:.5}to{transform:none;opacity:1}}

.it60-head{
  background:linear-gradient(180deg,color-mix(in srgb,var(--b-surface-2) 94%,var(--b-green) 6%),var(--b-surface))!important;
  border-bottom:1px solid var(--b-line-strong)!important;
}
.it60-head-main{min-width:0;flex:1}
.it60-head-top{display:flex;align-items:center;gap:8px;margin-bottom:3px}
.it60-head-top>small{margin:0!important}
.it60-head-status{
  min-width:132px;height:30px;border:1px solid transparent;border-radius:999px;
  padding:0 28px 0 10px;font-size:8.5px;font-weight:850;outline:0;cursor:pointer;
  appearance:auto;
}

.it60-body{
  min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  background:color-mix(in srgb,var(--b-bg) 76%,var(--b-surface-2))!important;
}
.it60-summary{gap:9px!important}
.it60-summary>div{
  border-color:var(--b-line-strong)!important;background:var(--b-surface)!important;
  box-shadow:0 4px 14px rgba(0,0,0,.045)!important;
}
.it60-summary>div:nth-child(1){border-top:3px solid #377fca!important}
.it60-summary>div:nth-child(2){border-top:3px solid #52a86a!important}
.it60-summary>div:nth-child(3){border-top:3px solid #788ca8!important}
.it60-summary>div:nth-child(4){border-top:3px solid var(--b-green)!important}
.it60-summary strong{font-size:12px!important;font-weight:850!important}

.it60-section{
  border-color:var(--b-line-strong)!important;background:var(--b-surface)!important;
  box-shadow:0 4px 16px rgba(0,0,0,.04)!important;
}
.it60-section>header{
  padding:10px 12px!important;background:var(--b-surface-2)!important;
  border-bottom-color:var(--b-line-strong)!important;color:var(--b-text)!important;
  font-size:9.5px!important;letter-spacing:.015em!important;
}
.it60-device-section{border-left:3px solid #5279a5!important}
.it60-delivery-section{border-left:3px solid #b88133!important}
.it60-dates-section{border-left:3px solid #7b8797!important}
.it60-economy-section{border-left:3px solid var(--b-green)!important}
.it60-actions-section{border-left:3px solid #6b73a9!important}
.it60-grid input,.it60-grid select,.it60-read strong{
  background:color-mix(in srgb,var(--b-surface-2) 78%,var(--b-surface))!important;
  border-color:var(--b-line-strong)!important;
}
.it60-grid label>span,.it60-read small{color:var(--b-text-2)!important}
.it60-foot{background:var(--b-surface-2)!important;border-top-color:var(--b-line-strong)!important}

@media (max-width:760px){
  .it60-backdrop{display:block!important;padding:0!important;background:var(--b-surface)!important;backdrop-filter:none!important}
  .it60-card{
    width:100%!important;height:100dvh!important;max-height:100dvh!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;
    overflow:hidden!important;grid-template-rows:auto minmax(0,1fr) auto!important;
  }
  .it60-head{padding:10px 11px!important;position:relative;z-index:2}
  .it60-head-top{gap:6px;flex-wrap:wrap}
  .it60-head-status{min-width:118px;height:28px;font-size:8px}
  .it60-head h2{font-size:15px!important;margin-top:3px!important}
  .it60-head p{margin-top:4px!important}
  .it60-body{
    min-height:0!important;height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;
    padding:9px 8px calc(20px + env(safe-area-inset-bottom))!important;
  }
  .it60-foot{position:relative;z-index:2;padding-bottom:calc(8px + env(safe-area-inset-bottom))!important}
  .it60-device-section>header{display:none!important}
  .it60-device-section{
    border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  }
  .it60-device-section .it60-grid{padding:0!important}
  .it60-section{border-radius:11px!important}
  .it60-section>header{font-size:9px!important}
}


/* UI62 — natural-height desktop card, compact status control, no clipped sections. */
.it62-head-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.it62-status-control{
  position:relative;display:inline-flex;align-items:center;width:max-content;max-width:180px;
  min-height:30px;border-radius:999px;border:1px solid transparent;overflow:hidden;
}
.it62-status-control>span{
  position:absolute;right:8px;top:50%;translate:0 -52%;pointer-events:none;
  font-size:9px;font-weight:900;line-height:1;opacity:.78;
}
.it60-head-status{
  width:auto!important;min-width:0!important;max-width:170px!important;height:28px!important;
  padding:0 22px 0 9px!important;border:0!important;border-radius:999px!important;
  background:transparent!important;color:inherit!important;box-shadow:none!important;
  appearance:none!important;-webkit-appearance:none!important;
  font-size:8.5px!important;font-weight:850!important;cursor:pointer;
}
.it62-status-control{
  background:var(--b-surface)!important;color:var(--b-text)!important;
  border-color:var(--b-line-strong)!important;
}
.it60-head-status{background:transparent!important;color:var(--b-text)!important}
.it60-head-status option{background:var(--b-surface)!important;color:var(--b-text)!important}

.it62-sections{display:grid;gap:10px;min-width:0}
.it60-section{height:auto!important;min-height:0!important}
.it60-grid{align-content:start}

@media (min-width:761px){
  .it60-backdrop{
    place-items:center!important;overflow:auto!important;
    padding:18px!important;
  }
  .it60-card{
    width:min(1120px,calc(100vw - 36px))!important;
    height:auto!important;max-height:none!important;min-height:0!important;
    grid-template-rows:auto auto auto!important;
    overflow:visible!important;
  }
  .it60-head{align-items:flex-start!important;padding:14px 16px!important}
  .it60-head-main{padding-right:10px}
  .it60-head-main>small{display:block;margin-bottom:4px}
  .it60-body{
    overflow:visible!important;min-height:0!important;height:auto!important;
    padding:12px 14px 14px!important;
  }
  .it60-summary{margin-bottom:10px!important}
  .it62-sections{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .it60-section{overflow:visible!important}
  .it60-actions-section{grid-column:1/-1}
  .it60-grid{padding:9px!important;gap:7px!important}
  .it60-grid input,.it60-grid select,.it60-read strong{height:32px!important}
  .it60-card-actions{padding:9px!important}
  .it60-foot{border-radius:0 0 20px 20px}
}

@media (max-width:760px){
  .it60-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}
  .it62-head-actions{align-self:start;gap:5px}
  .it62-status-control{max-width:132px;min-height:28px}
  .it60-head-status{max-width:126px!important;height:27px!important;font-size:7.8px!important;padding-left:8px!important;padding-right:20px!important}
  .it62-status-control>span{right:7px}
  .it62-sections{display:grid;grid-template-columns:1fr;gap:8px}
}


/* UI73 — mobile row is rendered compact natively; no hidden legacy detail form. */
@media(max-width:760px){
  .it56-mobile-static-title{
    display:block!important;
    margin-top:7px!important;
    min-width:0;
  }
  .it56-mobile-static-title>strong{
    display:block;
    min-width:0;
    padding:8px 9px;
    border:1px solid var(--b-line);
    border-radius:9px;
    background:var(--b-surface-2);
    font-size:11px;
    line-height:1.25;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}


/* UI74 — deal history and sticky mobile actions. */
.it60-history-backdrop{position:fixed;z-index:190;inset:0;display:grid;place-items:center;padding:16px;background:rgba(8,18,11,.44);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.it60-history-modal{width:min(720px,calc(100vw - 24px));max-height:min(760px,calc(100dvh - 24px));display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid var(--b-line-strong);border-radius:18px;background:var(--b-surface);box-shadow:0 28px 90px rgba(0,0,0,.25)}
.it60-history-modal>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid var(--b-line)}
.it60-history-modal>header small{display:block;color:var(--b-green);font-size:8px;font-weight:850;letter-spacing:.08em}
.it60-history-modal>header h2{margin:3px 0 0;font-size:17px}
.it60-history-modal>header button{width:32px;height:32px;border:0;border-radius:9px;background:var(--b-surface-2);font-size:19px}
.it60-history-body{min-height:120px;overflow:auto;padding:12px 15px}
.it60-history-body article{position:relative;display:grid;grid-template-columns:12px minmax(0,1fr);gap:9px;padding:0 0 14px}
.it60-history-body article>span{width:9px;height:9px;margin-top:4px;border-radius:50%;background:var(--b-green);box-shadow:0 0 0 4px var(--b-green-soft)}
.it60-history-body article:not(:last-child)>span::after{content:"";position:absolute;top:14px;bottom:0;margin-left:4px;width:1px;background:var(--b-line)}
.it60-history-body strong{display:block;font-size:10px}
.it60-history-body p{margin:4px 0;font-size:8.5px;line-height:1.45;color:var(--b-text-2);word-break:break-word}
.it60-history-body small{font-size:7.5px;color:var(--b-text-3)}
.it60-history-empty{padding:28px;text-align:center;color:var(--b-text-3);font-size:9px}
@media(max-width:760px){
 .it60-foot{position:sticky!important;bottom:0!important;z-index:8!important;background:color-mix(in srgb,var(--b-surface) 96%,transparent)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
 .it60-card-actions{position:sticky;bottom:0;z-index:4;background:var(--b-surface)}
 .it60-history-backdrop{align-items:end;padding:0}
 .it60-history-modal{width:100%;max-height:88dvh;border-radius:18px 18px 0 0}
}

/* UI77 — independent table sizing + readability + fixed card header actions. */
@media(min-width:761px){
  .it56-table:not(.it56-manual-widths){width:max-content!important;min-width:100%!important;table-layout:auto!important}
  .it56-table.it56-manual-widths{min-width:0!important}
  .it56-table th,.it56-table td{font-size:10px!important}
  .it56-table .it53-cell-input,.it56-table .it53-cell-select{font-size:10px!important}
  .it56-table td:nth-child(13),.it56-table td:nth-child(14),.it56-table td:nth-child(15),.it56-table td:nth-child(20){font-size:10px!important}
  .it60-head{position:relative!important;padding-right:228px!important}
  .it62-head-actions{position:absolute!important;right:16px;top:14px;z-index:3;margin-left:auto!important;flex:none!important}
}
.it60-summary small,.it60-section label>span,.it60-read small{font-size:7.8px!important}
.it60-summary strong{font-size:13px!important}
.it60-section>header{font-size:10.5px!important}
.it60-grid input,.it60-grid select,.it60-read strong{font-size:10.5px!important}
.it60-card-actions button,.it60-card-actions a{font-size:9.5px!important}
.it60-foot span{font-size:9px!important}
.it60-foot button{font-size:10px!important}
@media(max-width:760px){
  .it60-head{padding-right:11px!important}
  .it62-head-actions{position:static!important;right:auto!important;top:auto!important}
  .it53-mobile-title>strong{font-size:12px!important}
  .it53-mobile-kpis small{font-size:7.3px!important}
  .it53-mobile-kpis strong{font-size:10.5px!important}
  .it60-mobile-meta>span{font-size:8.7px!important}
  .it60-mobile-meta>span b{font-size:8px!important}
}

/* UI84 — clearer margin cell and inline deal details. */
.it56-margin-cell{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;min-width:0}
.it56-margin-cell strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--b-text);font-weight:820}
.it56-margin-cell span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;padding:2px 5px;border-radius:999px;font-size:7.2px;font-weight:850;background:var(--b-surface-2);color:var(--b-text-3)}
.it56-margin-cell.positive span{background:var(--b-green-soft);color:var(--b-green)}
.it56-margin-cell.negative strong{color:var(--b-red)}
.it56-margin-cell.negative span{background:var(--b-red-soft);color:var(--b-red)}
.it56-margin-cell.neutral span{background:var(--b-surface-2);color:var(--b-text-3)}
.it60-inline-panel{margin:0 10px 10px;border:1px solid var(--b-line);border-radius:12px;background:var(--b-surface-2);overflow:hidden}
.it60-inline-panel[hidden]{display:none!important}
.it60-inline-panel>header{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid var(--b-line);background:var(--b-surface-glass-strong)}
.it60-inline-panel>header strong{flex:1;font-size:9.5px}
.it60-inline-panel>header button{width:25px;height:25px;border:0;border-radius:7px;background:var(--b-surface);color:var(--b-text-2);font-size:15px;cursor:pointer}
.it60-inline-body{padding:9px;display:grid;gap:9px}
.it60-inline-state{padding:18px 10px;text-align:center;font-size:8.7px;color:var(--b-text-3)}
.it60-inline-state.is-error{color:var(--b-red);background:var(--b-red-soft);border-radius:9px}
.it60-inline-media{border:1px solid var(--b-line);border-radius:10px;background:var(--b-surface);overflow:hidden}
.it60-inline-media>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px;border-bottom:1px solid var(--b-line)}
.it60-inline-media>header>div{display:flex;align-items:baseline;gap:6px}.it60-inline-media>header strong{font-size:9px}.it60-inline-media>header small{font-size:7px;color:var(--b-text-3)}
.it60-inline-add{display:inline-flex;align-items:center;justify-content:center;min-height:27px;padding:0 8px;border:1px solid var(--b-line);border-radius:8px;background:var(--b-surface-2);font-size:7.8px;font-weight:800;color:var(--b-green);cursor:pointer}
.it60-inline-media-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:8px}
.it60-inline-media-grid figure{position:relative;margin:0;min-width:0}.it60-inline-media-grid figure>button:first-child{width:100%;padding:0;border:0;border-radius:8px;overflow:hidden;background:var(--b-surface-2);cursor:pointer}
.it60-inline-media-grid img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.it60-inline-remove{position:absolute;right:4px;top:4px;width:22px;height:22px;border:0;border-radius:7px;background:rgba(15,20,16,.72);color:#fff;font-size:14px;cursor:pointer}
.it60-inline-remove:hover{background:var(--b-red)}
.it60-inline-empty{grid-column:1/-1;padding:14px 10px;text-align:center}.it60-inline-empty strong,.it60-inline-empty span{display:block}.it60-inline-empty strong{font-size:8.5px}.it60-inline-empty span{margin-top:3px;font-size:7.5px;color:var(--b-text-3)}
.it60-inline-preview{position:relative;display:grid;place-items:center;padding:8px;border:1px solid var(--b-line);border-radius:10px;background:var(--b-surface)}
.it60-inline-preview[hidden]{display:none!important}.it60-inline-preview img{display:block;max-width:100%;max-height:360px;border-radius:8px;object-fit:contain}.it60-inline-preview button{position:absolute;right:7px;top:7px;width:26px;height:26px;border:0;border-radius:8px;background:rgba(15,20,16,.72);color:#fff;font-size:16px}
.it60-inline-history{display:grid}.it60-inline-history article{display:grid;grid-template-columns:10px minmax(0,1fr);gap:7px;padding:8px 2px;border-bottom:1px solid var(--b-line)}.it60-inline-history article:last-child{border-bottom:0}
.it60-inline-history article>span{width:7px;height:7px;margin-top:3px;border-radius:50%;background:var(--b-green)}.it60-inline-history strong{font-size:8.8px}.it60-inline-history p{margin:3px 0;font-size:8px;color:var(--b-text-2);overflow-wrap:anywhere}.it60-inline-history small{font-size:7px;color:var(--b-text-3)}
.it60-inline-cdek-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.it60-inline-cdek-summary>div{padding:8px;border:1px solid var(--b-line);border-radius:9px;background:var(--b-surface)}
.it60-inline-cdek-summary small,.it60-inline-cdek-summary strong{display:block}.it60-inline-cdek-summary small{font-size:6.8px;color:var(--b-text-3);text-transform:uppercase}.it60-inline-cdek-summary strong{margin-top:3px;font-size:8.8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){
 .it60-inline-panel{margin:0 8px 8px}
 .it60-inline-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .it60-inline-cdek-summary{grid-template-columns:1fr}
 .it60-inline-preview img{max-height:260px}
}

/* UI86 — collapsible deal sections, centered status, denser mobile card. */
.it60-section.is-collapsible>header{padding:0!important}
.it60-section-toggle{width:100%;min-height:38px;padding:9px 11px;border:0;background:transparent;color:var(--b-text);display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;font-size:10.5px;font-weight:850;cursor:pointer}
.it60-section-toggle b{font-size:13px;line-height:1;color:var(--b-text-3);transition:transform .16s ease}
.it60-section-toggle[aria-expanded="true"] b{transform:rotate(180deg)}
.it60-section-content[hidden]{display:none!important}
.it60-section.is-collapsible:not(.is-open)>header{border-bottom:0!important}
.it60-head-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:4px}
.it60-status-row{display:flex;justify-content:flex-end;align-items:center;margin:0;flex:0 0 auto}
.it60-head-main>h2{margin:0;min-width:0;flex:1 1 auto;text-align:left}
.it60-head-main>p{text-align:left}
.it60-head-status{text-align:center!important;text-align-last:center!important;font-size:10.5px!important;font-weight:850!important;min-width:136px!important}
.it62-status-control{justify-content:center;min-width:142px}
.it60-card .it60-head{position:relative!important;display:block!important;padding-right:56px!important}
.it60-card .it62-head-actions{position:absolute!important;right:16px!important;top:14px!important;margin:0!important}
@media(max-width:760px){
 .it60-card .it60-head{display:block!important;padding:10px 48px 10px 11px!important}
 .it60-card .it62-head-actions{right:10px!important;top:10px!important}
 .it60-head-row{align-items:flex-start;gap:10px}
 .it60-head-main>h2{font-size:14px;line-height:1.2}
 .it60-status-row{justify-content:flex-end;margin:0}
 .it60-head-status{font-size:10px!important;min-width:126px!important;max-width:150px!important;height:30px!important}
 .it62-status-control{min-width:132px!important;max-width:156px!important}
 .it60-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
 .it60-grid .wide,.it60-grid [data-it60-wrap="imei"],.it60-grid [data-it60-wrap="order_no"],.it60-grid [data-it60-wrap="link"],.it60-grid [data-it60-read="cdek_number"]{grid-column:1/-1!important}
 .it60-grid input,.it60-grid select,.it60-read strong{min-width:0!important}
}
@media(max-width:350px){
 .it60-grid{grid-template-columns:1fr!important}
 .it60-grid>*{grid-column:1!important}
}
