/* Tradløs media library — neutral; the site theme supplies fonts and colours. */
.tml-library { --tml-gap: 20px; margin: 1.5em 0; }
.tml-collection { margin: 1.6em 0 .6em; }
.tml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--tml-gap); }
.tml-single .tml-card { max-width: 960px; }
.tml-card { display: flex; flex-direction: column; gap: 8px; }
.tml-frame { position: relative; aspect-ratio: 16 / 9; background: #0b1530; border-radius: 6px; overflow: hidden; }
.tml-frame video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.tml-locked .tml-frame { display: flex; align-items: center; justify-content: center; }
.tml-lock { color: #fff; opacity: .8; font-size: .9em; letter-spacing: .04em; text-transform: uppercase; }
.tml-audio audio { width: 100%; }
.tml-title { font-weight: 600; line-height: 1.3; }
.tml-dur { font-weight: 400; opacity: .65; font-size: .9em; margin-left: .3em; }
.tml-note { font-size: .9em; opacity: .75; }
.tml-signin { margin-top: 1.2em; font-weight: 600; }
@media (max-width: 600px) { .tml-grid { grid-template-columns: 1fr; } }

/* Sign-in, guest pass and the school's management panel */
.tml-gate { display: grid; gap: 18px; max-width: 640px; margin: 1.5em 0; }
.tml-box { border: 1px solid rgba(11, 21, 48, .15); border-radius: 8px; padding: 18px 20px; background: rgba(11, 21, 48, .02); }
.tml-box h3 { margin-top: 0; }
.tml-box summary { cursor: pointer; font-weight: 600; }
.tml-step { display: grid; gap: 12px; margin-top: 12px; }
.tml-step label { display: grid; gap: 4px; font-weight: 600; font-size: .95em; }
.tml-step input[type=text], .tml-step input[type=email], .tml-step select { font: inherit; padding: 9px 10px; border: 1px solid rgba(11, 21, 48, .3); border-radius: 5px; width: 100%; box-sizing: border-box; }
.tml-step .tml-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.tml-btn { justify-self: start; cursor: pointer; }
.tml-btn-small { padding: 4px 10px; font-size: .85em; }
.tml-msg { margin: 10px 0 0; font-weight: 600; }
.tml-msg:empty { display: none; }
.tml-whoami { font-size: .9em; opacity: .85; }
.tml-link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.tml-manage { border: 1px solid rgba(11, 21, 48, .15); border-radius: 8px; padding: 14px 18px; margin: 1em 0 2em; }
.tml-manage summary { cursor: pointer; font-weight: 700; }
.tml-manage h4 { margin: 1.2em 0 .5em; display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.tml-csv { font-size: .8em; font-weight: 400; }
.tml-table-wrap { overflow-x: auto; max-height: 420px; overflow-y: auto; }
.tml-table { width: 100%; border-collapse: collapse; font-size: .88em; }
.tml-table th, .tml-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(11, 21, 48, .1); vertical-align: top; }
.tml-revoked td { opacity: .5; }
.tml-revoked td:last-child { opacity: 1; }
.tml-access { display: flex; gap: 8px; align-items: center; font-size: .85em; }
.tml-hidden-item { opacity: .55; }
.tml-section { margin: 1.8em 0 .2em; }
