/* Mythos Studio — Admin. Classes are prefixed ad-. */

.ad-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.ad-kpi {
  display: flex; flex-direction: column; gap: 6px; min-height: 104px; padding: 15px 18px;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 33, 53, .55), rgba(6, 16, 27, .65));
}
.ad-kpi.skeleton { border: 0; background: linear-gradient(100deg, rgba(159, 211, 224, .05) 30%, rgba(159, 211, 224, .11) 50%, rgba(159, 211, 224, .05) 70%); background-size: 300% 100%; }
.ad-kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--faint); }
.ad-kpi-num { font: 500 28px/1.1 var(--display); color: var(--pearl); }
.ad-kpi-sub { font-size: 12px; color: var(--muted); }

.ad-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.ad-main, .ad-side { min-width: 0; }
.ad-card { padding: 20px 22px 22px; border-radius: var(--r-xl); min-width: 0; }
.ad-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ad-card-head h2 { font-size: 16px; }
.ad-card-head p { margin-top: 5px; font-size: 12.5px; max-width: 560px; }
.ad-card > .msg { margin-top: 14px; }
.ad-loading { display: flex; align-items: center; gap: 10px; padding: 18px 0; color: var(--muted); }

/* tables */
.ad-table-wrap { overflow-x: auto; margin: 0 -8px; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-table th { padding: 8px; text-align: left; font: 500 9.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); white-space: nowrap; }
.ad-table td { padding: 10px 8px; vertical-align: middle; border-bottom: 1px solid rgba(159, 211, 224, .07); }
.ad-table tbody tr { transition: background var(--t), opacity var(--t); }
.ad-table tbody tr:hover { background: rgba(159, 211, 224, .03); }
.ad-table tr.off td:not(:nth-child(4)) { opacity: .5; }
.ad-table tr.busy { opacity: .6; }
.ad-table .right { text-align: right; }
.ad-table tfoot td { border-bottom: 0; border-top: 1px solid var(--line-2); font-weight: 600; }

.ad-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ad-person b { font-weight: 600; white-space: nowrap; }
.ad-avatar {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%;
  font: 600 11px/1 var(--mono); color: var(--shaft); background: rgba(159, 211, 224, .08); border: 1px solid var(--line-2);
}
.ad-avatar.sm { width: 26px; height: 26px; font-size: 9.5px; }
.ad-avatar.r-admin { color: var(--bronze-hi); background: var(--bronze-dim); border-color: rgba(201, 160, 99, .45); }
.ad-avatar.r-creator { color: var(--verdigris); background: rgba(116, 173, 155, .1); border-color: rgba(116, 173, 155, .35); }
.ad-you { margin-left: 8px; padding: 2px 7px; border-radius: 99px; font: 500 9.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bronze); border: 1px solid rgba(201, 160, 99, .35); vertical-align: 1px; }
.ad-username { font-size: 12px; color: var(--muted); }
.ad-role { width: auto; min-width: 150px; min-height: 32px; padding: 5px 30px 5px 10px; font-size: 12.5px; }
.ad-switch small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ad-switch input:disabled + span { opacity: .45; cursor: not-allowed; }

.ad-roles { display: grid; gap: 7px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; }
.ad-roles > div { display: flex; align-items: center; gap: 12px; }
.ad-role-badge { min-width: 108px; display: inline-flex; justify-content: center; padding: 3px 8px; border-radius: 99px; font: 500 9.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--shaft); }
.ad-role-badge.r-admin { color: var(--bronze-hi); border-color: rgba(201, 160, 99, .45); }
.ad-role-badge.r-creator { color: var(--verdigris); border-color: rgba(116, 173, 155, .4); }

/* forms */
.ad-pw { display: flex; align-items: center; gap: 6px; }
.ad-pw .input { flex: 1; font-family: var(--mono); font-size: 13px; }
.ad-role-pick { display: grid; gap: 8px; }
.ad-role-opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(2, 5, 9, .4); cursor: pointer; transition: border-color var(--t), background var(--t); }
.ad-role-opt:hover { border-color: var(--line-2); }
.ad-role-opt:has(input:checked) { border-color: rgba(201, 160, 99, .6); background: var(--bronze-dim); }
.ad-role-opt input { margin-top: 3px; accent-color: var(--bronze); }
.ad-role-opt-body { display: flex; flex-direction: column; gap: 2px; }
.ad-role-opt-body small { font-size: 12px; color: var(--muted); }

/* spend */
.ad-bar-cell { display: flex; align-items: center; gap: 10px; }
.ad-bar { flex: 1; min-width: 60px; max-width: 220px; height: 6px; border-radius: 6px; overflow: hidden; background: rgba(159, 211, 224, .07); }
.ad-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bronze), var(--bronze-hi)); }

/* storage */
.ad-path { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(2, 5, 9, .6); color: var(--muted); }
.ad-path code { flex: 1; font-size: 12px; color: var(--pearl); }
.ad-confidential { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--faint); }

/* activity */
.ad-act-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.ad-search { width: 100%; }
.ad-act-list { list-style: none; margin: 0 -8px 0 0; padding: 0 8px 0 0; max-height: 660px; overflow-y: auto; }
.ad-day { padding: 16px 0 6px; color: var(--bronze); font-size: 9.5px; }
.ad-day:first-child { padding-top: 6px; }
.ad-act { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(159, 211, 224, .06); font-size: 12.5px; }
.ad-act-text { min-width: 0; line-height: 1.45; color: var(--muted); }
.ad-act-text b { color: var(--ink); font-weight: 600; }
.ad-act-detail { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--faint); }
.ad-act-time { padding-top: 3px; white-space: nowrap; font: 11px/1.2 var(--mono); color: var(--faint); }
.ad-act.g-takes .ad-avatar { box-shadow: 0 0 0 2px rgba(201, 160, 99, .3); }
.ad-act.g-elements .ad-avatar { box-shadow: 0 0 0 2px rgba(116, 173, 155, .3); }
.ad-act.g-production .ad-avatar { box-shadow: 0 0 0 2px rgba(159, 211, 224, .25); }
.ad-sys { display: grid; place-items: center; color: var(--bronze); }

@media (max-width: 1180px) {
  .ad-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ad-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ad-card { padding: 16px; }
  .ad-card-head { flex-direction: column; }
  .ad-people th:nth-child(2), .ad-people td:nth-child(2) { display: none; }
}
