/* TekSantral hosted PBX screens (customer panel and administration). */
.ts-shell{grid-template-columns:232px minmax(0,1fr)}
.ts-sidebar{position:sticky;top:96px;align-self:start;max-height:calc(100dvh - 110px);overflow-y:auto;scrollbar-width:thin}
.ts-nav{display:flex;flex-direction:column;gap:2px}
.ts-nav a{display:flex;align-items:center;gap:10px;font-size:12px;color:#66738a;text-decoration:none;padding:8px 10px;border-radius:10px;white-space:nowrap}
.ts-nav a span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.ts-nav a:hover{background:#edf1f8}
.ts-nav a[aria-current]{background:#eaf0fe;color:var(--ac);font-weight:550}
.ts-nav-group{display:flex;flex-direction:column;gap:2px;margin-top:4px}
.ts-nav-group>summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#8492a8;font-weight:600;padding:8px 10px;border-radius:10px;user-select:none}
.ts-nav-group>summary::-webkit-details-marker{display:none}
.ts-nav-group>summary span{flex:1;min-width:0}
.ts-nav-group>summary svg{flex:none;transition:transform .15s ease;color:#a3aec0}
.ts-nav-group[open]>summary svg{transform:rotate(180deg)}
.ts-nav-group>summary:hover{background:#edf1f8;color:#55637c}
.ts-nav-group>summary:focus-visible{outline:2px solid var(--ac);outline-offset:1px}
.ts-nav-group[open]>summary .ts-nav-count{display:none}
.ts-nav-group:not([open])[data-current]>summary{color:var(--ac)}
.ts-nav-rule{display:block;height:1px;background:#e4e8f0;margin:10px 10px 8px}
.ts-nav-toggle{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.ts-nav-toggle-label{display:none}
@media(prefers-reduced-motion:reduce){.ts-nav-group>summary svg{transition:none}}
.ts-nav-label{display:block;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#9aa5b8;margin:18px 10px 6px;font-weight:600}
.ts-nav-count{font-style:normal;font-size:10px;min-width:19px;height:19px;display:grid;place-items:center;padding:0 5px;border-radius:999px;background:#fff1d6;color:#9a6200;font-weight:600}
.ts-page{display:flex;flex-direction:column;gap:20px;min-width:0}
.ts-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:4px}
.ts-head>div:first-child{min-width:0;max-width:720px}
.ts-head h1{font-size:36px;line-height:1.12;letter-spacing:-.035em;font-weight:300;margin-top:14px;overflow-wrap:anywhere}
.ts-head h1 b{font-weight:600}
.ts-head p{font-size:13px;color:#737f93;line-height:1.8;margin-top:14px}
.ts-head-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.ts-head-actions .btn,.ts-actions .btn,.ts-card .btn{min-height:40px;font-size:13px;padding:0 15px}
.ts-back{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#7384a3;text-decoration:none;margin-bottom:-6px}
.ts-back::before{content:"←"}
.ts-back:hover{color:var(--ac)}
.ts-card{border:1px solid #e0e5ef;border-radius:18px;background:#fff;padding:24px;min-width:0}
.ts-card h2{font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:1.35}
.ts-card h2 a{color:inherit;text-decoration:none}
.ts-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.ts-card-head p{font-size:12px;color:#7c889d;line-height:1.6;margin-top:6px}
.ts-table-card{padding:0;overflow:hidden}
.ts-table-card>.ts-card-head{padding:22px 24px 0}
.ts-table-card>.ts-empty,.ts-table-card>.ts-notice,.ts-table-card>.ts-sound-list{margin:18px 24px 24px}
.ts-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
.ts-columns.wide-left{grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr)}
.ts-stack{display:flex;flex-direction:column;gap:20px;min-width:0}
.ts-muted{font-size:12px;color:#7c889d;line-height:1.7}
.ts-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mono{font-family:'Geist Mono',ui-monospace,monospace}

/* Forms */
.ts-form{display:flex;flex-direction:column;gap:16px;--form-gap:16px}
.ts-form label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:500;color:#263247;min-width:0}
.ts-form input:not([type=checkbox]):not([type=radio]):not([type=file]),.ts-form select,.ts-form textarea,.ts-filter input,.ts-filter select,.ts-rename input{width:100%;min-width:0;border:1px solid #dbe0e9;border-radius:10px;background:#fff;color:#17233b;padding:10px 12px;font-size:14px;min-height:42px;font-weight:400}
.ts-form textarea{resize:vertical;line-height:1.6}
.ts-form input:focus,.ts-form select:focus,.ts-form textarea:focus{border-color:#8ca3df;outline:none;box-shadow:0 0 0 3px #1d3fb814}
.ts-form small,.ts-form>small{font-size:11px;line-height:1.6;color:#8390a3;font-weight:400}
.ts-form>.btn{align-self:flex-start}
.ts-form-wide{max-width:980px}
.ts-grid-2,.ts-grid-3,.ts-grid-4{display:grid;gap:14px;align-items:start}
.ts-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ts-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ts-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ts-grid-3 .span-2{grid-column:span 2}
.ts-fieldset{border:1px solid #e6eaf2;border-radius:14px;padding:16px 16px 18px;display:flex;flex-direction:column;gap:14px;min-width:0;margin:0}
.ts-fieldset legend{font-size:12px;font-weight:600;color:#3a4760;padding:0 6px}
.ts-check{flex-direction:row!important;align-items:flex-start;gap:10px!important;cursor:pointer}
.ts-check input{width:17px;height:17px;margin:1px 0 0;accent-color:var(--ac);flex:none}
.ts-check span{display:flex;flex-direction:column;gap:3px}
.ts-check strong{font-weight:500;font-size:13px;color:#263247}
.ts-check-cell{padding-top:22px}
.ts-inline-checks{display:flex;flex-wrap:wrap;gap:10px 18px}
.ts-inline-checks label{flex-direction:row;align-items:center;gap:7px;font-weight:400}
.ts-inline{display:inline-flex;margin:0;gap:8px;align-items:center}
.ts-hint{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:#f5f8ff;border:1px solid #e1e8fb;color:#3d5288}
.ts-hint p{font-size:12px;line-height:1.7;margin:0}
.ts-hint svg{flex:none;margin-top:2px}
.ts-advanced{border:1px dashed #d8deea;border-radius:14px;padding:12px 16px}
.ts-advanced summary{cursor:pointer;font-size:12px;font-weight:600;color:#3a4760;padding:4px 0}
.ts-advanced[open] summary{margin-bottom:14px}
.ts-advanced>*+*{margin-top:14px}
.ts-section{display:block}
.ts-page>.ts-section{background:#fff;border:1px solid #e0e5ef;border-style:solid;border-radius:16px;padding:16px 20px}
.ts-section>summary{display:flex;align-items:center;gap:8px;list-style:none;font-size:13px;color:#263247}
.ts-section>summary::-webkit-details-marker{display:none}
.ts-section>summary::before{content:"";width:7px;height:7px;border-right:1.7px solid #7b88a0;border-bottom:1.7px solid #7b88a0;transform:rotate(-45deg);transition:transform .15s ease;flex:none;margin:0 4px 0 2px}
.ts-section[open]>summary::before{transform:rotate(45deg)}
.ts-section>summary:focus-visible{outline:2px solid var(--ac);outline-offset:3px;border-radius:6px}
.ts-section-state{margin-left:auto;font-style:normal;font-size:11px;font-weight:500;color:#7b88a0;background:#f1f4f9;border-radius:999px;padding:3px 10px}
.ts-section[open] .ts-section-state{display:none}
.ts-section>*+*{margin-top:14px}
@media(prefers-reduced-motion:reduce){.ts-section>summary::before{transition:none}}
.ts-file input{padding:10px;border:1px dashed #cfd7e6;border-radius:10px;background:#fafbfe;font-size:13px}
.ts-dest{display:flex;flex-direction:column;gap:8px;min-width:0}
.ts-dest select,.ts-dest input{width:100%}
.btn.danger{color:#ae3340;border-color:#efc6ca}
.btn.danger:hover{border-color:#dc5d63;color:#9b2030}
.btn[aria-busy=true],form[aria-busy=true] .btn.a{opacity:.7;pointer-events:none}
.ts-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}

/* Status elements */
.ts-badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:500;line-height:1;padding:6px 9px;border-radius:999px;border:1px solid #dfe5ef;color:#647084;background:#f7f9fc;white-space:nowrap}
.ts-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.75}
.ts-badge.ok{color:#1f7a49;background:#eef9f3;border-color:#cfeadd}
.ts-badge.warn{color:#9a6200;background:#fff8ea;border-color:#f3e0b6}
.ts-badge.err{color:#ae3340;background:#fff3f3;border-color:#f3d3d5}
.ts-badge.info{color:#2b4fbf;background:#f0f4ff;border-color:#d8e2fa}
.ts-badge.info::before,.ts-badge.muted::before{display:none}
.ts-feature-badges{display:flex;flex-wrap:wrap;gap:5px}
.ts-notice{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-radius:14px;border:1px solid #e0e5ef;background:#fff}
.ts-notice>svg{flex:none;margin-top:1px}
.ts-notice>div{flex:1;min-width:0}
.ts-notice strong{display:block;font-size:13px;font-weight:600;line-height:1.5}
.ts-notice p{font-size:12px;line-height:1.7;color:inherit;opacity:.9;margin:2px 0 0}
.ts-notice form,.ts-notice>.btn{flex:none;align-self:center}
.ts-notice.info{background:#f3f6ff;border-color:#dbe4fb;color:#2b4387}
.ts-notice.warn{background:#fffaf0;border-color:#f1dfb5;color:#7d5300}
.ts-notice.error{background:#fff5f5;border-color:#f3d3d5;color:#9b2a37}
.ts-notice.muted{background:#f8f9fc;color:#5d6a80}
.ts-impersonation{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;border-radius:14px;background:#141b2d;color:#fff;font-size:12px;margin-bottom:18px}
.ts-impersonation span{flex:1;min-width:200px}
.ts-impersonation form{margin:0}
.ts-impersonation .btn{min-height:34px;font-size:12px}

/* Overview */
.ts-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ts-stat{display:flex;flex-direction:column;gap:10px;padding:20px;border:1px solid #e0e5ef;border-radius:16px;background:#fff;text-decoration:none;color:#1d2a44;min-width:0}
.ts-stat:hover{border-color:#a9b9e3}
.ts-stat small{font-size:11px;color:#7c889d}
.ts-stat strong{font-size:30px;font-weight:600;letter-spacing:-.04em;line-height:1}
.ts-stat strong em{font-style:normal;font-size:14px;color:#9aa5b8;font-weight:500;margin-left:4px;letter-spacing:0}
.ts-stat>span{font-size:11px;color:#8390a3}
.ts-checklist ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.ts-checklist li a{display:flex;align-items:center;gap:14px;padding:12px;border-radius:12px;text-decoration:none;color:#263247}
.ts-checklist li a:hover{background:#f6f8fc}
.ts-checklist li a>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.ts-checklist li a strong{font-size:13px;font-weight:600}
.ts-checklist li a small{font-size:12px;color:#7c889d;line-height:1.6}
.ts-checklist li.done strong{color:#7c889d;text-decoration:line-through;text-decoration-color:#c7cfdc}
.ts-step-mark{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;border:1px solid #d8e2fa;color:var(--ac);font-size:12px;font-weight:600;background:#f5f8ff}
.ts-checklist li.done .ts-step-mark{background:#eef9f3;border-color:#cfeadd;color:#1f7a49}
.ts-progress{display:block;width:140px;height:8px;border:0;border-radius:999px;background:#edf1f8;overflow:hidden;flex:none;margin-top:6px;appearance:none;-webkit-appearance:none}
.ts-progress::-webkit-progress-bar{background:#edf1f8;border-radius:999px}
.ts-progress::-webkit-progress-value{background:var(--ac);border-radius:999px}
.ts-progress::-moz-progress-bar{background:var(--ac);border-radius:999px}
.ts-call-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.ts-call-list li{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #eef1f6}
.ts-call-list li:first-child{border-top:0}
.ts-call-list li>span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.ts-call-list strong{font-size:13px;font-weight:550}
.ts-call-list small{font-size:11px;color:#7c889d}
.ts-dir{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#f0f4ff;color:#2b4fbf;flex:none;vertical-align:middle}
.ts-dir.out{background:#f1f7f3;color:#1f7a49}
.ts-dir.int{background:#f5f5f8;color:#5d6a80}
.ts-dir.missed{background:#fff3f3;color:#ae3340}
.ts-link{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--ac);text-decoration:none;white-space:nowrap}
.ts-kv{display:flex;flex-direction:column;margin:0 0 18px}
.ts-kv>div{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:11px 0;border-top:1px solid #eef1f6}
.ts-kv>div:first-child{border-top:0}
.ts-kv dt{font-size:12px;color:#7c889d}
.ts-kv dd{margin:0;font-size:13px;text-align:right;overflow-wrap:anywhere;display:flex;align-items:center;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.ts-kv.compact{margin:12px 0 0}
.ts-secret{filter:blur(5px);transition:filter .2s;user-select:all}
.ts-secret.shown{filter:none}
.ts-icon-btn{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;border:1px solid #e0e5ef;background:#fff;color:#56647c;cursor:pointer;text-decoration:none;flex:none;padding:0}
.ts-icon-btn:hover{border-color:#a9b9e3;color:var(--ac)}
.ts-copied{font-size:11px;color:#1f7a49}
.ts-config{white-space:pre-wrap;font-size:12px;background:#f7f9fc;border-radius:10px;padding:12px}
.ts-subhead{font-size:13px;font-weight:600;margin:22px 0 10px}
.ts-device-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.ts-device-list li{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 12px;border-radius:10px;background:#f7f9fc;font-size:12px}
.ts-device-list small{color:#7c889d}

/* Tables */
.ts-table-wrap{position:relative;overflow-x:auto;max-width:100%;scrollbar-width:thin}
.ts-table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.5;text-align:left}
.ts-table th{font-size:11px;font-weight:500;color:#8390a3;padding:12px 16px;background:#fafbfe;border-top:1px solid #edf0f6;border-bottom:1px solid #edf0f6;white-space:nowrap}
.ts-table td{padding:14px 16px;border-bottom:1px solid #f0f2f7;vertical-align:middle}
.ts-table tbody tr:last-child td{border-bottom:0}
.ts-table tbody tr:hover td{background:#fbfcfe}
.ts-table th:first-child,.ts-table td:first-child{padding-left:24px}
.ts-table th:last-child,.ts-table td:last-child{padding-right:24px}
.ts-table.compact td,.ts-table.compact th{padding:10px 14px}
.ts-card>.ts-table-wrap .ts-table.compact th:first-child,.ts-card>.ts-table-wrap .ts-table.compact td:first-child{padding-left:14px}
.ts-row-link{display:flex;align-items:center;gap:12px;color:#1d2a44;text-decoration:none;min-width:180px}
.ts-row-link>span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.ts-row-link strong{font-weight:600}
.ts-row-link small{font-size:11px;color:#8390a3}
.ts-row-link:hover strong{color:var(--ac)}
.ts-row-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#f0f4ff;color:var(--ac);flex:none}
.ts-ext-number{display:grid;place-items:center;min-width:44px;height:36px;padding:0 6px;border-radius:11px;background:#f0f4ff;color:var(--ac);font-weight:600;font-size:13px}
.ts-key-summary{display:flex;flex-wrap:wrap;gap:6px;max-width:420px}
.ts-key-summary span{font-size:11px;padding:4px 8px;border-radius:8px;background:#f5f7fb;color:#4c5a72;white-space:nowrap}
.ts-key-summary b{color:var(--ac)}
.ts-pager{display:flex;align-items:center;justify-content:center;gap:14px;padding:16px;font-size:12px;color:#7c889d;border-top:1px solid #f0f2f7}
.ts-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:32px 20px;color:#7c889d}
.ts-empty svg{color:#9fb1df}
.ts-empty strong{font-size:15px;color:#263247;font-weight:600}
.ts-empty p{font-size:12px;line-height:1.7;max-width:420px}
.ts-empty .btn{margin-top:6px}

/* Specific editors */
.ts-ivr-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}
.ts-ivr-row{display:flex;align-items:flex-start;gap:10px;min-width:0}
.ts-ivr-row .ts-dest{flex:1}
.ts-key{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#f0f4ff;color:var(--ac);font-weight:700;font-size:15px;flex:none}
.ts-member-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}
.ts-member{flex-direction:row!important;align-items:center;gap:9px!important;padding:10px 12px;border:1px solid #e6eaf2;border-radius:11px;font-weight:400!important;cursor:pointer}
.ts-member:has(input:checked){border-color:#a9b9e3;background:#f5f8ff}
.ts-member input{accent-color:var(--ac);width:16px;height:16px;flex:none}
.ts-member b{color:var(--ac);margin-right:4px}
.ts-week{display:flex;flex-direction:column;gap:6px}
.ts-week-head,.ts-week-row{display:grid;grid-template-columns:150px minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:center}
.ts-week-head{font-size:11px;color:#8390a3;padding:0 4px}
.ts-week-row{padding:8px 10px;border-radius:12px;background:#fafbfe}
.ts-week-row.closed .ts-range{opacity:.35}
.ts-day{flex-direction:row!important;align-items:center;gap:9px!important;font-weight:500}
.ts-day input{accent-color:var(--ac);width:16px;height:16px}
.ts-range{display:flex;align-items:center;gap:8px;color:#8390a3}
.ts-range input{min-height:38px!important;padding:6px 8px!important}
.ts-schedule-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:18px}
.ts-week-summary{list-style:none;margin:0 0 14px;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.ts-week-summary li{display:flex;flex-direction:column;gap:4px;padding:8px 6px;border-radius:10px;background:#f7f9fc;text-align:center;min-width:0}
.ts-week-summary span{font-size:10px;color:#8390a3;text-transform:uppercase}
.ts-week-summary b{font-size:10px;font-weight:500;color:#36435b;overflow-wrap:anywhere;line-height:1.4}
.ts-segmented{display:inline-flex;border:1px solid #e0e5ef;border-radius:11px;padding:3px;gap:3px;background:#f7f9fc;margin-top:14px;flex-wrap:wrap}
.ts-segmented button{border:0;background:transparent;padding:7px 13px;border-radius:8px;font-size:12px;color:#5d6a80;cursor:pointer}
.ts-segmented button[aria-pressed=true]{background:#fff;color:var(--ac);font-weight:600;box-shadow:0 1px 3px #182d5814}
.ts-sound-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.ts-sound-list>li{display:flex;flex-direction:column;gap:12px;padding:16px 24px;border-top:1px solid #f0f2f7}
.ts-card>.ts-sound-list{margin:0}
.ts-table-card>.ts-sound-list{margin:8px 0 0}
.ts-sound-main{display:flex;align-items:center;gap:12px}
.ts-sound-main>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.ts-sound-main strong{font-size:13px;font-weight:600}
.ts-sound-main small{font-size:11px;color:#7c889d;overflow-wrap:anywhere}
.ts-sound-list audio{width:100%;max-width:520px;height:36px}
.ts-sound-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ts-sound-actions .btn{min-height:34px;font-size:12px;padding:0 11px}
.ts-rename input{min-height:34px!important;padding:6px 10px!important;font-size:12px!important;width:180px}
.ts-error-text{font-size:12px;color:#ae3340}
.ts-filter{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:16px 18px}
.ts-filter label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#5d6a80;min-width:140px;flex:1}
.ts-filter .btn{min-height:42px;font-size:13px}
.ts-presets{display:flex;flex-wrap:wrap;gap:8px;flex-basis:100%}
.ts-chip{font-size:12px;color:#55637c;text-decoration:none;border:1px solid #dbe0e9;border-radius:999px;padding:6px 12px;background:#fff}
.ts-chip:hover{background:#edf1f8}
.ts-chip[aria-current]{background:#eaf0fe;border-color:#c9d6fb;color:var(--ac);font-weight:550}
.ts-stat-text{font-size:22px!important;letter-spacing:-.02em!important;line-height:1.36!important}
.ts-rate{display:flex;flex-direction:column;gap:14px}
.ts-rate-value{font-size:30px;font-weight:600;letter-spacing:-.04em;color:#1d2a44}
.ts-meter{width:100%;height:12px;border-radius:999px}
.ts-table th.num,.ts-table td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.ts-table th.num .ts-label{justify-content:flex-end}
.ts-player{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:10px 12px;background:#fff;border:1px solid #d9e0ec;border-radius:16px;box-shadow:0 18px 48px -18px #18294a59;z-index:40;width:min(560px,calc(100% - 32px))}
.ts-player audio{flex:1;height:36px;min-width:0}
.ts-tabs{display:flex;gap:8px;flex-wrap:wrap}
.ts-tabs a{display:inline-flex;gap:6px;align-items:center;padding:9px 14px;border-radius:11px;border:1px solid #e0e5ef;background:#fff;color:#4c5a72;text-decoration:none;font-size:12px}
.ts-tabs a[aria-current]{border-color:var(--ac);color:var(--ac);background:#f5f8ff}
.ts-danger{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-color:#f3d9dc;max-width:980px}
.ts-danger h2{font-size:15px}
.ts-danger p{font-size:12px;color:#7c889d;margin-top:4px;line-height:1.6}
.ts-provider-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.ts-provider-grid>div{display:flex;flex-direction:column;gap:8px}
.ts-provider-grid strong{font-size:14px;font-weight:600}
.ts-provider-grid p{font-size:12px;color:#7c889d;line-height:1.7}
.ts-code-pill{display:inline-block;align-self:flex-start;font-family:'Geist Mono',ui-monospace,monospace;font-size:12px;padding:7px 10px;border-radius:9px;background:#f0f4ff;color:#20389a}
.ts-guide{display:flex;flex-direction:column;gap:18px;max-width:980px}
.ts-guide .ts-card{display:flex;flex-direction:column;gap:12px}
.ts-guide p{font-size:13px;color:#5d6a80;line-height:1.8}
.ts-guide .btn{align-self:flex-start}
.ts-guide-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ts-guide-options>div{padding:16px;border:1px solid #e6eaf2;border-radius:14px}
.ts-guide-options h3{font-size:14px;font-weight:600;margin-bottom:8px}
.ts-events,.ts-warning-list{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column}
.ts-events li{display:flex;flex-direction:column;gap:2px;padding:9px 0;border-top:1px solid #f0f2f7}
.ts-events li:first-child{border-top:0}
.ts-events strong{font-size:12px;font-weight:550;min-width:0;overflow-wrap:anywhere}
.ts-events small{font-size:11px;color:#8390a3}
.ts-warning-list li{font-size:11px;color:#7d5300;background:#fffaf0;border-radius:8px;padding:7px 10px;margin-top:6px;line-height:1.5}

/* Admin additions */
.admin-content .ts-badge{font-size:10px}
.admin-pbx-health{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}
.admin-pbx-health>div{padding:14px;border-radius:12px;background:#f7f9fd;border:1px solid #e6ebf4;min-width:0}
.admin-pbx-health small{display:block;font-size:10px;color:#7a8ba5}
.admin-pbx-health strong{display:block;font-size:13px;margin-top:6px;overflow-wrap:anywhere}
.admin-command{display:block;white-space:pre-wrap;word-break:break-all;font-family:'Geist Mono',ui-monospace,monospace;font-size:12px;line-height:1.7;background:#0f1628;color:#d8e2ff;padding:16px;border-radius:12px;margin:12px 0}
.admin-limit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.admin-resource-table td small{display:block;color:#8190a8;font-size:10px}

@media(max-width:1180px){
  .ts-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ts-columns,.ts-columns.wide-left{grid-template-columns:minmax(0,1fr)}
  .ts-provider-grid{grid-template-columns:1fr}
  .admin-pbx-health,.admin-limit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1080px){
  .ts-shell{grid-template-columns:200px minmax(0,1fr)}
  .ts-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ts-ivr-options{grid-template-columns:1fr}
}
@media(max-width:680px){
  .ts-shell{grid-template-columns:minmax(0,1fr)}
  .ts-sidebar{position:static;max-height:none;overflow:visible}
  .ts-nav-toggle-label{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #e2e7ef;border-radius:12px;background:#fff;font-size:12px;color:#66738a;cursor:pointer}
  .ts-nav-toggle-label b{flex:1;min-width:0;font-weight:600;color:#1a2233;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ts-nav-toggle-label svg{flex:none}
  .ts-nav-toggle:focus-visible+.ts-nav-toggle-label{outline:2px solid var(--ac);outline-offset:2px}
  .ts-nav-toggle:checked+.ts-nav-toggle-label svg:last-child{transform:rotate(180deg)}
  .ts-sidebar .ts-nav{display:none;flex-direction:column;overflow:visible;gap:2px;padding:8px;margin-top:8px;border:1px solid #e2e7ef;border-radius:12px;background:#fff}
  .ts-sidebar .ts-nav-toggle:checked~.ts-nav{display:flex}
  .ts-sidebar .ts-nav a{padding:11px 10px;background:none;border:0;font-size:13px;flex-shrink:1}
  .ts-sidebar .ts-nav a[aria-current]{background:#eaf0fe}
  .ts-head h1{font-size:28px}
  .ts-card{padding:18px;border-radius:16px}
  .ts-table-card{padding:0}
  .ts-table-card>.ts-card-head{padding:18px 18px 0}
  .ts-grid-2,.ts-grid-3,.ts-grid-4,.ts-guide-options{grid-template-columns:minmax(0,1fr)}
  .ts-grid-3 .span-2{grid-column:auto}
  .ts-stats{gap:10px}
  .ts-stat{padding:16px}
  .ts-stat strong{font-size:26px}
  .ts-week-head{display:none}
  .ts-week-row{grid-template-columns:minmax(0,1fr);gap:8px}
  .ts-week-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ts-form input:not([type=checkbox]):not([type=radio]):not([type=file]),.ts-form select,.ts-form textarea{font-size:16px}
  .ts-check-cell{padding-top:0}
  .ts-sound-list>li{padding:14px 18px}
  .ts-rename input{width:140px}
  .ts-kv>div{flex-direction:column;align-items:flex-start;gap:4px}
  .ts-kv dd{text-align:left;justify-content:flex-start}
  .admin-pbx-health,.admin-limit-grid{grid-template-columns:minmax(0,1fr)}
}
.admin-chart{width:100%;height:auto;display:block;margin-top:14px}
.admin-chart .grid{stroke:#e9edf5;stroke-width:1}
.admin-chart .base{stroke:#cdd5e3;stroke-width:1}
.admin-chart .axis{fill:#8190a8;font-size:11px}
.admin-chart .bar path{fill:#1D3FB8}
.admin-chart .bar .hit{fill:transparent}
.admin-chart .bar:hover path{fill:#13308f}
.admin-chart .bar:hover .hit{fill:#f0f4ff}
.admin-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}
.admin-kpis>div{padding:14px;border-radius:12px;background:#f7f9fd;border:1px solid #e6ebf4}
.admin-kpis small{display:block;font-size:10px;color:#7a8ba5}
.admin-kpis strong{display:block;font-size:22px;font-weight:600;letter-spacing:-.03em;margin-top:6px;color:#17243b}
@media(max-width:680px){.admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.admin-action-row .btn{font-size:12px;min-height:42px;padding:0 15px}

/* Inline help tips */
.ts-label{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.ts-tip{position:relative;display:inline-flex;vertical-align:middle;font-weight:400}
.ts-tip-btn{display:inline-grid;place-items:center;width:18px;height:18px;min-height:0;border-radius:50%;border:1px solid #c9d3e6;background:#f5f8ff;color:#3d5288;font-size:11px;font-weight:700;line-height:1;cursor:help;padding:0;flex:none}
.ts-tip-btn:hover,.ts-tip.open .ts-tip-btn{background:var(--ac);border-color:var(--ac);color:#fff}
.ts-tip-bubble{display:none;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);z-index:80;width:max-content;max-width:min(300px,calc(100vw - 32px));padding:10px 12px;border-radius:10px;background:#141b2d;color:#f3f6ff;font-size:12px;font-weight:400;letter-spacing:0;text-transform:none;line-height:1.55;text-align:left;white-space:normal;box-shadow:0 12px 32px -12px #0d142866;pointer-events:none}
.ts-tip:hover .ts-tip-bubble,.ts-tip:focus-within .ts-tip-bubble,.ts-tip.open .ts-tip-bubble{display:block}
.ts-tip-bubble.is-fixed{position:fixed;bottom:auto;transform:none}
@media(hover:none){.ts-tip:hover:not(.open):not(:focus-within) .ts-tip-bubble{display:none}}
@media(forced-colors:active){.ts-tip-bubble{border:1px solid CanvasText}}

/* Easy number setup wizard */
.ts-wizard{display:flex;flex-direction:column;gap:18px;max-width:980px}
.ts-wizard-steps{list-style:none;margin:0;padding:0 0 2px;display:none;gap:6px;overflow-x:auto;scrollbar-width:thin}
.ts-wizard.is-js .ts-wizard-steps{display:flex}
.ts-wizard-steps li{flex:1 0 auto}
.ts-wizard-steps button{width:100%;display:flex;align-items:center;gap:8px;padding:8px 12px 8px 8px;border:1px solid #e0e5ef;border-radius:12px;background:#fff;color:#7c889d;font-size:12px;cursor:pointer;white-space:nowrap}
.ts-wizard-steps button:disabled{cursor:default;opacity:.65}
.ts-wizard-steps button:not(:disabled):hover{border-color:#a9b9e3}
.ts-wizard-steps button[aria-current=step]{border-color:var(--ac);color:var(--ac);background:#f5f8ff;font-weight:600}
.ts-wizard-steps button.done .ts-step-mark{background:#eef9f3;border-color:#cfeadd;color:#1f7a49}
.ts-wizard-steps .ts-step-mark{width:24px;height:24px;font-size:11px}
.ts-wizard.is-js .ts-wizard-step:not(.current){display:none}
.ts-wizard-step{display:flex;flex-direction:column;gap:18px}
.ts-wizard-step>header{display:flex;gap:14px;align-items:flex-start}
.ts-wizard-step>header h2{font-size:20px}
.ts-wizard-step>header p{font-size:13px;color:#737f93;line-height:1.7;margin-top:6px;max-width:680px}
.ts-wizard-nav{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #eef1f6;padding-top:16px}
.ts-wizard-nav .btn{min-height:42px}
.ts-wizard:not(.is-js) [data-next],.ts-wizard:not(.is-js) [data-prev],.ts-wizard:not(.is-js) .ts-wizard-js,.ts-wizard.is-js .ts-wizard-nojs{display:none}
.ts-wizard:not(.is-js) .ts-wizard-step:not(.ts-wizard-final) .ts-wizard-nav{display:none}
.ts-fieldset.ts-plain{border:0;padding:0}
.ts-fieldset.ts-plain legend{padding:0;margin-bottom:10px;font-size:12px;font-weight:500;color:#263247}
.ts-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
.ts-choice-grid.compact{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.ts-form .ts-choice,.ts-choice{position:relative;display:flex;flex-direction:column;gap:6px;padding:16px 44px 16px 16px;border:1px solid #e0e5ef;border-radius:14px;background:#fff;cursor:pointer;font-weight:400;min-width:0}
.ts-choice:hover{border-color:#a9b9e3}
.ts-choice:has(input:checked){border-color:var(--ac);background:#f5f8ff;box-shadow:0 0 0 3px #1d3fb814}
.ts-choice:has(input:focus-visible){outline:2px solid var(--ac);outline-offset:2px}
.ts-choice input{position:absolute;top:16px;right:16px;width:17px;height:17px;margin:0;accent-color:var(--ac)}
.ts-choice-icon{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#f0f4ff;color:var(--ac);margin-bottom:4px}
.ts-choice strong{font-size:14px;font-weight:600;color:#1d2a44;line-height:1.4}
.ts-choice small{font-size:12px;color:#7c889d;line-height:1.6}
.ts-person-list{display:flex;flex-direction:column;gap:8px;max-width:560px}
.ts-person-row{display:flex;align-items:center;gap:10px}
.ts-person-row input{flex:1}
.ts-person-row .ts-ext-number{min-width:52px}
.ts-person-list+.btn{align-self:flex-start;margin-top:10px}
.ts-key-rows{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px 18px}
.ts-key-rows+.btn{margin-top:10px}
.ts-narrow{max-width:320px}
.ts-days label{padding:8px 12px;border:1px solid #e0e5ef;border-radius:10px;cursor:pointer}
.ts-days label:has(input:checked){border-color:#a9b9e3;background:#f5f8ff}
.ts-wizard-error{font-size:12px;color:#ae3340;margin:0}
.ts-summary{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.ts-summary li{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;padding:12px 14px;border-radius:12px;background:#f7f9fc;font-size:13px;line-height:1.65;color:#263247}
.ts-summary li>span:first-child{font-size:12px;color:#7c889d}
.ts-summary li small{display:block;font-size:12px;color:#7c889d;margin-top:2px}
.ts-wizard-cta{display:flex;align-items:center;gap:18px;flex-wrap:wrap;border-color:#cfdaf6;background:#f7f9ff}
.ts-wizard-cta>div{flex:1;min-width:240px}
.ts-wizard-cta h2{font-size:17px}
.ts-wizard-cta p{font-size:12px;color:#5d6a80;line-height:1.7;margin-top:4px}
.ts-wizard-cta .ts-row-icon{width:44px;height:44px;border-radius:13px}
.ts-wizard-result .ts-notice{margin:2px 0}
.ts-result-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.ts-result-list a{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #e6eaf2;border-radius:12px;color:#1d2a44;text-decoration:none}
.ts-result-list a:hover{border-color:#a9b9e3}
.ts-result-list a>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.ts-result-list small{font-size:11px;color:#8390a3}
.ts-result-list strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}
@media(max-width:680px){
  .ts-wizard-steps li{flex:0 0 auto}
  .ts-wizard-steps button>span:last-child{display:none}
  .ts-wizard-steps button[aria-current=step]>span:last-child{display:inline}
  .ts-wizard-step>header .ts-step-mark{display:none}
  .ts-choice-grid,.ts-choice-grid.compact{grid-template-columns:minmax(0,1fr)}
  .ts-summary li{grid-template-columns:minmax(0,1fr);gap:4px}
  .ts-wizard-nav .btn{flex:1;justify-content:center}
  .ts-narrow{max-width:none}
}

/* Administration: PBX inventory and diagnostics */
.admin-task-list{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.admin-task-list a{display:flex;flex-direction:column;gap:5px;height:100%;padding:16px;border:1px solid #e6ebf4;border-radius:12px;background:#fbfcfe;color:#17243b;text-decoration:none}
.admin-task-list a:hover{border-color:#a9b9e3;background:#fff}
.admin-task-list strong{font-size:13px;font-weight:600}
.admin-task-list small{font-size:12px;color:#7a8ba5;line-height:1.6}
.admin-radio-row{display:flex;flex-wrap:wrap;gap:8px 18px;margin:4px 0}
.admin-log{display:flex;flex-direction:column;gap:1px;max-height:560px;overflow:auto;margin-top:14px;padding:12px;border-radius:12px;background:#0f1628;scrollbar-width:thin}
.admin-log code{display:block;padding:2px 6px;border-radius:5px;color:#c9d4f2;font-family:'Geist Mono',ui-monospace,monospace;font-size:11px;line-height:1.65;white-space:pre-wrap;word-break:break-all}
.admin-log code.error{color:#ffc2c6;background:#43182366}
.admin-log code.warning{color:#ffdc9e}
.admin-log code.notice{color:#b2cbff}
.admin-content .ts-tabs{margin-top:22px}
.admin-content .ts-tabs a{font-size:12px}
.admin-content .ts-notice{margin-top:14px}
.admin-table td .admin-inline .btn{min-height:34px;font-size:11px;padding:0 11px;white-space:nowrap}
.admin-table td .admin-inline{margin-top:8px}
.admin-radio-row .admin-check{flex:0 0 auto;align-items:center}
.admin-form .admin-radio-row .admin-check input[type=radio]{width:16px;height:16px;min-height:0;flex:none;padding:0;margin:0}
.admin-radio-row .admin-check span{white-space:nowrap;font-size:12px}
.admin-content .ts-danger{max-width:none}

/* Wide screens: the customer panel and administration use the available width.
   Header, content and footer share one container so they stay aligned. */
@media(min-width:1440px){
  .client-surface .w,.admin-header .nvi{max-width:1440px;padding-left:40px;padding-right:40px}
  .ts-shell{grid-template-columns:244px minmax(0,1fr);gap:44px}
  .admin-shell{grid-template-columns:232px minmax(0,1fr);gap:40px}
  .ts-form-wide,.ts-guide,.ts-wizard,.ts-danger{max-width:1120px}
  .ts-head>div:first-child{max-width:820px}
  .admin-table td{max-width:420px}
  .admin-pbx-health{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
}
@media(min-width:1680px){
  .client-surface .w,.admin-header .nvi{max-width:1600px;padding-left:48px;padding-right:48px}
  .ts-form-wide,.ts-guide,.ts-wizard,.ts-danger{max-width:1240px}
  .ts-columns.wide-left{grid-template-columns:minmax(0,1.85fr) minmax(320px,1fr)}
  .ts-ivr-options{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ts-schedule-list{grid-template-columns:repeat(auto-fill,minmax(360px,1fr))}
  .ts-stats,.admin-kpis{gap:18px}
  .admin-table td{max-width:520px}
  .admin-detail-grid{gap:28px}
}
@media(min-width:2048px){
  .client-surface .w,.admin-header .nvi{max-width:1840px}
  .ts-form-wide,.ts-guide,.ts-wizard,.ts-danger{max-width:1360px}
}

/* Browser phone */
.ts-phone{display:grid;grid-template-columns:minmax(300px,400px) minmax(0,1fr);gap:20px;align-items:start}
.ts-phone.is-window{grid-template-columns:minmax(0,1fr)}
.ts-phone-card{display:flex;flex-direction:column;gap:16px;padding:20px}
.ts-phone-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ts-phone-line{display:flex;align-items:center;gap:8px;font-size:12px;color:#66738a;min-width:0}
.ts-phone-line select{border:1px solid #dbe0e9;border-radius:10px;background:#fff;color:#17233b;padding:8px 10px;font-size:13px;max-width:210px;min-width:0}
.ts-phone-state{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;padding:6px 10px;border-radius:999px;background:#f3f5f9;color:#66738a;white-space:nowrap}
.ts-phone-state::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.ts-phone-state[data-state=registered]{background:#eef9f3;color:#1f7a49}
.ts-phone-state[data-state=connecting]{background:#fff8ea;color:#9a6200}
.ts-phone-state[data-state=failed]{background:#fff3f3;color:#ae3340}
.ts-phone-message{font-size:12px;line-height:1.6;color:#8a2a33;background:#fff6f6;border:1px solid #f3d3d5;border-radius:12px;padding:10px 12px}
.ts-phone-vm{font-size:12px;font-weight:600;color:var(--ac);text-decoration:none;background:#f0f4ff;border-radius:12px;padding:9px 12px}
.ts-phone-start{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:26px 8px}
.ts-phone-start-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:20px;background:#f0f4ff;color:var(--ac)}
.ts-phone-start p{font-size:13px;color:#66738a;line-height:1.7;max-width:300px}
.ts-phone-idle{display:flex;flex-direction:column;gap:14px}
.ts-phone-display{display:flex;align-items:center;gap:8px;border-bottom:1px solid #e6eaf1;padding:4px 0 10px}
.ts-phone-display input{flex:1;min-width:0;border:0;background:transparent;font-size:26px;letter-spacing:.04em;text-align:center;color:#17233b;padding:6px;font-family:'Geist Mono',ui-monospace,monospace}
.ts-phone-display input:focus{outline:none}
.ts-phone-icon{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:12px;background:transparent;color:#7c889d;cursor:pointer}
.ts-phone-icon:hover{background:#f3f5f9;color:#17233b}
.ts-dialpad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;justify-items:center;width:100%}
.ts-dialpad button{display:flex;flex-direction:column;align-items:center;justify-content:center;width:72px;height:60px;border:1px solid #e3e8f1;border-radius:18px;background:#fbfcfe;color:#17233b;cursor:pointer;transition:background .12s,border-color .12s}
.ts-dialpad button:hover{background:#f0f4ff;border-color:#c9d6f5}
.ts-dialpad button:active{transform:scale(.97)}
.ts-dialpad b{font-size:21px;font-weight:500;line-height:1}
.ts-dialpad small{font-size:9px;letter-spacing:.12em;color:#9aa5b8;min-height:11px;margin-top:3px}
.ts-phone-dial,.ts-phone-round{display:grid;place-items:center;border:0;border-radius:50%;cursor:pointer;color:#fff}
.ts-phone-dial{width:64px;height:64px;margin:4px auto 0;background:#1f9d5a;box-shadow:0 8px 20px #1f9d5a40}
.ts-phone-dial:hover{background:#198a4e}
.ts-phone-call{display:flex;flex-direction:column;align-items:center;gap:18px}
.ts-phone-peer{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;padding-top:6px;min-width:0;max-width:100%}
.ts-phone-avatar{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#f0f4ff;color:var(--ac);margin-bottom:6px}
.ts-phone-peer strong{font-size:20px;font-weight:600;letter-spacing:-.02em;overflow-wrap:anywhere}
.ts-phone-peer small{font-size:12px;color:#7c889d}
.ts-phone-callstate{font-size:12px;color:#66738a;margin-top:4px}
.ts-phone-timer{font-size:13px;color:#17233b}
.ts-phone-incoming{display:flex;gap:48px;padding-bottom:20px}
.ts-phone-round{width:64px;height:64px;position:relative}
.ts-phone-round span{position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);font-size:11px;color:#66738a;white-space:nowrap}
.ts-phone-round.answer{background:#1f9d5a;animation:ts-ring 1.2s ease-in-out infinite}
.ts-phone-round.decline,.ts-phone-round.hangup{background:#d23c47}
.ts-phone-round.hangup{margin-bottom:20px}
@keyframes ts-ring{0%,100%{box-shadow:0 0 0 0 #1f9d5a55}50%{box-shadow:0 0 0 12px #1f9d5a00}}
@media (prefers-reduced-motion:reduce){.ts-phone-round.answer{animation:none}}
.ts-phone-controls{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:100%}
.ts-phone-controls button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;border:1px solid #e3e8f1;border-radius:14px;background:#fff;color:#33415a;font-size:11px;cursor:pointer;min-width:0}
.ts-phone-controls button:hover{border-color:#c9d6f5;color:var(--ac)}
.ts-phone-controls button[aria-pressed=true]{background:#eaf0fe;border-color:#c9d6f5;color:var(--ac);font-weight:600}
.ts-phone-transfer{display:flex;gap:8px;width:100%}
.ts-phone-transfer input{flex:1;min-width:0;border:1px solid #dbe0e9;border-radius:10px;padding:10px 12px;font-size:14px}
.ts-phone-stop{align-self:center;border:0;background:none;color:#7c889d;font-size:12px;text-decoration:underline;cursor:pointer;padding:4px}
.ts-phone-recent ul,.ts-phone-tips ul{list-style:none;display:flex;flex-direction:column;gap:6px;padding:0;margin:0}
.ts-phone-recent li.empty{font-size:12px;color:#7c889d;line-height:1.6}
.ts-phone-recent button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;border:1px solid #edf0f5;border-radius:12px;background:#fff;padding:10px 12px;text-align:left;cursor:pointer}
.ts-phone-recent button:hover{border-color:#c9d6f5}
.ts-phone-recent strong{font-size:13px;font-weight:550;color:#17233b}
.ts-phone-recent small{font-size:11px;color:#7c889d}
.ts-phone-recent button.missed strong{color:#ae3340}
.ts-phone-tips h2{margin-bottom:12px}
.ts-phone-tips li{font-size:12px;color:#5d6a80;line-height:1.7;padding-left:16px;position:relative}
.ts-phone-tips li::before{content:"";position:absolute;left:2px;top:.7em;width:6px;height:6px;border-radius:50%;background:#c9d6f5}
.ts-phone-tips .btn{margin-top:14px}
.ts.bare-window{min-height:100dvh;background:#f4f6fa}
.ts-phone-window{max-width:440px;margin:0 auto;padding:16px}
.ts-phone-window .ts-page{gap:12px}
@media (max-width:900px){.ts-phone{grid-template-columns:minmax(0,1fr)}.ts-phone-card{max-width:440px;width:100%;margin:0 auto}}
@media (max-width:380px){.ts-dialpad button{width:62px;height:54px}.ts-phone-controls{grid-template-columns:repeat(2,1fr)}}
/* Support requests (customer panel and administration) */
.ts-thread{display:flex;flex-direction:column;gap:14px}
.ts-message{max-width:88%;padding:14px 16px;border:1px solid #e0e5ef;border-radius:14px;background:#fff}
.ts-message.mine{align-self:flex-end;background:#eef3ff;border-color:#d6e1fb}
.ts-message.internal{background:#fff8e6;border-color:#f3dfa6}
.ts-message header{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px;font-size:13px}
.ts-message header time{margin-left:auto;color:#6b7a93;font-size:12px}
.ts-message p{margin:0;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
.ts-thread-event{align-self:center;margin:0;font-size:12px;color:#6b7a93}
.ts-reply{margin-top:6px;padding-top:16px;border-top:1px solid #e9edf4}
.ts-facts{display:grid;gap:10px;margin:0 0 18px}
.ts-facts div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #eef1f6;padding-bottom:8px}
.ts-facts dt{color:#6b7a93;font-size:13px}.ts-facts dd{margin:0;font-weight:600;text-align:right;overflow-wrap:anywhere}
.ts-request-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ts-request-list a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid #e9edf4;border-radius:12px;color:inherit;text-decoration:none}
.ts-request-list a:hover{border-color:#c9d6f3;background:#f8faff}
.ts-request-list a.unread{border-color:#9db7f2;background:#f3f7ff}
.ts-request-list strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ts-request-list small{color:#6b7a93}
.admin-columns{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:20px;align-items:start}
.admin-actions-col{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.admin-actions-col .admin-form,.admin-actions-col .btn{width:100%;margin:0}
.admin-actions-col .btn{justify-content:center}
@media(max-width:960px){.admin-columns{grid-template-columns:minmax(0,1fr)}.ts-message{max-width:100%}}
/* Trunk minutes and credit */
.ts-balance-figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:4px 0 14px}
.ts-balance-figures div{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid #e9edf4;border-radius:12px;background:#fbfcfe}
.ts-balance-figures small{color:#6b7a93;font-size:12px}.ts-balance-figures strong{font-size:24px;line-height:1.1}.ts-balance-figures span{color:#6b7a93;font-size:12px}
.ts-balance .ts-progress{width:100%;margin:0 0 14px}
.ts-balance-packages{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:6px}
.ts-balance-packages li{display:flex;justify-content:space-between;gap:12px;padding:8px 12px;border-radius:10px;background:#f6f8fb;font-size:14px}
.ts-balance-packages li.voice{background:#eef3ff}
/* Call alerts: one block per event, its e-mail and SMS switches underneath. */
.ts-alert-row{display:flex;flex-wrap:wrap;gap:6px 22px;align-items:center;padding:10px 0;border-top:1px solid #eef1f6}
.ts-alert-row:first-of-type{border-top:0}
.ts-alert-row>strong{flex:1 0 100%;font-size:13px;font-weight:600;min-width:0}
.ts-alert-row>strong small{display:block;font-weight:400;font-size:12px;color:#6b7891;margin-top:2px}
.ts-alert-row .ts-check{margin:0;white-space:nowrap}
/* Small icon headings inside explanatory cards (auto dialer intro). */
.ts-mini-head{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;margin:18px 0 6px;color:#1d2a44}
.ts-mini-head+p{margin:0;font-size:14px;line-height:1.6;color:#4c5a72}
.ts-mini-head+p+.ts-muted{margin-top:16px}
/* One-time secrets (API keys, webhook signing secrets) and the API reference. */
.ts-secret code{display:inline-block;max-width:100%;word-break:break-all;white-space:normal;margin-top:8px}
.ts-api-docs .ts-config{display:block;margin:12px 0;white-space:pre-wrap;word-break:break-word}
.ts-api-docs td code{white-space:normal;word-break:break-word}
.ts-api-docs>p,.ts-api-docs .ts-section>p{margin:0;font-size:13px;line-height:1.65;color:#4c5a72}
.ts-api-docs>p+p{margin-top:8px}
.ts-api-docs>.ts-section{margin-top:16px}
.ts-api-docs .ts-table{table-layout:fixed}
.ts-api-docs .ts-table th:first-child,.ts-api-docs .ts-table td:first-child{width:34%}
.ts-api-docs .ts-table th:nth-child(2),.ts-api-docs .ts-table td:nth-child(2){width:96px;white-space:nowrap}
.ts-api-docs .ts-table td{vertical-align:top;line-height:1.6;color:#33415a}
.ts-api-docs .ts-table td:first-child{font-size:12px;color:#1d2a44}
.ts-table td>strong+small,.ts-table td>.ts-badge+small{display:block;margin-top:3px;font-size:11px;color:#7c889d;font-weight:400}
@media(max-width:700px){
  .ts-api-docs table,.ts-api-docs tbody,.ts-api-docs tr,.ts-api-docs td{display:block;width:auto}
  .ts-api-docs thead{display:none}
  .ts-api-docs tr{padding:10px 0;border-top:1px solid #eef1f6}
  .ts-api-docs td{padding:2px 0;border:0}
  .ts-api-docs td code{white-space:normal;word-break:break-word}
}
.ts-api-docs p,.ts-api-docs td{overflow-wrap:anywhere}

/* Text to speech (audio page card and the dialog next to audio pickers) */
.ts-tts h2 svg,.ts-tts-dialog h2 svg{vertical-align:-2px;color:var(--ac)}
.ts-tts .ts-tts-form{max-width:920px}
.ts-tts-templates{display:flex;flex-direction:column;gap:8px}
.ts-tts-templates>.ts-label{font-size:12px;font-weight:500;color:#263247}
.ts-tts-dialog .btn{min-height:40px;font-size:13px;padding:0 15px}
.admin-tts-voices .btn{white-space:nowrap}
.admin-tts-voices td small{display:block;overflow-wrap:anywhere}
.admin-tts-voices input:not([type=checkbox]):not([type=radio]){min-width:120px}
.admin-tts-audio{display:block;width:100%;max-width:520px;height:36px;margin-top:10px}
.ts-chips{display:flex;flex-wrap:wrap;gap:8px}
.ts-chip{border:1px solid #dfe5ef;background:#f7f9fc;color:#3d4b66;border-radius:999px;padding:7px 12px;font-size:12px;line-height:1.2;cursor:pointer;font-family:inherit}
.ts-chip:hover{border-color:#a9b9e3;color:var(--ac)}
.ts-chip[aria-pressed=true]{background:#eaf0fe;border-color:var(--ac);color:var(--ac);font-weight:600}
.ts-chip:focus-visible,.ts-voice-play:focus-visible,.ts-tts-trigger:focus-visible{outline:2px solid var(--ac);outline-offset:2px}
.ts-tts-count{align-self:flex-end;text-align:right}
.ts-tts-count.over{color:#ae3340!important}
.ts-voice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}
.ts-voice{position:relative;min-width:0;display:flex}
.ts-voice .ts-choice{flex:1;padding:14px 48px 14px 14px;gap:4px}
.ts-voice .ts-choice input{top:14px;right:14px}
.ts-voice .ts-choice small{overflow-wrap:anywhere}
.ts-voice-play{position:absolute;right:10px;bottom:10px;width:30px;height:30px;border-radius:50%;border:1px solid #d6deec;background:#fff;color:var(--ac);display:grid;place-items:center;cursor:pointer;padding:0}
.ts-voice-play:hover{border-color:var(--ac)}
.ts-voice-play[aria-pressed=true]{background:var(--ac);border-color:var(--ac);color:#fff}
.ts-voice-play[aria-busy=true]{opacity:.65;cursor:progress}
.ts-pills{display:inline-flex;flex-wrap:wrap;gap:3px;padding:3px;border:1px solid #e0e5ef;border-radius:11px;background:#f7f9fc;align-self:flex-start;max-width:100%}
.ts-form .ts-pills label{flex-direction:row;position:relative;gap:0;cursor:pointer}
.ts-pills input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}
.ts-pills span{display:block;padding:7px 15px;border-radius:8px;font-size:12px;font-weight:500;color:#5d6a80}
.ts-pills input:checked+span{background:#fff;color:var(--ac);font-weight:600;box-shadow:0 1px 3px #182d5814}
.ts-pills input:focus-visible+span{outline:2px solid var(--ac);outline-offset:1px}
.ts-tts-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.ts-tts-actions .btn[aria-busy=true]{cursor:progress;opacity:.75}
.ts-tts-status{font-size:12px;line-height:1.6;color:#2b4fbf;margin:0}
.ts-tts-status:empty{display:none}
.ts-tts-status.error{color:#ae3340}
.ts-tts-preview audio{width:100%;max-width:520px;height:36px}
.ts-tts-usage{display:flex;flex-direction:column;gap:6px}
.ts-tts-usage .ts-progress{width:100%;max-width:320px;margin:0}
.ts-tts-text{font-size:12px;line-height:1.65;color:#55627a;margin:0;padding:8px 12px;border-left:3px solid #d8e2fa;background:#f8faff;border-radius:0 10px 10px 0;overflow-wrap:anywhere;white-space:pre-line}
.ts-sound-list>li.is-editing{background:#f5f8ff}
.ts-tts-trigger{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:var(--ac);font-size:12px;font-weight:600;padding:2px 0;cursor:pointer;font-family:inherit;text-decoration:none}
.ts-tts-trigger:hover{text-decoration:underline}
.ts-tts-trigger svg{width:15px;height:15px}
.ts-tts-done{font-size:11px;line-height:1.5;color:#1f7a49!important;font-weight:500}
.ts-tts-dialog{width:min(720px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);border:0;border-radius:18px;padding:0;background:#fff;color:inherit;box-shadow:0 30px 80px -20px #10204a66;overflow:auto;overscroll-behavior:contain}
.ts-tts-dialog::backdrop{background:#0f1a3373}
.ts-tts-dialog form{padding:22px}
.ts-tts-dialog-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.ts-tts-dialog-head h2{font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:1.35}
.ts-tts-dialog-head p{font-size:12px;color:#7c889d;line-height:1.6;margin-top:6px}
.ts-tts-dialog-head .ts-icon-btn{font-size:20px;line-height:1}
@media(max-width:680px){
  .ts-tts-dialog form{padding:16px}
  .ts-voice-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
}
.admin-tts-refresh{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:none}
@media(max-width:680px){.admin-tts-head{flex-direction:column}.admin-tts-refresh{align-items:flex-start}}
.ts-table-card>.ts-table-note{margin:14px 24px 20px}
.ts-call-note{display:block;font-family:inherit;white-space:normal;max-width:32ch}
.ts-note-dialog{width:min(600px,calc(100vw - 24px))}
.ts-note-dialog .ts-actions{margin-top:0}
.ts-note-dialog [hidden],.ts-calls [data-call-note][hidden]{display:none!important}
.ts-calls [data-has-note]{color:var(--ac)}
.ts-note-cell .ts-icon-btn{position:relative}
.ts-note-count{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--ac);color:#fff;font-size:10px;font-weight:600;line-height:16px;text-align:center}
.ts-note-history{border:1px solid #e3e8f0;border-radius:12px;background:#f7f9fc;padding:12px 14px}
.ts-note-history h3{font-size:12px;font-weight:600;color:#263247;margin:0 0 8px}
.ts-note-history ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;max-height:220px;overflow:auto}
.ts-note-history li{display:flex;flex-direction:column;gap:3px;font-size:13px;line-height:1.5;color:#17233b;padding-bottom:10px;border-bottom:1px solid #e3e8f0}
.ts-note-history li:last-child{border-bottom:0;padding-bottom:0}
.ts-note-history small{font-size:11px;color:#7c889d}
.ts-note-history p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.ts-steps-list{margin:6px 0 14px;padding-left:22px;display:grid;gap:10px;font-size:14px;line-height:1.6;color:#33415c}.ts-steps-list b{color:#17243b}
.ts-list{margin:4px 0 14px;padding-left:20px;display:grid;gap:6px;font-size:14px;line-height:1.6;color:#4c5a72;list-style:disc}
.ts-copy-row{display:flex;align-items:center;gap:8px;margin-top:8px;padding:8px 10px;border:1px solid #dce4ff;border-radius:10px;background:#f5f8ff}.ts-copy-row code{font-size:12px;overflow-wrap:anywhere;flex:1}
/* Card payments (/panel/odemeler) */
.ts-notice.ok{background:#effaf3;border-color:#bfe6cc;color:#1d5e36}
a.ts-choice{text-decoration:none;color:inherit}
a.ts-choice[aria-current="true"]{border-color:var(--ac);background:#f5f8ff;box-shadow:0 0 0 3px #1d3fb814}
.ts-sip-name{display:flex;align-items:center;gap:6px}.ts-sip-name input{flex:1;min-width:0}.ts-sip-name>span{flex:none}

/* ---------------------------------------------------------------------------------------------------------------
   Compact layout (2026-11-15): about a fifth less padding, margin and gap on desktop and tablet widths, and the
   administration overview's six counters on one row. Phone widths keep their own, already tighter, values.
   --------------------------------------------------------------------------------------------------------------- */
@media(min-width:681px){
  .client-shell,.ts-shell{padding-top:30px;padding-bottom:52px;gap:34px}
  .ts-page{gap:16px}
  .ts-head{gap:16px}
  .ts-head h1{font-size:32px;margin-top:10px}
  .ts-head p{margin-top:10px;line-height:1.7}
  .ts-card{padding:20px}
  .ts-card-head{margin-bottom:14px}
  .ts-table-card{padding:0}
  .ts-table-card>.ts-card-head{padding:18px 20px 0}
  .ts-form{gap:13px;--form-gap:13px}
  .ts-fieldset{padding:13px 14px 15px;gap:11px}
  .ts-columns,.ts-stack{gap:16px}
  .ts-stats{gap:12px}
  .ts-stat{padding:16px;gap:8px}
  .ts-stat strong{font-size:27px}
  .ts-table th{padding:10px 14px}
  .ts-table td{padding:11px 14px}
  .ts-notice{padding:11px 14px}
  .ts-kv>div{padding:9px 0}
  .ts-checklist li a{padding:10px}
  .ts-empty{padding:26px 18px}
  .ts-filter{padding:13px 16px}
  .ts-advanced{padding:10px 14px}
  .ts-nav a{padding:7px 10px}
  .ts-nav-group>summary{padding:7px 10px}
  .client-heading{margin-bottom:24px}
  .client-heading h1{font-size:34px;margin-top:14px}
  .client-card{padding:22px}
  .admin-shell{gap:30px;padding-top:26px;padding-bottom:52px}
  .admin-sidebar{padding:16px 14px}
  .admin-identity{margin-bottom:20px}
  .admin-sidebar nav{gap:3px}
  .admin-sidebar nav a{padding:9px 10px}
  .admin-heading{margin:4px 0 22px}
  .admin-heading h1{font-size:32px;margin-top:12px}
  .admin-heading p{margin-top:10px;line-height:1.7}
  .admin-card{padding:21px}
  .admin-section{margin-top:19px}
  .admin-detail-grid{gap:20px;margin-top:19px}
  .admin-columns{gap:16px}
  .admin-form{gap:14px;margin-top:17px}
  .admin-table th{padding:11px 16px}
  .admin-stats{gap:12px}
  .admin-stat{padding:16px 18px;gap:9px;border-radius:14px}
  .admin-stat strong{font-size:28px}
  .admin-content>.ts-notice{margin:0 0 16px}
}
@media(min-width:1101px){
  .admin-stats{grid-template-columns:repeat(6,minmax(0,1fr))}
}

/* Two-step sign-in card (Hesabım) */
.mfa-qr{background:#fff;border:1px solid #e0e5ef;border-radius:12px;padding:10px;width:max-content;max-width:100%}
.mfa-qr svg{display:block;width:196px;height:auto;max-width:100%}
.mfa-secret{font-family:"Geist Mono",ui-monospace,monospace;font-size:12px;letter-spacing:.04em;overflow-wrap:anywhere}
.mfa-codes{font-family:"Geist Mono",ui-monospace,monospace;font-size:13px;line-height:1.9;background:#fff;border:1px solid #d9e4fe;border-radius:10px;padding:10px 14px;margin:8px 0;white-space:pre}
.mfa-steps{margin:0;padding-left:18px;font-size:13px;color:#4c5a72}
#iki-adim form{display:flex;flex-direction:column;gap:12px}

/* ---------------------------------------------------------------------------------------------------------------
   Button consistency (2026-11-15): buttons sharing a row keep one height (a link next to inline forms no longer
   stretches to the row), notice buttons use the regular size, and plan buttons match the other panel buttons.
   --------------------------------------------------------------------------------------------------------------- */
.admin-action-row{align-items:center}
.admin-action-row>form{margin:0}
.admin-action-row>.btn,.admin-action-row>form>.btn,.admin-instruction form .btn{min-height:42px;font-size:12px;padding:0 20px}
.ts-actions,.ts-head-actions{align-items:center}
.ts-notice .btn,.client-content .ts-notice .btn{min-height:40px;font-size:13px;padding:0 15px;font-weight:500}
.admin-content .ts-notice .btn{min-height:42px;font-size:12px;padding:0 20px}
.client-plan .btn{min-height:40px;font-size:13px;padding:0 15px}
/* Panel default (lowest specificity, so the smaller toolbar and list buttons keep their own size). */
:where(.client-content) .btn{min-height:40px;font-size:13px;padding:0 15px}

/* Long lists inside cards scroll in place (2026-11-15): recent changes, trunks and numbers, deliveries, today's calls,
   and the extensions table on a customer page. The page itself stays short; a soft fade marks more content. */
.ts-events,.ts-call-list{max-height:360px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cdd5e3 transparent;padding-right:4px}
.admin-scroll{max-height:520px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.admin-scroll thead th{position:sticky;top:0;z-index:1}
.ts-events::-webkit-scrollbar,.ts-call-list::-webkit-scrollbar,.admin-scroll::-webkit-scrollbar{width:6px}
.ts-events::-webkit-scrollbar-thumb,.ts-call-list::-webkit-scrollbar-thumb,.admin-scroll::-webkit-scrollbar-thumb{background:#cdd5e3;border-radius:6px}
.ts-events:focus-visible,.ts-call-list:focus-visible,.admin-scroll:focus-visible{outline:2px solid var(--ac);outline-offset:2px}
/* Form alignment: buttons sit on the input line; helper text under one field no longer lifts it */
.admin-filter .btn{align-self:flex-end}
@media(min-width:681px){.admin-form-row{align-items:flex-start}.admin-form-row>.btn,.admin-form-row>button{align-self:flex-start;margin-top:calc(1.4em + 9px)}}

/* Mobile app pairing (/panel/mobil) */
.ts-qr{display:inline-flex;padding:12px;background:#fff;border:1px solid #e0e5ef;border-radius:18px;margin:4px 0 12px}
.ts-qr svg{display:block;width:220px;height:220px}
.ts-match{font-size:48px;font-weight:500;letter-spacing:.08em;color:#17233b;margin:8px 0 16px}
/* Demo panel (app/demo.php): read-only notice with time left, sign-up and leave. */
.ts-demo-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;border-radius:14px;background:#eef2ff;border:1px solid #c7d2fe;color:#1e2a5a;font-size:12px;margin-bottom:18px}
.ts-demo-banner span{flex:1;min-width:200px;line-height:1.5}
.ts-demo-banner form{margin:0}
.ts-demo-banner .btn{min-height:34px;font-size:12px}
/* Collapsible cards (panelFold in app/panel/helpers.php): rarely used cards stay closed, the summary row tells what is inside. */
.ts-ico{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eef2fd;color:#2947c4}
.ts-danger .ts-ico{background:#fdeeee;color:#b3261e}
.ts-h2i{display:flex;align-items:center;gap:12px}
.ts-h2i>span:last-child{min-width:0}
.ts-fold>summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;column-gap:12px;row-gap:6px;list-style:none;cursor:pointer;border-radius:12px;margin:-6px;padding:6px;-webkit-tap-highlight-color:transparent}
.ts-fold>summary::-webkit-details-marker{display:none}
.ts-fold>summary:focus-visible{outline:2px solid #2947c4;outline-offset:2px}
.ts-fold>summary>h2{margin:0;min-width:0;grid-column:2}
.ts-fold>summary>small{grid-column:2/-1;grid-row:2;font-size:12px;line-height:1.55;color:#7c889d;font-weight:400}
.ts-fold[open]>summary>.ts-fold-state:not(.ok):not(.warn):not(.err){visibility:hidden}
.ts-fold[open]>summary>small{display:none}
.ts-fold-state{grid-column:3;font-style:normal;font-size:11px;font-weight:600;line-height:1;padding:6px 10px;border-radius:999px;background:#f1f4f9;color:#5b6880;white-space:nowrap}
.ts-fold-state.ok{background:#e8f6ee;color:#1b7743}
.ts-fold-state.warn{background:#fff3da;color:#8a5a00}
.ts-fold-state.err{background:#fdeeee;color:#b3261e}
.ts-fold-chevron{grid-column:4;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;transition:background .15s}
.ts-fold-chevron::before{content:"";width:8px;height:8px;margin-top:-4px;border-right:1.8px solid #6f7c94;border-bottom:1.8px solid #6f7c94;transform:rotate(45deg);transition:transform .18s ease,margin .18s ease}
.ts-fold[open]>summary .ts-fold-chevron::before{transform:rotate(-135deg);margin-top:4px}
.ts-fold>summary:hover .ts-fold-chevron{background:#f1f4f9}
.ts-fold-body{margin-top:18px;padding-top:20px;border-top:1px solid #e8ecf3;min-width:0}
/* Content inside a fold keeps the look it has as direct card content: the card's own column layout and gap … */
.ts-form>.ts-fold>.ts-fold-body,.auth-form>.ts-fold>.ts-fold-body{display:flex;flex-direction:column;gap:var(--form-gap,16px)}
.ts-form>.ts-fold>.ts-fold-body>small{font-size:11px;line-height:1.6;color:#8390a3;font-weight:400}
.ts-form>.ts-fold>.ts-fold-body>.btn{align-self:flex-start}
.auth-form>.ts-fold>.ts-fold-body>small{font-size:10px;line-height:1.6;color:#8390a3;font-weight:400}
.ts-fold-body>:first-child{margin-top:0}
.ts-fold-body>:last-child{margin-bottom:0}
.ts-fold-lead{margin:0 0 14px}
/* … the edge-to-edge table cards' inner margins … */
.ts-table-card>.ts-fold>summary{margin:0;padding:18px 20px}
.ts-table-card>.ts-fold>.ts-fold-body{margin-top:0;padding-top:0}
.ts-table-card>.ts-fold>.ts-fold-body>.ts-fold-lead{margin:16px 20px 0}
.ts-table-card>.ts-fold>.ts-fold-body>.ts-empty,.ts-table-card>.ts-fold>.ts-fold-body>.ts-notice{margin:18px 24px 24px}
.ts-table-card>.ts-fold>.ts-fold-body>.ts-table-note{margin:14px 24px 20px}
/* … and the administration's paragraph style (.admin-card>p). */
.admin-card>.ts-fold>.ts-fold-body>p{font-size:13px;color:#798ba6;line-height:1.8;margin-top:14px}
.admin-form .admin-card>.ts-fold>.ts-fold-body>p{font-size:12px;color:#7e8ea6}
.admin-card>.ts-fold>.ts-fold-body>:first-child,.admin-card>.ts-fold>.ts-fold-body>.admin-form:first-child>.admin-intro{margin-top:0}
/* Getting-started card on the overview of a service that has not started (views/dashboard.php). */
.ts-start{border-color:#cfdaf6;background:linear-gradient(180deg,#f8faff,#fff 140px)}
.ts-start-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.ts-start-steps>li{display:flex;gap:14px;padding:16px 0;border-top:1px solid #e8ecf3}
.ts-start-steps>li:first-child{border-top:0;padding-top:4px}
.ts-start-steps>li:last-child{padding-bottom:2px}
.ts-start-steps>li>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;padding-top:4px}
.ts-start-steps strong{font-size:14px;font-weight:600;color:#17233b}
.ts-start-steps small{font-size:12px;line-height:1.65;color:#7c889d;max-width:70ch}
.ts-start-steps .ts-actions{margin-top:9px;align-items:center;gap:16px;flex-wrap:wrap}
.ts-start-steps>li.done .ts-step-mark{background:#eef9f3;border-color:#cfeadd;color:#1f7a49}
.ts-start-steps>li.done strong{color:#5b6880}
.ts-start-steps>li.current .ts-step-mark{background:var(--ac);border-color:var(--ac);color:#fff;box-shadow:0 0 0 4px #e9edfa}
.ts-start-steps>li:not(.done):not(.current) strong{color:#5b6880}
/* A heading's note lines up with the heading text, as in a fold's summary; other content keeps a distance from the heading. */
.ts-card-head .ts-h2i+p{margin-left:46px}
.ts-form>.ts-h2i+p.ts-muted{margin:-7px 0 0 46px}
.ts-card:not(.ts-form)>.ts-h2i{margin-bottom:10px}
/* Forms that wrap whole cards (Bildirimler, Seslendirme): the same distance between cards as outside the form, and one save row. */
.admin-form:has(>.admin-card){gap:0;margin-top:0}
.admin-save-row{display:flex;justify-content:flex-end;position:sticky;bottom:12px;z-index:2;margin-top:24px;padding:12px 16px;border:1px solid #dfe6f2;border-radius:16px;background:#ffffffeb;backdrop-filter:blur(6px);box-shadow:0 8px 24px -16px rgba(16,24,40,.35)}
.admin-save-row .btn{margin:0}
@media(max-width:680px){.ts-ico{width:30px;height:30px;border-radius:9px}.ts-h2i{gap:10px}.ts-card-head .ts-h2i+p{margin-left:40px}.ts-form>.ts-h2i+p.ts-muted{margin-left:40px}.ts-table-card>.ts-fold>summary{padding:18px}.ts-table-card>.ts-fold>.ts-fold-body>.ts-fold-lead{margin:14px 18px 0}.ts-fold>summary{column-gap:10px}.ts-fold>summary>small{grid-column:1/-1}.ts-fold-body{margin-top:14px;padding-top:16px}}
@media(prefers-reduced-motion:reduce){.ts-fold-chevron::before{transition:none}}
/* Payments → Modules (app/panel/views/billing-modules.php) and pages whose module is off (module-locked.php) */
.ts-module-list{list-style:none;margin:16px 0;padding:0;display:flex;flex-direction:column;gap:10px}
.ts-module{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px;border:1px solid #e0e5ef;border-radius:14px;background:#fff}
.ts-module.is-wanted{border-color:#2947c4;box-shadow:0 0 0 3px #e9edfa}
.ts-module-ico{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#eef2fd;color:#2947c4}
.ts-module-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.ts-module-text strong{font-size:15px;font-weight:600}
.ts-module-text small{font-size:13px;color:#667085;line-height:1.5}
.ts-module-price{font-size:13px;font-weight:600;color:#101828}
.ts-module-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right;min-width:0}
.ts-module-side small{font-size:12.5px;line-height:1.4}
.ts-module-buy .ts-qty{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#667085}
.ts-module-buy .ts-qty input{width:64px;min-height:38px;padding:0 8px}
.ts-text-btn{background:none;border:0;padding:0;color:#667085;font-size:12.5px;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.ts-text-btn:hover{color:#101828}
.ts-locked-head{display:flex;gap:16px;align-items:flex-start;margin-bottom:12px}
.ts-locked-ico{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#f2f4f7;color:#475467}
.ts-locked-head h2{font-size:20px;margin:0 0 4px}
@media(max-width:680px){.ts-module{grid-template-columns:auto minmax(0,1fr)}.ts-module-side{grid-column:1/-1;align-items:flex-start;text-align:left}}
