
    .tg-page{max-width:100%;min-width:0;margin:0;padding:0}
    .tg-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
    .tg-brand{display:flex;align-items:center;gap:12px}.tg-brand img{width:52px;height:52px;object-fit:contain}
    .tg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:15px;margin-top:15px}
    .tg-card{border:1px solid var(--border,#ddd);border-radius:16px;background:var(--card,#fff);padding:18px}
    .tg-status{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:7px 12px;font-weight:700}
    .tg-status.off{background:#fff3cd;color:#856404}.tg-status.on{background:#d1e7dd;color:#0f5132}.tg-status.err{background:#f8d7da;color:#842029}
    .tg-list{margin:10px 0 0;padding-right:20px;line-height:1.9}.tg-code{direction:ltr;text-align:left;background:#111;color:#eee;padding:12px;border-radius:10px;overflow:auto;font-family:monospace}
    .tg-note{font-size:13px;line-height:1.8}.tg-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
    .tg-kpi{font-size:28px;font-weight:800}.tg-muted{color:var(--muted,#666)}
    .tg-service-form{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;align-items:end}
    .tg-service-form label{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:13px}
    .tg-service-form input,.tg-service-form select{width:100%;min-width:0;padding:10px;border:1px solid #cfdbe7;border-radius:10px;background:#fff;color:#17324d}
    .tg-service-table input,.tg-service-table select{width:100%;min-width:85px;padding:8px;border:1px solid #cfdbe7;border-radius:8px}
    .tg-service-table td{vertical-align:middle;white-space:normal}
    .tg-service-table .price-input{max-width:110px}
    .tg-service-table .service-name{min-width:160px}
    .tg-small{font-size:12px;line-height:1.8}
    .tg-service-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
    .tg-switch{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid #cfdbe7;border-radius:12px;background:#f5f9fc;color:#17324d;font-weight:800;cursor:pointer}
    .tg-switch[aria-pressed="true"]{background:#d1e7dd;border-color:#a3cfbb;color:#0f5132}
    .tg-service-section[hidden]{display:none!important}
    .tg-requests-table{width:100%;border-collapse:collapse;min-width:850px}.tg-requests-table th,.tg-requests-table td{padding:9px;border-bottom:1px solid var(--border,#ddd);text-align:right;vertical-align:top}.tg-requests-table td{white-space:normal}.tg-state{display:inline-block;border-radius:8px;padding:4px 8px;font-size:12px;font-weight:800}.tg-state.queued{background:#fff3cd;color:#856404}.tg-state.processing{background:#cfe2ff;color:#084298}.tg-state.completed{background:#d1e7dd;color:#0f5132}.tg-state.failed{background:#f8d7da;color:#842029}
    @media(max-width:700px){.tg-page{padding:12px}.tg-service-form{grid-template-columns:1fr}.tg-service-table{min-width:700px}}
  
#adminTelegram{min-width:0} #adminTelegram .tg-card{min-width:0;overflow:hidden} #adminTelegram .table-wrap{overflow-x:auto} #adminTelegram .tg-service-form textarea{width:100%;min-width:0} #adminTelegram .tg-kpi{overflow-wrap:anywhere;direction:ltr;text-align:right} html[data-theme="dark"] #adminTelegram .tg-card{background:#172638;border-color:#36485e;color:#edf4fc} html[data-theme="dark"] #adminTelegram .tg-muted{color:#b8c6d8} html[data-theme="dark"] #adminTelegram :is(input,select,textarea){background:#101d2d;color:#edf4fc;border-color:#536980} html[data-theme="dark"] #adminTelegram .tg-switch[aria-pressed="false"]{background:#21344d;color:#edf4fc;border-color:#536980} @media(max-width:700px){#adminTelegram .tg-grid{grid-template-columns:minmax(0,1fr)} #adminTelegram .tg-service-form label{grid-column:1/-1!important}}

.tg-reset-danger { color: #b91c1c !important; border: 1px solid #dc2626 !important; }
html[data-theme="dark"] .tg-reset-danger, body.dark .tg-reset-danger { color: #fca5a5 !important; }
/* Direct service desk */
.tg-page>.tg-card{margin-bottom:16px} #directOrders{display:grid;gap:12px} #directOrders article{padding:14px} #directOrders textarea{display:block;width:100%;min-height:100px;resize:vertical;margin-top:8px;box-sizing:border-box;border-radius:10px;padding:10px} #directOrders [data-private] dl{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:8px;border:1px solid var(--border,#cfdbe7);border-radius:10px;padding:12px} #directOrders [data-private] dd{margin:0;text-align:right;overflow-wrap:anywhere} #directCatalog form{grid-template-columns:2fr 1fr auto auto;margin-top:12px;padding:12px;border:1px solid var(--border,#cfdbe7);border-radius:10px} #directCatalog input[type=checkbox]{width:auto} #directReset{color:#b91c1c;border-color:#b91c1c} html[data-theme=dark] #directReset{color:#fca5a5} @media(max-width:700px){#directCatalog form{grid-template-columns:1fr} #directOrders [data-private] dl{grid-template-columns:1fr}}
/* V83 — administration order desk and global alerts */
.direct-alert-count{min-width:24px;padding:3px 6px;border-radius:999px;background:#b91c1c;color:#fff;font-size:12px;text-align:center;margin-inline-start:auto;line-height:1.4}
.direct-alert-count[hidden],.direct-alert-toast[hidden]{display:none!important}
.direct-alert-status{font-size:12px;color:var(--muted,#64748b);margin:0 0 8px;line-height:1.6}
.direct-alert-status:empty{display:none}
.direct-alert-toast{position:fixed;inset-inline-end:20px;bottom:20px;z-index:1500;display:flex;align-items:center;gap:10px;flex-wrap:wrap;max-width:min(480px,calc(100vw - 40px));padding:14px;border:1px solid #6ba3e3;border-radius:14px;background:var(--card,#fff);color:var(--text,#17324d);box-shadow:0 12px 36px #172b4a33}
.direct-alert-toast span{font-weight:700;flex:1 1 180px}
.tg-desk-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:15px 0}
.tg-desk-stat{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:right;background:var(--card,#fff);color:inherit;border:1px solid var(--border,#d7e1ef);border-radius:12px;padding:12px;cursor:pointer;font:inherit}
.tg-desk-stat strong{font-size:23px;line-height:1.2}.tg-desk-stat[data-phase=waiting]{border-color:#d97706}.tg-desk-stat[data-phase=waiting] strong{color:#b45309}
.tg-desk-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end;margin:0 0 12px;padding:12px;border:1px solid var(--border,#d7e1ef);border-radius:12px}
.tg-desk-filters label{display:flex;flex-direction:column;gap:5px;font-weight:700;font-size:12px;min-width:0}.tg-desk-filters :is(input,select){width:100%;min-width:0;border:1px solid var(--border,#d7e1ef);border-radius:8px;padding:10px;background:var(--card,#fff);color:inherit;font:inherit}.tg-desk-filters label:nth-child(4){grid-column:1/2}
.tg-desk-meta{display:flex;gap:8px 16px;flex-wrap:wrap;font-size:12px;color:var(--muted,#64748b);margin:9px 0}.tg-desk-order button{margin-inline-end:6px;margin-bottom:4px}.tg-state.waiting{background:#fff3cd;color:#856404}.tg-state.incomplete,.tg-state.cancelled{background:#e4eaf2;color:#41546d}.tg-desk-pages{justify-content:space-between}.tg-desk-order .tg-head b{overflow-wrap:anywhere}#directListStatus{font-size:12px;margin:10px 0}
html[data-theme=dark] .direct-alert-toast{background:#172638;color:#edf4fc}html[data-theme=dark] .tg-desk-stat{background:#172638}html[data-theme=dark] .tg-desk-stat[data-phase=waiting] strong{color:#fbbf24}
@media(max-width:650px){.tg-desk-stats,.tg-desk-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.tg-desk-filters label:nth-child(4){grid-column:auto}.tg-desk-filters .btn{width:100%}.direct-alert-toast{bottom:12px;inset-inline-end:12px}}
/* V1.13.92: private reply attachment picker */
.tg91-file-box { display:grid; gap:8px; border:1px dashed currentColor; border-radius:10px; padding:10px; margin:8px 0; }
.tg91-file-box input[type=file] { display:block; width:100%; max-width:100%; margin-top:6px; }
.tg91-file-box [data-file-name] { overflow-wrap:anywhere; }
.tg91-file-box [hidden] { display:none !important; }
