.telegram-shop-manager{position:fixed;z-index:80;inset:0 0 0 216px;display:flex;flex-direction:column;overflow:hidden;background:#f5f7fc;color:var(--text,#171b27);font-family:inherit}.telegram-shop-manager *{box-sizing:border-box}.tsm-header{min-height:104px;padding:20px 28px;display:flex;align-items:center;gap:14px;background:#fff;border-bottom:1px solid var(--border,#dfe4ee)}.tsm-header h1{font-size:24px;line-height:1.15;margin:2px 0 3px}.tsm-header p,.tsm-header small{margin:0;color:var(--muted,#8c97ab);font-size:12px}.tsm-back,.tsm-close{width:38px;height:38px;border:1px solid var(--border,#dfe4ee);border-radius:10px;background:#fff;color:#526079;font-size:24px;cursor:pointer}.tsm-back{font-size:19px}.tsm-bot-logo{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#eaf5ff;color:#2796dd}.tsm-bot-logo svg{width:26px;height:26px}.tsm-bot-logo.small{width:42px;height:42px}.tsm-header-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.tsm-connection-pill{padding:7px 10px;border-radius:999px;background:#f0f2f6;color:#768197;font-size:12px;font-weight:700;white-space:nowrap}.tsm-connection-pill.connected{background:#e8f8ef;color:#188b50}.tsm-connection-pill.error{background:#fff0f2;color:#ca4054}.tsm-button{height:38px;padding:0 15px;border:1px solid #5063ee;border-radius:10px;background:#5063ee;color:#fff;font:700 12px inherit;cursor:pointer;white-space:nowrap}.tsm-button.secondary{background:#fff;color:#536078;border-color:var(--border,#dfe4ee)}.tsm-button.danger{color:#d43c52;border-color:#f2c9d0}.tsm-button:disabled{opacity:.5;cursor:default}.tsm-tabs{height:51px;padding:0 28px;display:flex;gap:24px;background:#fff;border-bottom:1px solid var(--border,#dfe4ee)}.tsm-tabs button{position:relative;padding:0 2px;border:0;background:none;color:#8a94a8;font:700 13px inherit;cursor:pointer}.tsm-tabs button.active{color:#4f63ed}.tsm-tabs button.active:after{position:absolute;content:"";height:2px;inset:auto 0 0;background:#4f63ed;border-radius:2px}.tsm-content{flex:1;overflow:auto;padding:18px 28px 28px}.tsm-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px}.tsm-summary article{min-height:82px;padding:12px 14px;border:1px solid var(--border,#dfe4ee);border-radius:12px;background:#fff}.tsm-summary small,.tsm-summary span{display:block;color:#8b96aa;font-size:11px}.tsm-summary strong{display:block;margin:4px 0 2px;font-size:22px;line-height:1}.tsm-summary article.good strong{color:#168a4d}.tsm-summary article.warn strong{color:#c87912}.tsm-summary article.bad strong{color:#cf4054}.tsm-table-card,.tsm-settings-card{overflow:hidden;border:1px solid var(--border,#dfe4ee);border-radius:14px;background:#fff}.tsm-toolbar{min-height:58px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--border,#dfe4ee)}.tsm-filters{display:flex;gap:5px;flex-wrap:wrap}.tsm-filters button{height:32px;padding:0 11px;border:1px solid transparent;border-radius:8px;background:transparent;color:#68748a;font:700 11px inherit;cursor:pointer}.tsm-filters button.active{border-color:#dce1ff;background:#eff1ff;color:#4f63ed}.tsm-search{height:36px;min-width:240px;display:flex;align-items:center;gap:7px;padding:0 11px;border:1px solid var(--border,#dfe4ee);border-radius:9px;background:#fff;color:#98a2b4}.tsm-search.wide{margin:0 18px;min-width:0}.tsm-search input{width:100%;border:0;outline:0;background:transparent;color:var(--text,#171b27);font:500 12px inherit}.tsm-table-scroll{overflow:auto;max-height:calc(100vh - 348px)}.tsm-table-card table{width:100%;border-collapse:collapse;table-layout:fixed}.tsm-table-card th{position:sticky;z-index:1;top:0;padding:10px 9px;background:#f8f9fc;color:#8893a8;font-size:10px;line-height:1.2;text-align:left;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid var(--border,#dfe4ee)}.tsm-table-card th:nth-child(1){width:18%}.tsm-table-card th:nth-child(2){width:11%}.tsm-table-card th:nth-child(3){width:20%}.tsm-table-card th:nth-child(4){width:12%}.tsm-table-card th:nth-child(5),.tsm-table-card th:nth-child(6){width:8%}.tsm-table-card th:nth-child(7){width:13%}.tsm-table-card th:nth-child(8){width:10%}.tsm-table-card td{padding:10px 9px;border-bottom:1px solid #e9edf4;vertical-align:middle;font-size:11px;overflow-wrap:anywhere}.tsm-table-card td strong,.tsm-table-card td b{display:block;font-size:11px;line-height:1.35}.tsm-table-card td small{display:block;margin-top:3px;color:#8d98ab;font-size:10px;line-height:1.25}.tsm-table-card td.number{text-align:right;white-space:nowrap}.tsm-table-card td .delta{color:#c87912}.tsm-table-card td.actions{text-align:right}.tsm-link-button{padding:7px 9px;border:1px solid #dce1ee;border-radius:8px;background:#fff;color:#5063dd;font:700 10px inherit;cursor:pointer}.tsm-status{display:inline-flex;padding:5px 7px;border-radius:7px;background:#edf8f1;color:#168a4d;font-size:9px;line-height:1.2;font-weight:800}.tsm-status.ambiguous,.tsm-status.price_mismatch,.tsm-status.sku_mismatch{background:#fff5df;color:#a8660d}.tsm-status.unlinked,.tsm-status.crm_not_found{background:#fff0f2;color:#c93e53}.tsm-table-card td small.manual{color:#4f63ed;font-weight:700}.tsm-pagination{min-height:48px;padding:8px 14px;display:flex;align-items:center;justify-content:space-between;color:#8b96a8;font-size:11px}.tsm-pagination button{height:31px;padding:0 10px;border:1px solid #dfe4ee;background:#fff;color:#536078;font:700 10px inherit}.tsm-pagination button:first-child{border-radius:8px 0 0 8px}.tsm-pagination button:last-child{border-radius:0 8px 8px 0}.tsm-pagination button:disabled{opacity:.4}.tsm-loading,.tsm-empty{min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#8b96a8;font-size:12px;text-align:center}.tsm-loading.small{min-height:90px}.tsm-empty.error strong,.tsm-empty.error span{color:#c43e51}.tsm-settings-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:14px;max-width:1120px}.tsm-settings-card{padding:18px}.tsm-settings-card>header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.tsm-settings-card h2{margin:0 0 3px;font-size:16px}.tsm-settings-card p{margin:0;color:#7f8a9f;font-size:11px}.tsm-settings-card dl{display:grid;grid-template-columns:1fr 1fr;margin:0;border:1px solid #e6eaf1;border-radius:11px;overflow:hidden}.tsm-settings-card dl div{padding:11px 13px;border-bottom:1px solid #e6eaf1}.tsm-settings-card dl div:nth-child(odd){border-right:1px solid #e6eaf1}.tsm-settings-card dt{color:#8c97aa;font-size:10px}.tsm-settings-card dd{margin:4px 0 0;font-size:12px;font-weight:700}.tsm-settings-actions{display:flex;gap:8px;margin-top:14px}.tsm-rules{margin-top:14px;border-top:1px solid #e6eaf1}.tsm-rules p{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid #edf0f5}.tsm-rules i{width:24px;height:24px;display:grid;place-items:center;border-radius:7px;background:#e9f8ef;color:#168a4d;font-style:normal;font-weight:800}.tsm-rules span,.tsm-rules strong{display:block}.tsm-rules strong{margin-bottom:2px;color:#242936;font-size:12px}.tsm-modal-backdrop{position:absolute;z-index:10;inset:0;display:grid;place-items:center;padding:24px;background:rgba(25,31,46,.42);backdrop-filter:blur(2px)}.tsm-modal{width:min(700px,95vw);max-height:min(720px,90vh);display:flex;flex-direction:column;overflow:hidden;border-radius:15px;background:#fff;box-shadow:0 24px 70px rgba(20,27,43,.23)}.tsm-modal.narrow{width:min(510px,95vw)}.tsm-modal header{padding:17px 18px;display:flex;justify-content:space-between;border-bottom:1px solid #e4e8ef}.tsm-modal header small,.tsm-modal header p{margin:0;color:#8b96a8;font-size:10px}.tsm-modal header h2{margin:3px 0;font-size:18px}.tsm-modal header button{width:32px;height:32px;border:1px solid #dfe4ee;border-radius:8px;background:#fff;color:#677287;font-size:20px}.tsm-target-list{min-height:180px;max-height:420px;margin:12px 18px;overflow:auto;border:1px solid #e1e6ee;border-radius:10px}.tsm-target-list>button{width:100%;padding:10px 12px;display:grid;grid-template-columns:1fr 120px 90px;gap:10px;align-items:center;border:0;border-bottom:1px solid #edf0f4;background:#fff;text-align:left;cursor:pointer}.tsm-target-list>button:hover{background:#f6f7ff}.tsm-target-list strong,.tsm-target-list small{display:block}.tsm-target-list small{margin-top:2px;color:#8b96a8;font-size:10px}.tsm-target-list b,.tsm-target-list em{font-size:11px;font-style:normal}.tsm-modal footer{padding:12px 18px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #e4e8ef}.tsm-warning{margin:16px 18px;padding:11px;border-radius:9px;background:#fff6e3;color:#8b5d12;font-size:11px;line-height:1.5}.tsm-field{margin:0 18px 18px}.tsm-field span{display:block;margin-bottom:5px;color:#7d889c;font-size:11px;font-weight:700}.tsm-field input{width:100%;height:40px;padding:0 11px;border:1px solid #dfe4ee;border-radius:9px;font:500 12px inherit}.tsm-toast{position:absolute;z-index:20;right:22px;bottom:20px;max-width:420px;padding:11px 14px;border-radius:10px;background:#198b50;color:#fff;font-size:11px;font-weight:700;opacity:0;transform:translateY(15px);pointer-events:none;transition:.2s}.tsm-toast.show{opacity:1;transform:none}.tsm-toast.error{background:#c63d52}.tsm-muted{color:#98a2b3}.telegram-shop-card .integration-logo svg{width:22px;height:22px}
@media(max-width:1050px){.telegram-shop-manager{left:78px}.tsm-summary{grid-template-columns:repeat(3,1fr)}.tsm-settings-grid{grid-template-columns:1fr}.tsm-table-scroll{max-height:calc(100vh - 430px)}}
.tsm-table-card th,.tsm-table-card td small,.tsm-link-button,.tsm-status,.tsm-pagination button,.tsm-settings-card dt,.tsm-modal header small,.tsm-modal header p,.tsm-target-list small{font-size:11px}
.tsm-toolbar-search{display:flex;align-items:center;gap:8px;min-width:min(520px,48vw)}.tsm-category{height:36px;min-width:220px;display:flex;align-items:center;gap:8px;padding:0 9px;border:1px solid var(--border,#dfe4ee);border-radius:9px;background:#fff}.tsm-category>span{color:#8994a8;font-size:11px;font-weight:700;white-space:nowrap}.tsm-category select{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#303849;font:600 11px inherit}.tsm-toolbar-search .tsm-search{min-width:240px;flex:1}.tsm-table-card td small.persisted{color:#65728a;font-weight:700}@media(max-width:1180px){.tsm-toolbar{align-items:flex-start;flex-direction:column}.tsm-toolbar-search{width:100%;min-width:0}.tsm-category{flex:1}.tsm-toolbar-search .tsm-search{flex:1}}@media(max-width:760px){.tsm-toolbar-search{align-items:stretch;flex-direction:column}.tsm-category,.tsm-toolbar-search .tsm-search{width:100%}}

/* v104: operational names and Telegram category paths must remain fully readable. */
.tsm-table-card tbody tr{height:auto!important}
.tsm-table-card td:nth-child(1),
.tsm-table-card td:nth-child(3),
.tsm-table-card td:nth-child(1) strong,
.tsm-table-card td:nth-child(3) strong,
.tsm-table-card td:nth-child(1) small,
.tsm-table-card td:nth-child(3) small{
  max-width:none!important;
  overflow:visible!important;
  white-space:normal!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  -webkit-line-clamp:unset!important;
}
.tsm-table-card td:nth-child(1) strong,
.tsm-table-card td:nth-child(3) strong{display:block!important;line-height:1.35!important}
.tsm-table-card td:nth-child(1) small,
.tsm-table-card td:nth-child(3) small{display:block!important;line-height:1.35!important}
.tsm-category{min-width:300px}

/* v105: compact catalog controls and stable in-place search refresh. */
.tsm-filters{gap:3px}
.tsm-filters button{
  height:28px;
  padding:0 8px;
  font-size:11px!important;
  font-weight:650;
  line-height:1;
}
.tsm-table-card th{
  padding:8px 9px;
  font-size:11px!important;
  font-weight:700;
  line-height:1.2;
  letter-spacing:0;
  text-transform:none;
}
.tsm-content.is-refreshing .tsm-table-scroll{
  opacity:.58;
  transition:opacity .12s ease;
}

/* v106: use explicit, readable control typography instead of the invalid
   `font: weight size inherit` shorthand that made controls inherit huge text. */
.telegram-shop-manager button,
.telegram-shop-manager input,
.telegram-shop-manager select{
  font-family:inherit!important;
}
.tsm-category>span{
  font-size:11px!important;
  font-weight:700;
}
.tsm-category select,
.tsm-search input{
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.3;
}
.tsm-modal header small,
.tsm-modal header p{
  font-size:11px!important;
  line-height:1.35;
}
.tsm-modal header h2{
  font-size:16px!important;
  line-height:1.2;
}
.tsm-target-list>button{
  font-size:12px!important;
  line-height:1.35;
}
.tsm-target-list strong{
  font-size:13px!important;
  font-weight:700;
  line-height:1.3;
}
.tsm-target-list small,
.tsm-target-list b,
.tsm-target-list em{
  font-size:11px!important;
  line-height:1.3;
}
.tsm-modal .tsm-button,
.tsm-link-button,
.tsm-pagination button{
  font-size:11px!important;
  font-weight:700!important;
}
