/* Workspace administration: teamspaces, sign-in buttons, admin settings tabs (assets/js/ext/admin.js) */

.ts-section .sb-section-head .ts-more { opacity: 0; }
.ts-section .sb-section-head:hover .ts-more, .ts-section .sb-section-head:focus-within .ts-more { opacity: 1; }
.ts-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ts-row:last-of-type { border-bottom: 0; }
.ts-icon { font-size: 22px; width: 32px; text-align: center; }
.ts-row .grow, .wh-card .grow, .ts-dialog .grow { flex: 1; min-width: 0; }
.adm-copy { flex-wrap: nowrap; }
.adm-copy .input { flex: 1; width: auto; min-width: 0; font: 12px var(--mono); }
.ts-dialog .label-text, .form .label-text { font-size: 13px; color: var(--fg-muted); margin-bottom: 4px; }
.ts-dialog .share-list { max-height: 320px; overflow: auto; }

.sso-buttons { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.sso-buttons .btn { text-align: center; text-decoration: none; }
.sso-or { text-align: center; }

.audit-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.audit-list { max-height: 52vh; overflow: auto; border: 1px solid var(--border); border-radius: 6px; }
.audit-table { width: 100%; font-size: 13px; }
.audit-table th { text-align: left; position: sticky; top: 0; background: var(--bg-elev); font-weight: 600; color: var(--fg-muted); }
.audit-table td, .audit-table th { padding: 6px 8px; vertical-align: top; }
.audit-table code { font-size: 12px; }
.audit-table .nowrap { white-space: nowrap; }
.form .audit-keep { display: flex; flex-direction: row; align-items: center; gap: 8px; max-width: 360px; white-space: nowrap; }
.audit-table td:nth-child(5) { min-width: 180px; }
.audit-list .members { margin: 0; }

.adm-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.adm-title-row .input { width: auto; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.adm-stat { border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; }
.adm-stat-n { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.adm-chart-card { border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; }
.adm-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.adm-chart-wrap { position: relative; }
.adm-chart { width: 100%; height: auto; display: block; overflow: visible; }
.adm-bar { fill: var(--accent); }
.adm-grid { stroke: var(--border); stroke-width: 1; }
.adm-axis { fill: var(--fg-muted); font-size: 10px; font-family: var(--font); }
.adm-hit { fill: transparent; cursor: default; }
.adm-hit.on { fill: var(--bg-hover); }
.adm-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--bg-elev); color: var(--fg); box-shadow: var(--shadow);
  border-radius: 4px; padding: 3px 8px; font-size: 12px; white-space: nowrap; pointer-events: none; z-index: 2; }
.adm-table summary { cursor: pointer; margin-top: 4px; }
.adm-table table { font-size: 12px; }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-two td.num { text-align: right; white-space: nowrap; color: var(--fg-muted); }

.wh-card { border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 3px; }
.wh-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wh-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--fg-faint); }
.wh-dot.on { background: var(--c-green); }
.wh-delivery { border-bottom: 1px solid var(--border); padding: 6px 0; }
.wh-delivery summary { cursor: pointer; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.wh-status { min-width: 96px; }
.wh-pre { background: var(--code-bg); border-radius: 4px; padding: 8px; font: 12px/1.45 var(--mono); max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.wh-log { max-height: 70vh; overflow: auto; }

@media (max-width: 760px) {
  .audit-filters { grid-template-columns: 1fr 1fr; }
  .adm-two { grid-template-columns: 1fr; }
}
