/* Team & Settings (modules/team). */
.tm-panel h3 { margin-bottom: 10px; }
.tm-seats.full { color: var(--warn); }
.tm-scroll { overflow-x: auto; margin: 0 -8px; }
.tm-tbl td { vertical-align: middle; }
.tm-tbl tr:hover td { background: var(--panel2); }
.tm-sub { color: var(--mut); font-size: 13px; }
.tm-tbl td .tm-sub { margin-top: 2px; }
.tm-see { max-width: 280px; }
.tm-act { text-align: right; white-space: nowrap; }
.tm-act form { display: inline; margin: 0; }
.tm-act .hh-btn { font-size: 14px; padding: 6px 12px; margin-left: 4px; }
.tm-danger { color: #FF6B62; }
.tm-empty { color: var(--mut); font-size: 14px; margin: 0; }
.tm-empty a { color: var(--blue); }
.tm-warn { color: var(--warn); font-size: 13px; margin: 8px 0 0; }
.tm-newlink { border-color: var(--blue); margin-bottom: 16px; }
.tm-newlink p { color: var(--mut); margin: 0 0 10px; }
.tm-newlink + .tm-panel { margin-top: 0; }
.tm-link { margin-top: 8px; max-width: 520px; }
.tm-link small { display: block; color: var(--mut); font-size: 12.5px; margin-top: 4px; }
.tm-link.bad { color: #FF6B62; font-size: 13px; }
.tm-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tm-roles div { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tm-roles b { display: block; margin-bottom: 3px; }
.tm-roles span { color: var(--mut); font-size: 14px; }

/* radio choices in dialogs */
.tm-opt { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; cursor: pointer; }
.tm-opt + .tm-opt { margin-top: 2px; }
.tm-opt input { margin-top: 3px !important; flex: none; }
.tm-opt span { color: var(--mut); font-size: 14px; }
.tm-opt b { display: block; color: var(--text); font-size: 15px; }
.tm-opt em { color: var(--warn); font-style: normal; font-weight: 600; }
.tm-opt:has(input:checked) { border-color: var(--blue); }
.tm-opt.off { opacity: .55; cursor: not-allowed; }
.tm-checks { display: grid; gap: 6px; max-height: 260px; overflow: auto; padding: 2px; }
.tm-checks label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--ink, #07090D); border: 1px solid var(--line); cursor: pointer; }
.tm-checks input { width: 18px; height: 18px; accent-color: var(--blue); }
.tm-see-form:has(input[value=all]:checked) .tm-checks { opacity: .4; pointer-events: none; }

/* settings */
.tm-color { display: flex; gap: 10px; }
.tm-color input[type=color] { width: 64px; height: 48px; padding: 4px; flex: none; }
.tm-color input:not([type=color]) { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; }
.tm-levelhead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tm-levelhead h3 { margin: 0; }
.tm-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 10px; }
.tm-use { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tm-use-t { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 14.5px; }
.tm-use-t span { color: var(--mut); }
.tm-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tm-bar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.tm-bar.full i { background: var(--warn); }
.tm-feat { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.tm-feat li { display: flex; align-items: center; gap: 10px; color: var(--mut); font-size: 14.5px; }
.tm-feat li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--panel2); font-weight: 700; flex: none; }
.tm-feat li.on { color: var(--text); }
.tm-feat li.on span { background: #2BD57622; color: var(--ok); }
.tm-feat em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--mut); }

@media (max-width: 720px) {
    .tm-scroll { margin: 0; }
    .tm-tbl, .tm-tbl tbody, .tm-tbl tr, .tm-tbl td { display: block; }
    .tm-tbl thead { display: none; }
    .tm-tbl tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .tm-tbl td { border: 0; padding: 3px 0; max-width: none; }
    .tm-tbl tr:hover td { background: none; }
    .tm-act { text-align: left; white-space: normal; padding-top: 8px !important; }
    .tm-act .hh-btn { margin: 2px 4px 2px 0; }
    .tm-act:empty { display: none; }
}
