@layer legacy, shell;
@import url('./admin-shell.css?v=1ad5cc83b13cbcb2') layer(shell);
:root {
 color-scheme: light;
 --bg: #f2f5fa; --surface: #ffffff; --surface-subtle: #edf2f8;
 --line: #dce4ef; --line-strong: #c7d3e2; --text: #25364d; --muted: #64768f;
 --primary: #167d65; --primary-dark: #10624f; --primary-soft: #e0f5ed;
 --success: #17744c; --success-soft: #e8f7ee;
 --warning: #966014; --warning-soft: #fff5dc;
 --danger: #be4246; --danger-soft: #ffeded;
 --shadow: 0 5px 22px rgba(26, 61, 41, .04);
}
@keyframes mediacore-filter-autofill { from { opacity: 1; } to { opacity: 1; } }
input[data-list-filter]:-webkit-autofill { animation-name: mediacore-filter-autofill; animation-duration: .001s; }
@layer legacy {

* {
box-sizing: border-box;
}

body {
margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 14px/1.5 "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  text-rendering: optimizeLegibility;
}

a {
color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
font: inherit;
}

button,
.button-like {
min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

button:hover,
.button-like:hover {
border-color: var(--primary);
  color: var(--primary-dark);
}

button.primary {
background: var(--primary);
  border-color: var(--primary);
  color: var(--text);
}

button.primary:hover {
background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text);
}

button.danger {
color: var(--text);
  background: var(--danger);
  border-color: var(--danger);
}

button.danger:hover {
color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.eyebrow {
color: var(--muted);
  font-size: 12px;
}

.subtitle {
margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.room-settings-layout {
display: grid;
  gap: 16px;
}

.room-settings-summary {
padding-bottom: 0;
}

.room-settings-metrics {
display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.room-settings-metrics > div {
min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.room-settings-metrics > div:last-child {
border-right: 0;
}

.room-settings-metrics span,
.room-settings-metrics small {
display: block;
  color: var(--muted);
}

.room-settings-metrics strong {
display: block;
  margin: 5px 0;
  color: var(--text);
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-settings-metrics small {
min-height: 36px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.room-settings-grid {
display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.room-settings-grid > :last-child {
grid-column: span 2;
}

.room-settings-section {
min-width: 0;
}

.settings-fields {
display: grid;
  gap: 14px;
}

.settings-fields label:not(.check-row) {
display: grid;
  gap: 7px;
  color: var(--muted);
}

.compact-fields {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-fields .check-row {
grid-column: span 2;
}

@media (max-width: 980px) {
.room-settings-metrics,
.room-settings-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.room-settings-metrics > div:nth-child(2) {
border-right: 0;
}

.room-settings-metrics > div:nth-child(-n+2) {
border-bottom: 1px solid var(--line);
}
}

@media (max-width: 640px) {
.room-settings-metrics,
.room-settings-grid,
.compact-fields {
grid-template-columns: 1fr;
}

.room-settings-grid > :last-child,
.compact-fields .check-row {
grid-column: auto;
}

.room-settings-metrics > div {
border-right: 0;
    border-bottom: 1px solid var(--line);
}

.room-settings-metrics > div:last-child {
border-bottom: 0;
}
}

.layout {
width: min(1680px, 100%);
  min-width: 0;
  display: grid;
  gap: 18px;
  margin: 0 auto;
  padding: 20px 24px 32px;
}

.stats {
display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
}

.stat,
.panel,
.login-panel {
background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

input,
select,
textarea {
background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
outline-color: rgba(88, 192, 77, 0.45);
  border-color: var(--primary);
}

.stat {
padding: 14px;
}

.stat span,
.stat small {
color: var(--muted);
  font-size: 12px;
}

.stat strong {
display: block;
  margin: 8px 0 6px;
  font-size: 24px;
  line-height: 1;
}

.content-grid {
display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.dashboard-stats {
grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.dashboard-stats .stat {
min-width: 0;
  min-height: 92px;
  padding: 13px 14px;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.dashboard-stats a.stat {
transition: background 140ms ease, color 140ms ease;
}

.dashboard-stats a.stat:hover {
background: var(--surface-subtle);
  color: var(--text);
}

.dashboard-stats .stat strong {
margin: 8px 0 4px;
  font-size: 22px;
}

.dashboard-stats .stat-health {
background: var(--surface);
}

.dashboard-stats .stat small {
display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-grid {
display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.dashboard-panel-head {
align-items: center;
  margin-bottom: 12px;
}

.dashboard-panel-head .panel-desc {
max-width: 520px;
}

.dashboard-workbench {
grid-column: span 8; padding: 15px;
}

.dashboard-sync {
grid-column: span 4; padding: 15px;
}

.dashboard-links {
display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.dashboard-links a {
min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 140ms ease;
}

.dashboard-links a:hover {
background: var(--surface-subtle);
}

.dashboard-links span {
min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-links strong {
font-size: 14px;
}

.dashboard-links small,
.sync-metrics p,
.diagnostics-body p {
overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-links b {
flex: 0 0 auto;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.sync-metrics {
display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.sync-metrics > div {
display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  min-height: 62px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.sync-metrics span {
color: var(--muted);
  font-size: 13px;
}

.sync-metrics strong {
color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.sync-metrics p {
grid-column: 1 / -1;
  margin: 3px 0 0;
}

.dashboard-diagnostics {
grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.dashboard-diagnostics summary {
min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}

.dashboard-diagnostics[open] summary {
border-bottom: 1px solid var(--line);
  color: var(--text);
}

.diagnostics-body {
display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 15px;
}

.diagnostics-body p {
margin: 4px 0 0;
  white-space: normal;
}

.diagnostics-body pre {
max-height: 240px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: 12px/1.5 Consolas, "Courier New", monospace;
}

.column {
display: grid;
  gap: 18px;
}

.panel {
min-width: 0;
  padding: 16px;
}

.panel h2,
.panel h3 {
margin: 0;
}

.panel h2 {
font-size: 18px;
}

.panel h3 {
font-size: 14px;
}

.panel-head,
.page-hero {
display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.page-hero {
align-items: center;
  margin-bottom: 0;
}

.page-hero h2 {
margin: 0;
  font-size: 18px;
}

.page-hero p,
.panel-desc {
margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.grid {
display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.grid.cols-4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.cols-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.adaptive-form {
grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px 14px;
}

.source-basic-form > :nth-child(1) {
grid-column: span 3;
}

.source-basic-form > :nth-child(2) {
grid-column: span 5;
}

.source-basic-form > :nth-child(3) {
grid-column: span 4;
}

.source-basic-form > :nth-child(4) {
grid-column: span 4;
}

.source-basic-form > :nth-child(5) {
grid-column: span 8;
}

.source-connection-form > :nth-child(1) {
grid-column: span 4;
}

.source-connection-form > :nth-child(2) {
grid-column: span 8;
}

.source-connection-form > :nth-child(3),
.source-connection-form > :nth-child(4),
.source-connection-form > :nth-child(5) {
grid-column: span 4;
}

.source-connection-form > :nth-child(6) {
grid-column: span 12;
}

.source-connection-form > :nth-child(7) {
grid-column: span 8;
}

.source-connection-form > :nth-child(8) {
grid-column: span 4; align-self: end;
}

.source-playback-layout {
display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.source-capabilities-field,
.source-redirect-field {
grid-column: 1 / -1;
}

.source-playback-layout small,
.source-redirect-controls small {
color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.source-redirect-details,
.source-libraries-details {
margin-top: 14px;
  border-top: 1px solid var(--line);
}

.source-redirect-details summary,
.source-libraries-details summary {
min-height: 42px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

.source-redirect-controls {
display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 14px;
}

.source-libraries-details .field-help {
margin: 0 0 10px;
}

.source-libraries-details .source-libraries-field {
display: grid;
  gap: 6px;
  margin: 0 0 14px;
}

/* Account fields use explicit columns; hidden IDs cannot shift placement. */
#userModal .user-basic-form { grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px; }
#userModal .user-basic-form > label { grid-column:auto;min-width:0; }
#userModal .user-basic-form > .user-basic-full { grid-column:1/-1; }
#userModal .user-basic-form > input[type="hidden"] { display:none; }
#userModal .user-basic-form .field-action { align-items:flex-start; }
#userModal .user-basic-form .field-action .actions { flex-wrap:wrap;gap:7px; }
@media(max-width:600px) {
 #userModal .user-basic-form {grid-template-columns:minmax(0,1fr);gap:12px;}
}

.user-provision-form > :nth-child(1) {
grid-column: span 4;
}

.user-provision-form > :nth-child(2) {
grid-column: span 8;
}

.user-provision-form > :nth-child(3) {
grid-column: span 8;
}

.user-provision-form > :nth-child(4) {
grid-column: span 4;
}

.binding-account-form > :nth-child(1) {
grid-column: span 4;
}

.binding-account-form > :nth-child(2) {
grid-column: span 8;
}

.binding-account-form > :nth-child(3) {
grid-column: span 8;
}

.binding-account-form > :nth-child(4) {
grid-column: span 4;
}

.binding-account-form > :nth-child(5),
.binding-account-form > :nth-child(6) {
grid-column: span 6;
}

.binding-account-form > :nth-child(7),
.binding-account-form > :nth-child(8) {
grid-column: span 6;
}

.binding-account-form > :nth-child(9) {
grid-column: span 12;
}

#bindingModal .binding-access-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
#bindingModal .binding-access-form > label { grid-column: auto; }
#bindingModal .binding-access-form > label:nth-child(3) { grid-column: 1/-1; }
#bindingModal .binding-access-form input,
#bindingModal .binding-access-form select { min-height: 42px; }
#bindingModal .field-help { margin: 12px 0 0; }
#bindingModal .modal-foot:has(> span:empty) { justify-content: flex-end; }
#bindingModal .modal-foot > span:empty { display: none; }
@media (max-width: 600px) {
  #bindingModal .binding-access-form { grid-template-columns: 1fr; }
}

.permission-scope > * {
grid-column: span 12;
}

.subgrid,
.checks,
.split,
.toolbar {
margin-top: 14px;
}

.split {
display: grid;
  gap: 12px;
}

.split.cards-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
padding-top: 12px;
  border-top: 1px solid var(--line);
}

.info-card h3 {
margin: 0 0 6px;
}

.info-card p {
margin: 0;
  color: var(--muted);
}

label {
display: grid;
  align-content: start;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

input,
select,
textarea {
width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-weight: 400;
}

input:focus,
select:focus,
textarea:focus {
outline: 2px solid rgba(88, 192, 77, 0.4);
  border-color: var(--primary);
}

textarea {
resize: vertical;
  min-height: 96px;
}

.field-help {
margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.checks {
display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checks label {
min-height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-weight: 500;
}

.checks input {
width: auto;
  min-height: auto;
}

.permission-presets {
display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.permission-presets button {
min-height: 34px;
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}

.permission-presets button.active {
border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--text);
}

.permission-custom,
.permission-scope-toggle,
.permission-scope {
margin-top: 14px;
}

.permission-scope-toggle button {
min-height: 32px;
  padding: 6px 10px;
}

.user-overview table {
min-width: 980px;
  table-layout: auto;
}

.user-overview th,
.user-overview td {
padding: 10px 8px;
}

.user-overview th:first-child,
.user-overview td:first-child {
display: none;
}

.user-overview th:nth-child(10),
.user-overview td.row-actions {
position: static;
  width: 154px;
  min-width: 154px;
  background: transparent;
  box-shadow: none;
}

.user-overview .row-actions {
display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.user-overview .row-actions button {
min-height: 30px;
  width: 100%;
  padding: 5px 7px;
  font-size: 12px;
}

.table-wrap {
width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.source-list {
display: grid;
  gap: 10px;
  margin-top: 14px;
}

.source-card {
display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.source-card-heading,
.source-card-foot,
.source-row-actions {
display: flex;
  align-items: center;
  gap: 10px;
}

.source-card-heading,
.source-card-foot {
justify-content: space-between;
}

.source-card-heading h3 {
margin: 0 0 5px; font-size: 15px;
}

.source-card-heading {
display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 8px;
}

.source-card-heading > div {
min-width: 0;
}

.source-card-tags {
display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px;
}

.source-card-meta {
display: grid;
  grid-template-columns: 130px minmax(220px, 1.6fr) 100px minmax(150px, 1fr);
  gap: 10px 20px;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.source-card-meta div {
min-width: 0;
}

.source-card-meta dt {
margin-bottom: 5px; color: var(--muted); font-size: 12px;
}

.source-card-meta dd {
margin: 0; min-width: 0;
}

.source-row-actions {
flex-wrap: wrap; justify-content: flex-end;
}

.source-sync-time {
color: var(--muted); font-size: 12px;
}

.empty-state {
margin: 0; padding: 24px 0; color: var(--muted); text-align: center;
}

.requests-list {
display: grid; gap: 8px;
}

.request-card {
min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface);
}

.request-card.is-handled {
opacity: .72;
}

.request-card > img,
.request-poster-placeholder {
width: 42px; height: 58px; border-radius: 4px; object-fit: cover; background: var(--surface-subtle); color: var(--muted); font-size: 10px; display: grid; place-items: center;
}

.request-card-main {
min-width: 0;
}

.request-card-main p,
.request-card-main h3,
.request-card-main small {
margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.request-card-main p,
.request-card-main small,
.request-card-status small {
color: var(--muted); font-size: 12px;
}

.request-card-main h3 {
margin: 3px 0 4px; font-size: 14px;
}

.request-card-status {
display: grid; justify-items: end; gap: 4px;
}

.request-card-actions button {
min-height: 30px; padding: 5px 9px; font-size: 12px;
}

@media (max-width: 720px) {
.request-card {
grid-template-columns: 42px minmax(0, 1fr);
}

.request-card-status,
.request-card-actions {
grid-column: 2; justify-items: start;
}
}

@media (max-width: 900px) {
.source-card-meta {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 620px) {
.source-card-heading,
.source-card-foot {
align-items: flex-start; flex-direction: column;
}

.source-card-meta {
grid-template-columns: 1fr;
}

.source-row-actions {
justify-content: flex-start;
}
}

table {
width: 100%;
  min-width: 820px;
  table-layout: fixed;
  border-collapse: collapse;
}

th,
td {
padding: 11px 10px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
  max-width: 340px;
  word-break: break-word;
}

thead th {
position: sticky;
  top: 0;
  z-index: 1;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--surface-subtle);
}

tbody tr:hover {
background: var(--surface);
}

th:first-child,
td:first-child {
width: 14%;
}

pre {
margin: 14px 0 0;
  min-height: 92px;
  padding: 12px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.row-actions,
.actions {
display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

td.row-actions {
min-width: 300px;
  width: 300px;
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--surface);
  box-shadow: -10px 0 16px rgba(0, 0, 0, 0.16);
}

th.sticky-action-head {
position: sticky;
  right: 0;
  z-index: 3;
  min-width: 300px;
  width: 300px;
  background: var(--surface);
  box-shadow: -10px 0 16px rgba(0, 0, 0, 0.16);
}

.row-actions button {
min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
  box-shadow: none;
}

.empty-cell {
color: var(--muted);
  text-align: center;
}

.muted {
color: var(--muted);
}

.badge {
display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.35;
  border: 1px solid var(--line);
  background: var(--surface);
  white-space: nowrap;
}

.badge.neutral {
color: var(--text);
  background: var(--surface-subtle);
}

.badge.blue {
background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: var(--line);
}

.badge.green {
background: var(--success-soft);
  color: var(--success);
  border-color: var(--line);
}

.badge.orange {
background: var(--warning-soft);
  color: var(--warning);
  border-color: var(--line);
}

.badge.red {
background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--line);
}

.mono-cell,
.clip-cell {
display: inline-block;
  max-width: 100%;
  overflow: hidden;
  vertical-align: top;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mono-cell {
padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-subtle);
  color: var(--text);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 12px;
}

.clip-cell {
color: var(--text);
}

.login-page {
min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
width: min(430px, 100%);
  padding: 24px;
}

.login-brand {
padding: 0 0 18px;
}

.login-actions {
margin-top: 16px;
}

.modal {
position: fixed;
  z-index: 30;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
}

.modal.open {
display: grid;
}

.modal-top {
z-index: 40;
}

.modal-backdrop {
position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.46);
}

.modal-dialog {
position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.22);
}

.source-dialog {
width: min(1080px, 100%);
}

.feedback-dialog {
width: min(760px, 100%);
}

.confirm-dialog {
width: min(560px, 100%);
}

.metadata-dialog {
width: min(980px, 100%);
}

.presentation-dialog {
width: min(900px, 100%);
}

.presentation-dialog .info-card,
.presentation-summary {
display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.presentation-dialog .info-card h3 {
padding-bottom: 8px; border-bottom: 1px solid var(--line);
}

.presentation-dialog .check-row {
min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}

.presentation-dialog .check-row input {
width: auto;
  min-height: auto;
  margin: 0;
  accent-color: var(--primary);
}

.presentation-summary strong {
font-size: 16px;
}

.presentation-summary p {
margin: 0; color: var(--muted);
}

.metadata-dialog .info-card {
display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.metadata-dialog .info-card h3 {
padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.metadata-dialog .check-row {
min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}

.metadata-dialog .check-row input {
width: auto;
  min-height: auto;
  margin: 0;
  accent-color: var(--primary);
}

.metadata-note {
margin-top: 16px;
}

.check-row {
min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  color: var(--text);
  font-weight: 500;
}

.check-row input[type="checkbox"] {
width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
}

.dashboard-stats .stat {
position: relative;
  min-height: 82px;
}

.dashboard-stats .stat::before {
content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #5d6b7b;
}

.dashboard-stats .stat:first-child::before {
background: var(--primary);
}

.dashboard-stats a.stat:nth-child(2)::before {
background: #63a4ff;
}

.dashboard-stats a.stat:nth-child(3)::before {
background: #b69bff;
}

.dashboard-stats a.stat:nth-child(4)::before {
background: #e7b85e;
}

.dashboard-stats a.stat:nth-child(5)::before {
background: #d7837b;
}

.dashboard-stats a.stat:nth-child(6)::before {
background: #6ec7ba;
}

.dashboard-links a {
display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  min-height: 72px;
}

.dashboard-links a::before {
color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-links a:nth-child(1)::before {
content: '01';
}

.dashboard-links a:nth-child(2)::before {
content: '02';
}

.dashboard-links a:nth-child(3)::before {
content: '03';
}

.dashboard-links a:nth-child(4)::before {
content: '04';
}

.source-list {
gap: 8px;
  margin-top: 10px;
}

.source-card {
grid-template-columns: minmax(190px, .72fr) minmax(0, 1.45fr) minmax(250px, auto);
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
}

.source-card-heading {
min-width: 0;
  align-items: flex-start;
}

.source-card-heading h3 {
margin-bottom: 3px;
}

.source-card-meta {
grid-template-columns: minmax(210px, 1.8fr) minmax(88px, .7fr) minmax(116px, 1fr);
  gap: 10px 16px;
  padding: 0;
  border: 0;
}

.source-card-meta dt {
margin-bottom: 2px;
}

.source-card-foot {
grid-column: 3;
  grid-row: 1;
  min-width: 0;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
}

.source-row-actions {
display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.source-row-actions button {
min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.source-card-state {
display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.source-card-state .status-dot {
flex: 0 0 auto;
}

.user-list {
display: grid;
  gap: 8px;
  margin-top: 10px;
}

.user-card {
display: grid;
  grid-template-columns: minmax(200px, .8fr) minmax(124px, .45fr) minmax(340px, 1.2fr) minmax(264px, auto);
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.user-card-identity {
min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-card-avatar {
width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.user-card-identity div {
min-width: 0; display: grid; gap: 2px;
}

.user-card-identity strong,
.user-card-identity span {
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.user-card-identity span {
color: var(--muted); font-size: 12px;
}

.user-card-tags {
display: flex; flex-wrap: wrap; gap: 5px;
}

.user-card-metrics {
display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.user-card-metrics div {
min-width: 0;
}

.user-card-metrics dt {
margin-bottom: 3px; color: var(--muted); font-size: 11px;
}

.user-card-metrics dd {
min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600;
}

.user-card-metrics .badge {
max-width: 100%;
}

.user-card-actions {
display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: end;
  gap: 6px;
}

.user-card-actions button {
min-height: 30px; padding: 5px 8px; font-size: 12px; box-shadow: none;
}

.metadata-service-grid {
display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metadata-service-card {
display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-subtle);
}

.service-kicker {
color: var(--muted); font-size: 12px;
}

.metadata-service-card h3 {
margin: 3px 0; font-size: 17px;
}

.metadata-service-card p {
margin: 0; color: var(--muted); font-size: 13px;
}

.metadata-service-card dl {
grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 2px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
}

.metadata-service-card dt {
margin-bottom: 3px; color: var(--muted); font-size: 11px;
}

.metadata-service-card dd {
margin: 0; font-size: 13px;
}

.metadata-guidance {
display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
}

.metadata-guidance strong {
color: var(--text);
}

.metadata-guidance button {
min-height: 30px; padding: 5px 9px; font-size: 12px;
}

.metadata-provider-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metadata-proxy-panel {
display: grid; grid-template-columns: minmax(220px, .85fr) minmax(320px, 1.35fr) auto; align-items: end; gap: 14px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-subtle);
}

.metadata-proxy-panel h3 {
margin: 0; font-size: 14px;
}

.metadata-proxy-panel p {
margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5;
}

.metadata-proxy-input {
display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px;
}

.metadata-proxy-input label {
display: grid; gap: 6px; color: var(--muted); font-size: 12px;
}

.metadata-proxy-input button {
min-height: 34px; white-space: nowrap;
}

.metadata-proxy-options {
grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 11px; border-top: 1px solid var(--line);
}

.metadata-proxy-options .check-row {
min-height: 30px; font-size: 12px;
}

.metadata-test-dialog {
width: min(720px, calc(100vw - 32px));
}

.metadata-test-results {
display: grid; gap: 10px;
}

.metadata-test-intro {
margin: 0 0 2px; color: var(--muted); font-size: 13px;
}

.metadata-test-card {
display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 6px; background: var(--surface-subtle);
}

.metadata-test-card.is-success {
border-left-color: var(--primary);
}

.metadata-test-card.is-failed {
border-left-color: var(--line);
}

.metadata-test-card header {
display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

.metadata-test-card p,
.metadata-test-card small {
margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5;
}

.dashboard-links a {
min-height: 66px; padding: 11px;
}

.dashboard-links small {
white-space: normal; line-height: 1.35;
}

.sync-metrics {
grid-template-columns: 1fr; border-left: 0;
}

.sync-metrics > div {
min-height: 70px; padding: 9px 0; border-top: 1px solid var(--line); border-right: 0; border-bottom: 0;
}

.dashboard-source-health {
grid-column: span 5;
}

.dashboard-attention {
grid-column: span 7;
}

.dashboard-attention-list {
max-height: 308px; overflow: auto; padding-right: 3px;
}

@media (max-width: 1080px) {
.dashboard-workbench,
.dashboard-sync,
.dashboard-source-health,
.dashboard-attention {
grid-column: 1 / -1;
}

.dashboard-links {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metadata-provider-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metadata-proxy-panel {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.metadata-proxy-input {
grid-column: 2;
}

.metadata-proxy-options {
grid-column: 1 / -1;
}
}

@media (max-width: 760px) {
.binding-list {
grid-template-columns: 1fr;
}

.progress-card {
grid-template-columns: 38px minmax(0, 1fr);
}

.progress-poster {
width: 38px; height: 52px;
}

.progress-card-status {
grid-column: 2; display: flex; align-items: center; justify-items: unset; gap: 7px; text-align: left;
}

.progress-card-status > strong {
font-size: 14px;
}

.progress-card-status span {
margin: 0;
}

.progress-card-status .badge {
margin: 0 0 0 auto;
}

.progress-card-error {
grid-column: 2;
}
}

.notifications-panel {
padding: 16px;
}

.notification-layout {
display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(240px, .86fr) minmax(240px, .86fr); gap: 12px; margin-top: 14px;
}

.notification-section {
min-width: 0; display: grid; align-content: start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-subtle);
}

.notification-section-head {
display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; align-items: start;
}

.settings-index {
display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 11px; font-weight: 700;
}

.notification-section h3 {
margin: 0; font-size: 14px;
}

.notification-section p {
margin: 3px 0 0; color: var(--muted); font-size: 12px;
}

.notification-webhook-field {
gap: 5px;
}

.notification-webhook-field input {
min-height: 36px;
}

.notification-options {
display: grid; gap: 5px;
}

.inline-field {
grid-template-columns: minmax(0, 1fr) 74px; align-items: center; gap: 8px;
}

.inline-field input {
min-height: 34px;
}

.muted-toggle {
color: var(--muted); font-size: 12px;
}

@media (max-width: 1320px) {
.source-card {
grid-template-columns: minmax(180px, .7fr) minmax(330px, 1fr);
}

.source-card-foot {
grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 9px; border-top: 1px solid var(--line);
}

.user-card {
grid-template-columns: minmax(190px, 1fr) minmax(130px, auto) minmax(320px, 1.2fr);
}

.user-card-actions {
grid-column: 1 / -1; justify-content: start; padding-top: 9px; border-top: 1px solid var(--line);
}

.notification-layout {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notification-channel {
grid-column: 1 / -1;
}
}

@media (max-width: 820px) {
.source-card,
.user-card,
.metadata-service-grid,
.notification-layout {
grid-template-columns: 1fr;
}

.source-card-meta,
.user-card-metrics {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-card-foot {
grid-column: auto; align-items: flex-start; flex-direction: column;
}

.source-card-tags {
justify-content: flex-start;
}

.source-row-actions,
.user-card-actions {
grid-template-columns: repeat(2, auto); justify-content: start;
}

.user-card-actions {
grid-column: auto;
}

.notification-channel {
grid-column: auto;
}

.metadata-guidance {
grid-template-columns: 1fr; align-items: start;
}

.metadata-provider-grid,
.metadata-proxy-panel {
grid-template-columns: 1fr;
}

.metadata-proxy-input {
grid-column: auto;
}

.metadata-proxy-input {
grid-template-columns: 1fr;
}

.metadata-proxy-options {
grid-column: auto;
}

.sync-metrics {
grid-template-columns: 1fr;
}

.sync-metrics > div {
border-left: 1px solid var(--line);
}
}

.diagnostic-summary {
display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.diagnostic-metric {
min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.diagnostic-metric > span,
.diagnostic-metric > small {
display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diagnostic-metric > strong {
display: block;
  margin: 4px 0;
  overflow: hidden;
  font-size: 19px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diagnostic-panel {
padding-bottom: 10px;
}

.diagnostic-source-list {
display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.diagnostic-source {
min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 6px;
  background: var(--surface-subtle);
}

.diagnostic-source.online {
border-left-color: var(--primary);
}

.diagnostic-source.offline {
border-left-color: var(--line);
}

.diagnostic-source-title {
display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.diagnostic-source-title strong {
flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diagnostic-source p,
.diagnostic-source small {
display: block;
  margin: 6px 0 0 15px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diagnostic-detail-grid {
display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.diagnostic-list {
display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.diagnostic-list > div {
display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.diagnostic-list > div:nth-child(odd) {
padding-right: 14px;
}

.diagnostic-list > div:nth-child(even) {
padding-left: 14px; border-left: 1px solid var(--line);
}

.diagnostic-list dt {
color: var(--muted); font-size: 12px;
}

.diagnostic-list dd {
margin: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap;
}

.diagnostic-debug-log {
display: none;
}

@media (max-width: 1080px) {
.diagnostic-summary {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 720px) {
.diagnostic-detail-grid {
grid-template-columns: 1fr;
}

.diagnostic-source-list {
grid-template-columns: 1fr;
}

.diagnostic-list {
grid-template-columns: 1fr;
}

.diagnostic-list > div:nth-child(odd),
.diagnostic-list > div:nth-child(even) {
padding-left: 0; padding-right: 0; border-left: 0;
}
}

.modal-head,
.modal-foot {
display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface-subtle);
}

.modal-head {
border-bottom: 1px solid var(--line);
}

.modal-head h2 {
margin: 0;
  font-size: 17px;
}

.modal-head p {
margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-foot {
border-top: 1px solid var(--line);
}

.modal-body {
min-height: 0;
  padding: 20px;
  overflow: auto;
}

.modal-body pre {
margin: 0;
}

.modal-tabs {
display: grid;
  gap: 18px;
}

.tab-list {
display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.tab-list button {
min-height: 34px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}

.tab-list button.active {
border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--text);
}

.tab-panel {
min-width: 0;
}

.tab-panel[hidden],
.tab-list button[hidden] {
display: none;
}

.icon-button {
min-width: 36px;
  padding: 7px 10px;
  font-size: 12px;
  box-shadow: none;
}

.user-dialog,
.binding-dialog {
width: min(900px, 100%);
}

.user-detail-dialog {
width: min(1180px, 100%);
}

.room-create-dialog,
.room-detail-dialog {
width: min(1120px, 100%);
}

.room-media-picker {
display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 2px;
}

.room-media-option {
min-height: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px;
  text-align: left;
}

.room-media-option.selected {
border-color: var(--primary);
  background: var(--primary-soft);
}

.room-media-option img,
.room-media-placeholder {
width: 48px;
  height: 66px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  object-fit: cover;
}

.room-media-option strong,
.room-media-option small {
display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-media-option small {
margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.room-invite-picker {
display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.room-invite-picker.compact {
margin-top: 12px;
  max-height: 170px;
  overflow: auto;
}

.room-invite-option {
min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-subtle);
  color: var(--text);
  font-weight: 500;
}

.room-invite-option input {
width: auto;
  min-height: auto;
}

.room-invite-option span,
.room-invite-option small {
min-width: 0;
  display: block;
}

.room-invite-option small {
color: var(--muted);
  font-size: 11px;
}

.room-detail-body {
display: grid;
  gap: 20px;
}

.room-program {
display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.room-program img {
width: 84px;
  height: 116px;
  border-radius: 5px;
  background: var(--surface);
  object-fit: cover;
}

.room-program h3 {
font-size: 18px;
}

.room-program p {
margin: 5px 0 0; color: var(--muted);
}

.room-management-grid {
display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 20px;
}

.room-management-section {
min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-subtle);
}

.room-management-section > h3 {
margin: 0 0 12px;
}

.room-inline-actions {
margin-top: 12px;
}

.copy-field,
.room-chat-compose {
display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.room-member-list {
display: grid;
  gap: 6px;
  margin-top: 12px;
}

.room-member-list div {
display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.room-member-list span {
color: var(--muted); font-size: 12px;
}

.owner-mark {
display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 7px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  vertical-align: middle;
}

.room-global-search {
display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 16px;
}

.room-program-results {
max-height: 480px;
}

.room-program-back {
grid-column: 1 / -1;
  justify-self: start;
  min-height: 32px;
  padding: 5px 10px;
}

.room-media-option em {
display: inline-block;
  margin-top: 5px;
  color: var(--primary);
  font-size: 11px;
  font-style: normal;
}

.room-control-grid {
display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.room-chat-section {
padding: 14px;
}

.room-chat-log {
min-height: 160px;
  max-height: 250px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.room-chat-log p {
display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; margin: 0; padding: 5px 0;
}

.room-chat-log p + p {
border-top: 1px solid var(--line);
}

.room-chat-log span {
word-break: break-word;
}

.room-chat-log .muted {
display: block;
}

.room-chat-compose {
margin-top: 10px;
}

.detail-sections {
display: grid;
  gap: 22px;
}

.detail-section {
min-width: 0;
}

.binding-list {
display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.binding-card {
min-width: 0;
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.binding-card-main {
min-width: 0;
}

.binding-card-title {
display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.binding-card-title strong,
.binding-card-main p,
.binding-card-main small {
min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.binding-card-main p,
.binding-card-main small,
.binding-card-error {
margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.binding-card-main p {
display: flex;
  align-items: center;
  gap: 6px;
}

.binding-card-main p .badge {
flex: 0 0 auto;
}

.binding-card-main p span {
overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.binding-card-actions {
display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.binding-card-actions button {
min-width: 0;
  min-height: 30px;
  padding: 5px 7px;
  font-size: 12px;
}

.binding-card-error {
overflow: hidden;
  color: #f2b8b5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-section {
padding-top: 2px;
}

.progress-list {
display: grid;
  gap: 8px;
  max-height: min(52vh, 540px);
  overflow: auto;
  padding-right: 4px;
}

.progress-card {
min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.progress-poster {
width: 42px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 11px;
}

.progress-poster img {
width: 100%;
  height: 100%;
  object-fit: cover;
}

.progress-poster:empty::after {
content: "媒体";
}

.progress-card-main,
.progress-card-status {
min-width: 0;
}

.progress-card-title {
min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-card-title strong {
min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.progress-card-main p,
.progress-card-main small,
.progress-card-status span,
.progress-card-error {
display: block;
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-card-status {
display: grid;
  justify-items: end;
  gap: 1px;
  text-align: right;
}

.progress-card-status > strong {
font-size: 16px;
  line-height: 1.15;
}

.progress-card-status .badge {
margin-top: 5px;
}

.progress-card-error {
grid-column: 2 / -1;
  width: 100%;
  margin: -3px 0 0;
  color: #f2b8b5;
}

.form-section {
margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.field-action {
display: grid;
  align-content: end;
  gap: 6px;
}

.field-action button {
width: max-content;
}

.field-action p {
margin: 0;
  color: var(--muted);
  font-size: 12px;
}

body.modal-open {
overflow: hidden;
}

@media (max-width: 1200px) {
.stats {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid,
.split.cards-3 {
grid-template-columns: 1fr;
}

.dashboard-stats {
grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid {
grid-template-columns: 1fr;
}

.room-management-grid {
grid-template-columns: 1fr;
}
}

@media (max-width: 820px) {
html,
body {
max-width: 100%;
    overflow-x: hidden;
}

.page-hero,
.panel-head {
flex-direction: column;
    align-items: stretch;
}

.grid,
.grid.cols-4,
.grid.cols-2,
.adaptive-form,
.stats {
grid-template-columns: 1fr;
}

.dashboard-stats {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-links,
.diagnostics-body,
.source-playback-layout,
.source-redirect-controls {
grid-template-columns: 1fr;
}

.dashboard-links a {
min-height: 68px;
}

.layout {
width: 100%;
    padding: 16px;
}

table {
min-width: 760px;
}

.table-wrap {
border-radius: 6px;
}

.modal {
padding: 12px;
}

.modal-head,
.modal-foot {
align-items: stretch;
    flex-direction: column;
}

.modal-foot > .actions,
.modal-foot > button {
width: 100%;
}
}

.workspace-fold {
min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.workspace-fold > summary {
min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.workspace-fold > summary::-webkit-details-marker {
display: none;
}

.workspace-fold > summary::before {
content: '+';
  width: 24px;
  height: 24px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--primary);
  font-size: 16px;
  line-height: 1;
}

.workspace-fold[open] > summary {
border-bottom: 1px solid var(--line);
}

.workspace-fold[open] > summary::before {
content: '-';
}

.workspace-fold > summary span {
overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-fold .fold-content {
padding: 16px;
}

.workspace-fold .fold-content > .checks,
.workspace-fold .fold-content > .row-actions,
.workspace-fold .fold-content > pre {
margin-bottom: 0;
}

.logs-table {
max-height: min(640px, calc(100vh - 210px));
  margin-top: 0;
}

.logs-table table {
min-width: 920px;
}

.dashboard-settings {
grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 150px repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.dashboard-settings-head {
display: grid;
  align-content: center;
  gap: 4px;
  padding: 13px 15px;
  border-right: 1px solid var(--line);
}

.dashboard-settings-head strong {
font-size: 14px;
}

.dashboard-settings-head span {
color: var(--muted);
  font-size: 12px;
}

.dashboard-settings a {
min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 13px 15px;
  border-right: 1px solid var(--line);
  transition: background 140ms ease;
}

.dashboard-settings a:last-child {
border-right: 0;
}

.dashboard-settings a:hover {
background: var(--surface-subtle);
}

.dashboard-settings a strong {
font-size: 13px;
}

.dashboard-settings a span {
overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1200px) {
.dashboard-settings {
grid-template-columns: 150px repeat(2, minmax(0, 1fr));
}

.dashboard-settings-head {
grid-row: span 2;
}

.dashboard-settings a:nth-child(3) {
border-right: 0;
}
}

@media (max-width: 820px) {
.workspace-fold > summary {
align-items: flex-start;
    flex-wrap: wrap;
}

.workspace-fold > summary span {
flex-basis: calc(100% - 36px);
    white-space: normal;
}

.workspace-fold .fold-content {
padding: 14px;
}

.dashboard-settings {
grid-template-columns: 1fr;
}

.dashboard-settings-head,
.dashboard-settings a,
.dashboard-settings a:nth-child(3) {
border-right: 0;
    border-bottom: 1px solid var(--line);
}

.dashboard-settings a:last-child {
border-bottom: 0;
}
}

.dashboard-grid {
grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-items: stretch;
  gap: 16px;
}

.dashboard-workbench,
.dashboard-sync,
.dashboard-source-health,
.dashboard-attention {
min-height: 286px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.dashboard-workbench {
grid-column: span 8;
}

.dashboard-sync {
grid-column: span 4;
}

.dashboard-source-health {
grid-column: span 5;
}

.dashboard-attention {
grid-column: span 7;
}

.dashboard-workbench .dashboard-links,
.dashboard-sync .sync-metrics,
.dashboard-source-health .dashboard-source-list,
.dashboard-attention .dashboard-attention-list {
flex: 1 1 auto;
  min-height: 0;
}

.dashboard-source-health,
.dashboard-attention {
padding: 16px;
}

.dashboard-source-list,
.dashboard-attention-list {
display: grid;
  border-top: 1px solid var(--line);
  align-content: start;
  overflow: auto;
}

.dashboard-source-row,
.dashboard-attention-row {
min-width: 0;
  display: grid;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.dashboard-source-row {
grid-template-columns: 8px minmax(0, 1fr) auto;
}

.dashboard-source-row strong,
.dashboard-attention-row strong,
.room-card strong {
display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-source-row small,
.dashboard-attention-row small,
.room-card small {
display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7b8492;
}

.status-dot.online {
background: var(--primary);
}

.status-dot.offline {
background: #dc675e;
}

.dashboard-attention-row {
grid-template-columns: auto minmax(0, 1fr) auto;
  color: var(--text);
}

.dashboard-attention-row:hover {
background: var(--surface-subtle);
}

.dashboard-attention-row b {
color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 1080px) {
.dashboard-grid {
grid-auto-rows: auto;
}

.dashboard-workbench,
.dashboard-sync,
.dashboard-source-health,
.dashboard-attention {
grid-column: 1 / -1;
    min-height: 0;
}
}

.room-list {
display: grid;
  gap: 8px;
  margin-top: 12px;
}

.room-card {
min-width: 0;
  display: grid;
  grid-template-columns: minmax(175px, .7fr) minmax(240px, 1.2fr) minmax(190px, .75fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.room-card-title,
.room-card-program {
min-width: 0;
}

.room-card-title {
display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.room-card-metrics {
min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.room-card-metrics dt {
margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.room-card-metrics dd {
margin: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-card-actions {
display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
}

.room-card-actions button {
min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.room-detail-tabs {
gap: 14px;
}

.room-tab-panel > .room-program,
.room-tab-panel > .room-management-section {
min-height: 340px;
}

.room-tab-panel > .room-program {
align-content: start;
  padding-bottom: 0;
  border-bottom: 0;
}

.room-tab-panel > .room-management-section {
padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.room-tab-panel .room-chat-section {
min-height: 340px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.room-tab-panel .room-chat-log {
min-height: 230px;
  max-height: min(380px, 46vh);
}

@media (max-width: 1320px) {
.room-card {
grid-template-columns: minmax(180px, 1fr) minmax(230px, 1.25fr) minmax(210px, 1fr);
}

.room-card-actions {
grid-column: 1 / -1;
    justify-content: start;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
}

@media (max-width: 820px) {
.dashboard-source-row,
.dashboard-attention-row {
min-height: 56px;
}

.room-card {
grid-template-columns: 1fr;
}

.room-card-actions {
grid-column: auto;
}

.room-tab-panel > .room-program,
.room-tab-panel > .room-management-section,
.room-tab-panel .room-chat-section {
min-height: 0;
}
}

button,
.button-like,
.tab-list button,
.workspace-fold > summary {
transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 120ms ease;
}

button:not(:disabled):active,
.button-like:active,
.tab-list button:active {
transform: translateY(1px);
}

button:focus-visible,
.button-like:focus-visible,
.tab-list button:focus-visible,
.workspace-fold > summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
outline: 2px solid rgba(118, 212, 107, 0.9);
  outline-offset: 2px;
}

.tab-list button:hover:not(.active) {
border-color: var(--line-strong); background: var(--surface); color: var(--text);
}

.icon-button {
width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 0;
  box-shadow: none;
}

.icon-button:not([data-icon])::before {
content: '×'; font-size: 22px; line-height: 1;
}
.icon-button[data-icon]::before { content:none; }
.icon-button[data-icon] > .icon-label { display:none; }
@keyframes mediacore-config-autofill { from {opacity:1;} to {opacity:1;} }
input[data-admin-autofill-guard]:-webkit-autofill { animation-name:mediacore-config-autofill;animation-duration:.001s; }

.icon-button:hover {
border: 0; background: var(--surface-subtle); color: var(--text);
}

.icon-button,
.workspace-fold > summary::before {
border: 0;
  box-shadow: none;
}

.icon-button {
display: inline-grid;
  place-items: center;
  line-height: 1;
  transition: background 150ms ease, color 150ms ease, transform 120ms ease;
}

.icon-button:focus-visible {
border: 0;
  background: var(--surface-subtle);
  color: var(--text);
}

.tab-list button.active {
border-color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.workspace-fold > summary::before {
width: 20px;
  height: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 20px;
}

.settings-index {
border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

}

.admin-media-inbox { display:flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;color:var(--text); }
.admin-media-inbox .web-icon { width:18px;height:18px; }
.admin-media-inbox strong { min-width:20px;border-radius:12px;background:#d9485c;color:#fff;padding:2px 5px;text-align:center;font-size:11px; }
.media-event-card { display:grid;gap:8px;padding:16px;margin:10px 0;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow-wrap:anywhere; }
.media-event-card header { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px; }
.media-event-card time,.media-event-card small { color:var(--muted);font-size:12px; }
.media-event-card p { margin:0; }
.media-event-card.is-unread { border-left:3px solid var(--accent); }
.media-event-card button { justify-self:start; }
#mediaMonitorList { display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px; }

.notification-center-tabs {display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px;padding:10px;background:var(--panel,#fff);border-radius:14px;border:1px solid #dde5ef;}
.notification-center-tabs a {padding:9px 14px;border-radius:10px;text-decoration:none;color:inherit;font-size:14px;}
.notification-center-tabs a[aria-current="page"] {background:#e3f4ef;color:#086c57;font-weight:600;}
.notification-center-pagination {display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:18px;font-size:13px;}
[data-media-only][hidden] {display:none!important;}

.notification-event-options {display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;}
.notification-event-options fieldset {border:1px solid #dfe7f0;border-radius:12px;padding:12px 14px;min-width:0;}
.notification-event-options legend {font-size:14px;font-weight:600;padding:0 6px;}
.notification-event-options .check-row {margin:7px 0;font-size:13px;}

.network-entrance-row {display:grid;grid-template-columns:minmax(100px,1fr) minmax(200px,3fr) auto auto auto;gap:12px;align-items:center;margin:12px 0;padding:14px;background:#f7f9fc;border-radius:12px;}
.network-entrance-row label {min-width:0;font-size:13px;}
.network-entrance-row input {width:100%;}
.network-entrance-row .check-row input {width:auto;}
@media(max-width:850px){.network-entrance-row {grid-template-columns:1fr auto auto;}.network-entrance-row label:first-child,.network-entrance-row label:nth-child(2){grid-column:1/-1;}}

/* Notification records prioritize the list; operational details expand on demand. */
body[data-page="media-updates"] .main { gap: 12px; }
body[data-page="media-updates"] .notification-center-tabs { margin-bottom: 0; padding: 6px; gap: 4px; }
body[data-page="media-updates"] .notification-center-tabs a { padding: 7px 12px; font-size: 13px; }
.notification-monitor summary,.notification-audit summary { display:flex; align-items:center; flex-wrap:wrap; gap:10px; cursor:pointer; font-size:13px; }
.notification-monitor summary::before,.notification-audit summary::before { content:'›'; font-size:18px; transition:transform .15s; }
.notification-monitor[open] summary::before,.notification-audit[open] summary::before { transform:rotate(90deg); }
.notification-monitor summary span,.notification-audit summary span { color:var(--muted); font-size:12px; }
.notification-monitor #mediaMonitorList { display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;margin-top:10px; }
.notification-monitor .media-event-card { margin:0;padding:10px;gap:4px; }
.notification-audit #mediaEventsList { max-height:420px;overflow:auto;margin-top:8px; }
.notification-records-head { display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px; }
.notification-count { font-size:12px;color:var(--muted); }
.notification-size { display:flex;align-items:center;gap:7px;margin-left:auto;font-size:12px;color:var(--muted); }
.notification-size select { width:auto;min-height:32px;padding:4px 8px; }
.notification-records .media-event-card { padding:11px 13px;margin:7px 0;gap:5px;border-radius:10px; }
.notification-records .media-event-card header strong { font-size:13px; }
.notification-records .media-event-card p { font-size:13px;line-height:1.6; }
.notification-records .media-event-card button { min-height:30px;padding:4px 10px;font-size:12px; }
.notification-records .notification-center-pagination { justify-content:space-between;flex-wrap:wrap;margin-top:12px;gap:10px; }
.notification-page-actions { display:flex;align-items:center;flex-wrap:wrap;gap:8px; }
.notification-page-actions button { min-height:32px;padding:5px 10px;font-size:12px; }
#notificationJumpForm { display:flex;align-items:center;gap:6px;margin:0; }
#notificationJumpForm input { width:62px;min-height:32px;padding:4px 7px; }
@media(max-width:640px){.notification-records-head {gap:8px}.notification-count{order:3;width:100%}.notification-page-actions{width:100%;gap:6px}.notification-page-actions button{padding:5px 8px}#notificationJumpForm{margin-left:auto}.notification-monitor summary span{width:100%;padding-left:18px}}

/* Compact notification columns keep content, timestamp and actions together. */
.notification-filters { display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;padding:10px 0 14px; }
.notification-filters label { display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted);margin:0; }
.notification-filters input { min-height:34px;padding:6px 9px;font-size:13px;width:100%; }
.notification-keyword { flex:1;min-width:180px; }
.notification-filter-actions { display:flex;gap:6px; }
.notification-filter-actions button { min-height:34px;padding:6px 11px;font-size:12px; }
.notification-table-heading,.notification-row { display:grid;grid-template-columns:minmax(120px,.65fr) minmax(200px,2fr) minmax(75px,.4fr) 145px 82px;gap:14px;align-items:start; }
.notification-table-heading { padding:9px 12px;color:var(--muted);font-size:12px;background:var(--surface);border-radius:7px; }
.notification-row { padding:13px 12px;border-bottom:1px solid var(--line);font-size:13px;overflow-wrap:anywhere; }
.notification-row.is-unread { border-left:3px solid var(--accent);padding-left:9px; }
.notification-row-title { font-size:13px;line-height:1.6; }
.notification-row-content { min-width:0; }
.notification-row-content p { margin:0;line-height:1.6; }
.notification-row small,.notification-row time,.notification-row-account { color:var(--muted);font-size:12px;line-height:1.6; }
.notification-row button { min-height:29px;padding:4px 9px;font-size:12px;white-space:nowrap; }
.notification-event-fold > summary { cursor:pointer;margin-bottom:0; }
.notification-event-fold > summary::after { content:'›';margin-left:auto;font-size:20px;transition:transform .15s; }
.notification-event-fold[open] > summary::after { transform:rotate(90deg); }
.notification-event-fold[open] .notification-event-options { margin-top:14px; }
.notification-event-options { display:flex;flex-direction:column;gap:8px; }
.notification-event-group { border:1px solid var(--line);border-radius:10px;padding:10px 12px; }
.notification-event-group summary { display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px; }
.notification-event-group summary::after { content:'›';margin-left:auto; }
.notification-event-group[open] summary::after { transform:rotate(90deg); }
.notification-event-selected { font-size:12px;color:var(--muted); }
.notification-event-group .check-row { margin:10px 0 0; }
@media(max-width:1100px){
 .notification-table-heading { display:none; }
 .notification-row { grid-template-columns:minmax(100px,.7fr) minmax(180px,2fr) 82px;gap:6px 12px; }
 .notification-row-title { grid-column:1;grid-row:1; }
 .notification-row-content { grid-column:2;grid-row:1/4; }
 .notification-row-state { grid-column:3;grid-row:1/4; }
 .notification-row-account { grid-column:1;grid-row:2; }
 .notification-row time { grid-column:1;grid-row:3; }
}
@media(max-width:640px){
 .notification-filters label:not(.notification-keyword) { flex:1;min-width:140px; }
 .notification-keyword { flex-basis:100%; }
 .notification-filter-actions { width:100%; }
 .notification-row { grid-template-columns:1fr auto;gap:6px 10px;padding:12px 6px; }
 .notification-row-title { grid-column:1;grid-row:1; }
 .notification-row-content { grid-column:1/-1;grid-row:2; }
 .notification-row-account { grid-column:1;grid-row:3; }
 .notification-row time { grid-column:1;grid-row:4; }
 .notification-row-state { grid-column:2;grid-row:3/5;align-self:center; }
}

.notification-row-label { display:flex;align-items:flex-start;gap:9px;min-width:0; }
.notification-row-state { display:flex;flex-direction:column;align-items:flex-start;gap:7px; }
.fault-details-button { display:inline-flex;align-items:center;gap:4px; }
.fault-details-button svg { width:14px;height:14px; }
.fault-detail-dialog { width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 36px);padding:0;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--text);box-shadow:0 24px 80px #10182835;overflow:auto; }
.fault-detail-dialog::backdrop { background:#10182866;backdrop-filter:blur(3px); }
.fault-detail-shell { padding:24px; }
.fault-detail-header { display:flex;justify-content:space-between;align-items:flex-start;gap:16px; }
.fault-detail-header small { color:var(--muted);font-size:12px; }
.fault-detail-header h2 { margin:5px 0 0;font-size:21px; }
.fault-detail-close { min-width:36px;min-height:36px;padding:0;font-size:26px;line-height:1;border-radius:50%;flex-shrink:0; }
.fault-detail-summary { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:18px 0;color:var(--muted);font-size:12px; }
.fault-detail-status { padding:5px 10px;background:#f59e0b15;color:#b45309;border-radius:20px; }
.fault-detail-status.is-recovered { background:#16a34a15;color:#15803d; }
.fault-detail-fields { display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin:0 0 24px; }
.fault-detail-fields div { min-width:0; }
.fault-detail-fields dt { font-size:12px;color:var(--muted);margin-bottom:5px; }
.fault-detail-fields dd { margin:0;font-size:14px;line-height:1.55;overflow-wrap:anywhere; }
.fault-detail-fields code { display:block;font-size:11px;color:var(--muted);margin-top:4px; }
.fault-detail-section { border-top:1px solid var(--line);padding-top:14px;margin-top:16px; }
.fault-detail-section h3 { font-size:13px;margin:0 0 8px; }
.fault-detail-section p,.fault-detail-section pre { margin:0;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere; }
.fault-detail-section pre { background:var(--bg);padding:12px;border-radius:10px;font-family:ui-monospace,SFMono-Regular,monospace; }
.fault-detail-note { margin:18px 0 0;font-size:12px;color:var(--muted);line-height:1.6; }
.fault-detail-links { display:flex;flex-wrap:wrap;gap:14px;margin-top:16px;font-size:13px; }
@media(max-width:540px){.fault-detail-shell{padding:18px}.fault-detail-fields{gap:14px}.fault-detail-header h2{font-size:18px}}
.notification-row-poster { width:36px;height:54px;object-fit:cover;border-radius:6px;flex-shrink:0;background:var(--surface); }
@media(max-width:1100px){ .notification-row-label { grid-column:1;grid-row:1; } }
.notification-poster-slot { position:relative;display:grid;place-items:center;width:36px;height:54px;flex:0 0 36px;border-radius:6px;overflow:hidden;background:var(--surface);color:var(--muted); }
.notification-poster-slot > svg { width:18px;height:18px; }
.notification-poster-slot .notification-row-poster { position:absolute;inset:0; }
@media(max-width:640px){ .notification-row-label { grid-column:1/-1;grid-row:1; } }

/* Keep each account readable as identity, access summary, and actions. */
#usersTable .user-card {
  grid-template-columns: minmax(160px, 210px) minmax(0, 1fr) minmax(166px, 205px);
  align-items: start;
  gap: 16px;
  max-width: 100%;
}
#usersTable .user-card-profile { min-width: 0; display: grid; gap: 9px; }
#usersTable .user-card-tags { align-items: start; }
#usersTable .user-card-metrics {
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
}
#usersTable .user-card-metrics dd {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
#usersTable .user-card-metrics .badge { white-space: normal; overflow-wrap: anywhere; }
#usersTable .user-card-permissions { grid-column: 1 / -1; }
#usersTable .user-card-actions {
  min-width: 0;
  grid-column: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  gap: 6px;
  padding: 0 0 0 12px;
  border-top: 0;
  border-left: 1px solid var(--line);
}
#usersTable .user-card-actions button { width: 100%; white-space: normal; }
@media (max-width: 1120px) {
  #usersTable .user-card { grid-template-columns: minmax(150px, 180px) minmax(0, 1fr); }
  #usersTable .user-card-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 620px) {
  #usersTable .user-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #usersTable .user-card-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #usersTable .user-card-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.progress-poster { position: relative; }
.progress-poster-placeholder { font-size: 22px; opacity: .5; }
.progress-poster img { position: absolute; inset: 0; }
.progress-poster img[hidden] { display: none; }
.progress-poster.has-poster .progress-poster-placeholder { visibility: hidden; }
