/* SETTINGS_V3: "Настройки доступа" / "Настройки" / "Реквизиты": tiles, tabs, card grids, the access matrix and a side sheet. */
.tgagg .st{--st-surface:#fff;--st-soft:#f2f5f9;--st-line:rgba(15,23,42,.1);--st-text:#101828;--st-muted:#667085;--st-acc:#3390ec;--st-acc-soft:rgba(51,144,236,.14);--st-danger:#e5484d;--st-ok:#1f9d63;--st-warn:#c9861a;--st-violet:#7c5cff;
  display:grid;gap:16px;color:var(--st-text);font-size:14px;line-height:1.4}
.tgagg.theme-dark .st{--st-surface:#172533;--st-soft:#1f3040;--st-line:rgba(255,255,255,.1);--st-text:#e8eef4;--st-muted:#8fa3b5;--st-acc:#5aa8f3;--st-acc-soft:rgba(90,168,243,.18);--st-danger:#ff6b70;--st-ok:#4cc38a;--st-warn:#e0a94a;--st-violet:#a08cff}
.tgagg .st *{box-sizing:border-box}
.tgagg .st,.tgagg .st>*{min-width:0;max-width:100%}
.tgagg .st button,.tgagg .st input,.tgagg .st select{font:inherit}
.tgagg .st svg{width:18px;height:18px;flex:0 0 auto}
.tgagg .st .pg-head{margin-bottom:0}
.tgagg .st .pg-btn{--pgh-line:var(--st-line);--pgh-soft:var(--st-soft);--pgh-text:var(--st-text);--pgh-danger:var(--st-danger)}
.tgagg .pg-btn-sm{height:32px;padding:0 12px;border-radius:10px;font-size:13px}
.tgagg .pg-btn-danger{color:var(--pgh-danger,#e5484d);border-color:color-mix(in srgb,var(--pgh-danger,#e5484d) 30%,transparent);background:transparent}
.tgagg .pg-btn-danger:hover:not(:disabled){background:color-mix(in srgb,var(--pgh-danger,#e5484d) 10%,transparent)}
.tgagg .st-sub{color:var(--st-muted);font-size:12.5px}
.tgagg .st-hint{margin:0;color:var(--st-muted);font-size:12.5px}

/* ---- summary tiles ---- */
.tgagg .st-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(176px,1fr));gap:12px}
.tgagg .st-tile-card{--tc:var(--st-acc);position:relative;display:flex;align-items:center;gap:14px;padding:16px;border-radius:22px;overflow:hidden;
  background:linear-gradient(150deg,color-mix(in srgb,var(--tc) 14%,var(--st-surface)),var(--st-surface) 70%);border:1px solid color-mix(in srgb,var(--tc) 22%,var(--st-line));box-shadow:0 10px 26px -20px color-mix(in srgb,var(--tc) 80%,#000)}
.tgagg .st-tile-card>div{display:grid;gap:1px;min-width:0}
.tgagg .st-tile-card b{font-size:30px;line-height:1;font-weight:800;letter-spacing:-.03em}
.tgagg .st-tile-card span{font-weight:650;font-size:13px}
.tgagg .st-tile-card small{color:var(--st-muted);font-size:12px;line-height:1.3}
.tgagg .st-tile-ic{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;color:#fff;flex:0 0 46px;background:linear-gradient(145deg,var(--tc),color-mix(in srgb,var(--tc) 62%,#000));box-shadow:0 10px 18px -10px var(--tc)}
.tgagg .st-tile-ic svg{width:22px;height:22px}
.tgagg .st-tile-team{--tc:var(--st-violet)}.tgagg .st-tile-ok{--tc:var(--st-ok)}.tgagg .st-tile-bad{--tc:var(--st-danger)}.tgagg .st-tile-warn{--tc:var(--st-warn)}

/* ---- tabs, search, filters ---- */
.tgagg .st-tabs{display:flex}
.tgagg .st-seg{position:relative;display:grid;grid-template-columns:1fr 1fr;padding:4px;border-radius:16px;background:var(--st-soft);isolation:isolate}
.tgagg .st-seg-3{grid-template-columns:repeat(3,minmax(0,1fr));width:min(520px,100%)}
.tgagg .st-seg::before{content:"";position:absolute;z-index:-1;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);border-radius:12px;background:var(--st-surface);box-shadow:0 1px 2px rgba(15,23,42,.12),0 6px 14px -8px rgba(15,23,42,.3);transition:transform .3s cubic-bezier(.3,1.2,.4,1)}
.tgagg .st-seg-3::before{width:calc((100% - 8px) / 3)}
.tgagg .st-seg[data-active="1"]::before{transform:translateX(100%)}
.tgagg .st-seg[data-active="2"]::before{transform:translateX(200%)}
.tgagg .st-seg button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 12px;border:0;border-radius:12px;background:transparent;color:var(--st-muted);font-weight:700;font-size:13.5px;cursor:pointer;white-space:nowrap}
.tgagg .st-seg button.on{color:var(--st-acc)}
.tgagg .st-seg button b{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--st-acc-soft);color:var(--st-acc);font-size:11.5px}
.tgagg .st-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tgagg .st-search{display:flex;align-items:center;gap:9px;flex:1 1 240px;min-width:0;height:42px;padding:0 14px;border:1.5px solid transparent;border-radius:15px;background:var(--st-soft);color:var(--st-muted);transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.tgagg .st-search:focus-within{border-color:var(--st-acc);background:var(--st-surface);box-shadow:0 0 0 4px var(--st-acc-soft)}
.tgagg .st-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--st-text)}
.tgagg .st-filters{display:flex;gap:8px;flex-wrap:wrap}
.tgagg .st-filter{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px;border:1.5px solid var(--st-line);border-radius:19px;background:var(--st-surface);color:var(--st-text);font-weight:650;font-size:13px;cursor:pointer;transition:border-color .15s ease,background .15s ease}
.tgagg .st-filter b{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--st-soft);color:var(--st-muted);font-size:11.5px}
.tgagg .st-filter.active{border-color:var(--st-acc);background:var(--st-acc-soft)}
.tgagg .st-filter.active b{background:var(--st-acc);color:#fff}
.tgagg .st-content{display:grid;gap:14px}

/* ---- cards of numbers and people ---- */
.tgagg .st-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.tgagg .st-grid-people{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.tgagg .st-num,.tgagg .st-person{position:relative;display:grid;align-content:start;gap:6px;padding:16px;border:1px solid var(--st-line);border-radius:22px;background:var(--st-surface);box-shadow:0 1px 2px rgba(15,23,42,.05),0 12px 28px -20px rgba(15,23,42,.4);cursor:pointer;outline:0;text-align:left;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.tgagg .st-num:hover,.tgagg .st-person:hover,.tgagg .st-num:focus-visible,.tgagg .st-person:focus-visible{transform:translateY(-3px);border-color:color-mix(in srgb,var(--ac,var(--st-acc)) 45%,var(--st-line));box-shadow:0 2px 4px rgba(15,23,42,.06),0 18px 34px -18px rgba(15,23,42,.5)}
.tgagg .st-num::before{content:"";position:absolute;left:24px;right:24px;top:0;height:3px;border-radius:0 0 4px 4px;background:var(--ac,var(--st-acc))}
.tgagg .st-num.warn{border-color:color-mix(in srgb,var(--st-danger) 40%,var(--st-line))}
.tgagg .st-num-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}
.tgagg .st-num-phone{font-size:19px;font-weight:800;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tgagg .st-num-label{color:var(--st-muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tgagg .st-num-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;padding-top:12px;border-top:1px dashed var(--st-line);min-height:44px}
.tgagg .st-num-in{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;margin-left:auto}
.tgagg .st-num-in.on{background:color-mix(in srgb,var(--st-ok) 14%,transparent);color:var(--st-ok)}
.tgagg .st-num-in.off{background:color-mix(in srgb,var(--st-warn) 16%,transparent);color:var(--st-warn)}
.tgagg .st-plat{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;color:#fff;flex:0 0 34px;background:linear-gradient(145deg,#4aa3f2,#2f86dd)}
.tgagg .st-plat svg{width:18px;height:18px}
.tgagg .st-plat-wa{background:linear-gradient(145deg,#33c76a,#128c4a)}
.tgagg .st-plat-lg{width:46px;height:46px;border-radius:15px;flex-basis:46px}
.tgagg .st-plat-lg svg{width:24px;height:24px}
.tgagg .st-plat-sm{width:30px;height:30px;border-radius:10px;font-size:11px;font-weight:800;flex-basis:30px}
.tgagg .st-stack{display:inline-flex;align-items:center}
.tgagg .st-stack .st-ava{margin-left:-8px;box-shadow:0 0 0 2px var(--st-surface)}
.tgagg .st-stack .st-ava:first-child{margin-left:0}
.tgagg .st-more{margin-left:4px;color:var(--st-muted);font-size:12px;font-weight:700}
.tgagg .st-none{color:var(--st-muted);font-size:12.5px}
.tgagg .st-ava{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;overflow:hidden;background:linear-gradient(145deg,#5aa8f3,#2f86dd);color:#fff;font-weight:700;font-style:normal;flex:0 0 38px}
.tgagg .st-ava img{width:100%;height:100%;object-fit:cover}
.tgagg .st-ava-xs{width:22px;height:22px;flex-basis:22px;font-size:10px}
.tgagg .st-ava-sm{width:28px;height:28px;flex-basis:28px;font-size:11px}
.tgagg .st-ava-lg{width:56px;height:56px;flex-basis:56px;font-size:19px;margin-bottom:4px}
.tgagg .st-ava-xl{width:64px;height:64px;flex-basis:64px;font-size:22px}
.tgagg .st-person{justify-items:start}
.tgagg .st-person b{font-size:16px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tgagg .st-person-n{margin-top:6px;padding:4px 10px;border-radius:12px;background:var(--st-soft);color:var(--st-muted);font-size:12px;font-weight:650}
.tgagg .st-person.st-add{justify-items:center;align-content:center;text-align:center;border:2px dashed var(--st-line);background:transparent;box-shadow:none;min-height:180px;color:var(--st-text)}
.tgagg .st-person.st-add:hover{border-color:var(--st-acc);background:var(--st-acc-soft)}
.tgagg .st-add-ic{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:var(--st-acc-soft);color:var(--st-acc)}
.tgagg .st-role{display:inline-flex;align-items:center;height:21px;padding:0 9px;border-radius:11px;font-size:11px;font-weight:700;background:var(--st-acc-soft);color:var(--st-acc)}
.tgagg .st-role-admin{background:color-mix(in srgb,var(--st-violet) 20%,transparent);color:var(--st-violet)}
.tgagg .st-empty{padding:22px;border:1.5px dashed var(--st-line);border-radius:18px;color:var(--st-muted);text-align:center}
.tgagg .st-empty-big{display:grid;gap:8px;justify-items:center}
.tgagg .st-empty-big b{color:var(--st-text);font-size:16px}
.tgagg .st .settings-expire-plate{justify-self:start;margin:0;padding:3px 9px;font-size:11.5px}

/* ---- the access matrix ---- */
.tgagg .st-matrix-wrap{overflow:auto;border:1px solid var(--st-line);border-radius:22px;background:var(--st-surface);box-shadow:0 12px 28px -20px rgba(15,23,42,.4);max-height:68vh}
.tgagg .st-matrix{border-collapse:separate;border-spacing:0;width:100%}
.tgagg .st-matrix th,.tgagg .st-matrix td{padding:10px 12px;border-bottom:1px solid var(--st-line);text-align:center;background:var(--st-surface)}
.tgagg .st-matrix thead th{position:sticky;top:0;z-index:3;font-size:12px;color:var(--st-muted);font-weight:700;white-space:nowrap}
.tgagg .st-matrix th:first-child{position:sticky;left:0;z-index:2;text-align:left;min-width:190px;box-shadow:1px 0 0 var(--st-line)}
.tgagg .st-matrix thead th:first-child{z-index:4}
.tgagg .st-matrix tbody tr:last-child th,.tgagg .st-matrix tbody tr:last-child td{border-bottom:0}
.tgagg .st-matrix tbody tr:hover th,.tgagg .st-matrix tbody tr:hover td{background:color-mix(in srgb,var(--st-soft) 70%,var(--st-surface))}
.tgagg .st-col{display:inline-flex;flex-direction:column;align-items:center;gap:4px;max-width:96px}
.tgagg .st-col span{max-width:96px;overflow:hidden;text-overflow:ellipsis}
.tgagg .st-rowhead{display:flex;align-items:center;gap:10px}
.tgagg .st-rowhead span:last-child{display:grid;gap:1px;min-width:0}
.tgagg .st-rowhead b{font-size:14px;white-space:nowrap}
.tgagg .st-rowhead small{color:var(--st-muted);font-size:12px;font-weight:500;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tgagg .st-cell{display:inline-grid;place-items:center;cursor:pointer}
.tgagg .st-cell input{position:absolute;opacity:0;pointer-events:none}
.tgagg .st-cell i{display:grid;place-items:center;width:30px;height:30px;border:2px solid var(--st-line);border-radius:10px;color:transparent;background:var(--st-surface);transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}
.tgagg .st-cell i svg{width:17px;height:17px}
.tgagg .st-cell:hover i{border-color:var(--st-acc)}
.tgagg .st-cell input:checked+i{background:var(--st-acc);border-color:var(--st-acc);color:#fff;transform:scale(1.05)}
.tgagg .st-cell input:focus-visible+i{box-shadow:0 0 0 3px var(--st-acc-soft)}

/* ---- the side sheet ---- */
.tgagg .st-sheet-wrap{position:fixed;inset:0;z-index:95;display:flex;justify-content:flex-end}
.tgagg .st-backdrop{position:absolute;inset:0;background:rgba(10,18,28,.46);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.tgagg .st-sheet{position:relative;display:flex;flex-direction:column;width:min(480px,100%);height:100%;background:var(--st-surface);color:var(--st-text);box-shadow:-20px 0 50px -20px rgba(0,0,0,.45)}
.tgagg .st-sheet-wrap.fresh .st-backdrop{animation:st-fade .22s ease both}
.tgagg .st-sheet-wrap.fresh .st-sheet{animation:st-slide .3s cubic-bezier(.2,.8,.2,1) both}
@keyframes st-fade{from{opacity:0}to{opacity:1}}
@keyframes st-slide{from{transform:translateX(34px);opacity:0}to{transform:none;opacity:1}}
.tgagg .st-sheet-head{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--st-line)}
.tgagg .st-sheet-title{flex:1;min-width:0}
.tgagg .st-sheet-title h2{margin:0;font-size:19px;font-weight:800;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tgagg .st-sheet-title p{margin:2px 0 0;color:var(--st-muted);font-size:12.5px}
.tgagg .st-x{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:12px;background:var(--st-soft);color:var(--st-muted);cursor:pointer}
.tgagg .st-x:hover{color:var(--st-text)}
.tgagg .st-sheet-body{flex:1;min-height:0;overflow:auto;padding:18px;display:grid;align-content:start;gap:16px}
.tgagg .st-acc-card{display:grid;gap:18px}
.tgagg .st-block{display:grid;gap:10px}
.tgagg .st-block-title{display:flex;align-items:center;gap:8px;color:var(--st-muted);font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.tgagg .st-name{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tgagg .st-name-text{display:flex;align-items:center;gap:8px;min-width:0}
.tgagg .st-name-text b{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tgagg .st-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--ac,var(--st-acc));flex:0 0 10px}
.tgagg .st-name-edit{display:grid;gap:8px}
.tgagg .st-row-act,.tgagg .st-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tgagg .st-chips{display:flex;flex-wrap:wrap;gap:8px}
.tgagg .st-chip{position:relative;display:inline-flex;cursor:pointer}
.tgagg .st-chip input{position:absolute;opacity:0;pointer-events:none}
.tgagg .st-chip>span{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 14px 0 8px;border:1.5px solid var(--st-line);border-radius:19px;background:var(--st-surface);font-weight:650;font-size:13px;transition:border-color .15s ease,background .15s ease,color .15s ease}
.tgagg .st-chip input:checked+span{border-color:var(--st-acc);background:var(--st-acc-soft);color:var(--st-acc)}
.tgagg .st-chip input:focus-visible+span{box-shadow:0 0 0 3px var(--st-acc-soft)}
.tgagg .st-mini-plat{display:inline-grid;place-items:center;min-width:24px;height:22px;padding:0 5px;border-radius:7px;background:var(--st-soft);color:var(--st-muted);font-size:10.5px;margin-left:2px}
.tgagg .st-switch-row{display:flex;align-items:center;gap:8px}
.tgagg .st-switch{display:inline-flex;align-items:center;gap:12px;cursor:pointer;font-weight:650}
.tgagg .st-switch input{position:absolute;opacity:0;pointer-events:none}
.tgagg .st-switch i{position:relative;width:46px;height:26px;border-radius:13px;background:color-mix(in srgb,var(--st-muted) 35%,transparent);flex:0 0 46px;transition:background .2s ease}
.tgagg .st-switch i::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .2s cubic-bezier(.3,1.3,.5,1)}
.tgagg .st-switch input:checked+i{background:var(--st-acc)}
.tgagg .st-switch input:checked+i::after{transform:translateX(20px)}
.tgagg .st-switch input:focus-visible+i{box-shadow:0 0 0 3px var(--st-acc-soft)}
.tgagg .st-danger{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px;border:1px solid color-mix(in srgb,var(--st-danger) 30%,transparent);border-radius:16px;background:color-mix(in srgb,var(--st-danger) 6%,transparent)}
.tgagg .st-danger div{display:grid;gap:2px}.tgagg .st-danger b{font-size:13.5px}.tgagg .st-danger span{color:var(--st-muted);font-size:12.5px}
.tgagg .st-note{padding:11px 14px;border-radius:13px;background:var(--st-acc-soft)}
.tgagg .st-error{padding:10px 13px;border-radius:12px;background:color-mix(in srgb,var(--st-danger) 12%,transparent);color:var(--st-danger);font-size:13px}
.tgagg .st-status{color:var(--st-muted);font-size:12.5px}.tgagg .st-status[hidden]{display:none}
.tgagg .st-person-head{display:flex;align-items:center;gap:16px}
.tgagg .st-person-head>div{display:grid;gap:5px;justify-items:start}
.tgagg .st-person-head b{font-size:20px}
.tgagg .st-issued{display:grid;gap:8px;padding:14px 16px;border:1px solid color-mix(in srgb,var(--st-warn) 40%,transparent);border-radius:18px;background:color-mix(in srgb,var(--st-warn) 10%,var(--st-surface))}
.tgagg .st-issued code{padding:7px 11px;border-radius:10px;background:var(--st-soft);font-family:ui-monospace,Menlo,Consolas,monospace;word-break:break-all}
.tgagg .st-form{display:grid;gap:12px}
.tgagg .st-inline{display:flex;gap:8px;align-items:center}.tgagg .st-inline .st-input{flex:1;min-width:0}
.tgagg .st-input{display:block;width:100%;height:44px;padding:0 14px;border:1.5px solid transparent;border-radius:14px;outline:0;background:var(--st-soft);color:var(--st-text);transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.tgagg .st-input:focus{border-color:var(--st-acc);background:var(--st-surface);box-shadow:0 0 0 4px var(--st-acc-soft)}
.tgagg .st-seg-role{display:block;padding:0;background:transparent}.tgagg .st-seg-role::before{display:none}
.tgagg .st-pick{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tgagg .st-pick-card{display:grid;justify-items:center;gap:8px;padding:22px 12px;border:1.5px solid var(--st-line);border-radius:20px;background:var(--st-surface);color:var(--st-text);cursor:pointer;text-align:center;transition:transform .15s ease,border-color .15s ease,background .15s ease}
.tgagg .st-pick-card:hover{transform:translateY(-2px);border-color:var(--st-acc);background:var(--st-acc-soft)}
.tgagg .st-pick-card b{font-size:16px}

/* ---- requisites ---- */
.tgagg .st-req{position:relative;display:grid;gap:8px;padding:18px;border:1px solid var(--st-line);border-radius:22px;background:var(--st-surface);box-shadow:0 12px 28px -20px rgba(15,23,42,.4)}
.tgagg .st-req::before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:4px;border-radius:0 4px 4px 0;background:linear-gradient(180deg,#ffc93c,#f29c1f)}
.tgagg .st-req b{font-size:15px;padding-left:6px}
.tgagg .st-req code{padding:10px 12px;border-radius:12px;background:var(--st-soft);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px;word-break:break-all;margin-left:6px}
.tgagg .st-req .st-row-act{justify-content:flex-end}

@media (max-width:640px){
  .tgagg .st-tiles{grid-template-columns:1fr 1fr;gap:10px}
  .tgagg .st-tile-card{padding:13px;gap:10px;flex-direction:column;align-items:flex-start}
  .tgagg .st-tile-card b{font-size:26px}
  .tgagg .st-tile-card small{white-space:normal}
  .tgagg .st-grid,.tgagg .st-grid-people{grid-template-columns:1fr}
  .tgagg .st-sheet-wrap{align-items:flex-end}
  .tgagg .st-sheet{width:100%;height:min(92dvh,100%);border-radius:24px 24px 0 0}
  .tgagg .st-sheet-wrap.fresh .st-sheet{animation-name:st-rise}
  .tgagg .st-pick{grid-template-columns:1fr}
  .tgagg .st-matrix th:first-child{min-width:150px}
}
@keyframes st-rise{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.tgagg .st *{animation:none!important;transition:none!important}}

.tgagg .st-tile-click{cursor:pointer;outline:0;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.tgagg .st-tile-click:hover,.tgagg .st-tile-click:focus-visible{transform:translateY(-3px);box-shadow:0 16px 30px -18px color-mix(in srgb,var(--tc) 90%,#000)}
.tgagg .st-tile-click.on{border-color:var(--tc);box-shadow:0 0 0 2px color-mix(in srgb,var(--tc) 55%,transparent),0 16px 30px -18px color-mix(in srgb,var(--tc) 90%,#000)}
.tgagg .st-filter-note{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}

/* a number that Telegram logged out: log in again as the same account (nothing is deleted) */
.tgagg .st-relogin{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 14px;border:1px solid color-mix(in srgb,var(--st-warn) 45%,var(--st-line));border-radius:14px;background:color-mix(in srgb,var(--st-warn) 10%,var(--st-surface))}
.tgagg .st-relogin>div{flex:1 1 220px;display:grid;gap:3px;min-width:0}
.tgagg .st-relogin b{font-size:14px}
.tgagg .st-relogin span{color:var(--st-muted);font-size:12.5px}
.tgagg .st-relogin .pg-btn-primary{background:#2b7fd4;border-color:#2b7fd4;color:#fff;box-shadow:none}
.tgagg .st-relogin .pg-btn-primary .pg-btn-text{color:#fff;text-shadow:none}
.tgagg.theme-dark .st-relogin .pg-btn-primary{background:#1d6fbf;border-color:#1d6fbf}

/* groups of numbers: a stack of cards that fans out into its numbers (navigation only) */
.tgagg .st-num.is-pickable{cursor:pointer;user-select:none}
.tgagg .st-num.is-pickable:hover{transform:none}
.tgagg .st-pick-mark{position:absolute;right:14px;top:14px;width:24px;height:24px;border-radius:8px;border:2px solid var(--st-line);background:var(--st-surface);display:grid;place-items:center;transition:all .16s ease;z-index:2}
.tgagg .st-num.is-picked{border-color:var(--st-acc);background:var(--st-acc-soft);box-shadow:0 0 0 3px var(--st-acc-soft)}
.tgagg .st-num.is-picked .st-pick-mark{background:var(--st-acc);border-color:var(--st-acc)}
.tgagg .st-num.is-picked .st-pick-mark::after{content:"";width:6px;height:11px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg) translate(-1px,-1px)}
.tgagg .st-group{position:relative;display:block;min-height:188px;padding:0;border:0;background:transparent;cursor:pointer;outline:0;transition:transform .18s ease}
.tgagg .st-group:hover,.tgagg .st-group:focus-visible{transform:translateY(-3px)}
.tgagg .st-group-layer{position:absolute;inset:0;border-radius:22px;border:1px solid var(--st-line);background:var(--st-surface);box-shadow:0 1px 2px rgba(15,23,42,.06)}
.tgagg .st-group-layer.l2{transform:translate(10px,10px) scale(.94);opacity:.55}
.tgagg .st-group-layer.l1{transform:translate(5px,5px) scale(.97);opacity:.8}
.tgagg .st-group-face{position:relative;display:grid;align-content:start;gap:8px;height:100%;padding:16px;border-radius:22px;border:1px solid color-mix(in srgb,var(--ac,var(--st-acc)) 40%,var(--st-line));background:var(--st-surface);box-shadow:0 10px 26px -16px rgba(15,23,42,.35)}
.tgagg .st-group-face::before{content:"";position:absolute;left:24px;right:24px;top:0;height:3px;border-radius:0 0 4px 4px;background:var(--ac,var(--st-acc))}
.tgagg .st-group.warn .st-group-face{border-color:color-mix(in srgb,var(--st-danger) 40%,var(--st-line))}
.tgagg .st-group-top{display:flex;align-items:center;justify-content:space-between;margin-top:4px}
.tgagg .st-group-ic{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:color-mix(in srgb,var(--ac,var(--st-acc)) 18%,transparent);color:var(--ac,var(--st-acc))}
.tgagg .st-group-n{min-width:28px;height:28px;padding:0 9px;border-radius:14px;background:var(--st-soft);display:grid;place-items:center;font-weight:800;font-size:13px}
.tgagg .st-group-name{font-size:18px;font-weight:800;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tgagg .st-group-list{list-style:none;margin:0;padding:0;display:grid;gap:3px;color:var(--st-muted);font-size:12.5px}
.tgagg .st-group-list li{display:flex;align-items:center;gap:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tgagg .st-group-list i{width:8px;height:8px;border-radius:50%;background:var(--ac,var(--st-acc));flex:0 0 8px}
.tgagg .st-group-list .st-gmore{padding-left:15px;font-weight:700}
.tgagg .st-group.is-open .st-group-layer.l1{transform:translate(0,0) scale(1);opacity:.5}
.tgagg .st-group.is-open .st-group-layer.l2{transform:translate(0,0) scale(1);opacity:.3}
.tgagg .st-group-panel{grid-column:1/-1;display:grid;gap:14px;padding:16px;border:1px dashed color-mix(in srgb,var(--ac,var(--st-acc)) 55%,var(--st-line));border-radius:24px;background:color-mix(in srgb,var(--ac,var(--st-acc)) 5%,transparent)}
.tgagg .st-group-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.tgagg .st-group-folder{margin:14px 0 4px;flex-wrap:wrap;gap:6px 14px}
.tgagg .st-group-access{margin:14px 0 4px;padding:12px 14px;border:1px solid var(--st-line,rgba(127,127,127,.18));border-radius:14px}
.tgagg .st-group-access .st-chips{margin:8px 0 6px}
.tgagg .st-group-head h3{margin:0 0 8px;font-size:20px;font-weight:800}
.tgagg .st-gchips{display:flex;flex-wrap:wrap;gap:6px}
.tgagg .st-gchip{padding:4px 10px;border-radius:12px;background:var(--st-soft);font-size:12px;font-weight:650}
.tgagg .st-gchip.ok{background:color-mix(in srgb,var(--st-ok) 16%,transparent);color:var(--st-ok)}
.tgagg .st-gchip.bad{background:color-mix(in srgb,var(--st-danger) 14%,transparent);color:var(--st-danger)}
.tgagg .st-group-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tgagg .st-group-bar{position:sticky;bottom:12px;margin-top:16px;padding:12px 14px;border:1px solid var(--st-line);border-radius:18px;background:var(--st-surface);box-shadow:0 16px 38px -14px rgba(0,0,0,.45);z-index:5}
.tgagg .st-group-bar-in{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tgagg .st-group-bar .st-input{flex:1 1 200px;min-width:160px}
.tgagg .st-group-count{color:var(--st-muted);font-size:13px;font-weight:650}
.tgagg .st-group-hint,.tgagg .st-group-err{margin:8px 0 0;font-size:12.5px;color:var(--st-muted)}
.tgagg .st-group-err{color:var(--st-danger)}
.tgagg .st-fly-layer{position:fixed;inset:0;pointer-events:none;z-index:1000}
@media (prefers-reduced-motion:reduce){.tgagg .st-group,.tgagg .st-pick-mark{transition:none}}
