/* components/monitoring/monitoring.css */
.mw-root {
  --mw-border:var(--border-color,#dce3e8);
  --mw-panel:var(--surface,#fff);
  --mw-text:var(--text-primary,#1c3040);
  --mw-muted:var(--text-secondary,#617282);
  --mw-green:#16745e;
  color: var(--mw-text);
  padding: 28px;
  max-width: 1680px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
}
.mw-root * {
  box-sizing: border-box;
}
.mw-root button,
.mw-root input,
.mw-root select {
  font: inherit;
}
.mw-root button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  border: 1px solid var(--mw-border);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--mw-panel);
  color: inherit;
  min-height: 38px;
}
.mw-root button:hover:not(:disabled) {
  background: #eaf5f0;
  color: #125744;
}
.mw-root button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.mw-root button:focus-visible,
.mw-root input:focus-visible,
.mw-root select:focus-visible,
.mw-root summary:focus-visible {
  outline: 3px solid #368fdd;
  outline-offset: 2px;
}
.mw-root input,
.mw-root select {
  background: var(--mw-panel);
  border: 1px solid var(--mw-border);
  color: inherit;
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
}
.mw-root label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
.mw-root h1,
.mw-root h2,
.mw-root h3,
.mw-root p {
  margin: 0;
}
.mw-root h1 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -.5px;
  margin: 7px 0;
}
.mw-root h2 {
  font-size: 17px;
}
.mw-root small {
  display: block;
  font-size: 12px;
  color: var(--mw-muted);
  font-weight: 400;
}
.mw-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 5px 0 24px;
}
.mw-heading p {
  color: var(--mw-muted);
}
.mw-eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--mw-green);
}
.mw-connection {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mw-panel);
  border: 1px solid var(--mw-border);
  border-radius: 12px;
  padding: 10px 12px;
  flex-shrink: 0;
}
.mw-connection strong {
  font-size: 13px;
}
.mw-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #bf6a23;
}
.mw-dot.online {
  background: #16815d;
}
.mw-root .mw-icon {
  padding: 7px;
  border: 0;
  min-width: 34px;
}
.mw-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--mw-border);
  margin-bottom: 18px;
  padding-bottom: 10px;
}
.mw-tabs button {
  border: 0;
  background: transparent;
  padding: 11px 18px;
}
.mw-tabs button[aria-current=page] {
  background: #e5f3ec;
  color: #14614f;
  font-weight: 700;
}
.mw-notice {
  padding: 11px 15px;
  border-radius: 9px;
  border: 1px solid #c9ded7;
  background: #eff7f4;
  color: #235b4b;
  margin-bottom: 18px !important;
  font-size: 13px;
}
.mw-workspace {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
}
.mw-sidebar {
  background: var(--mw-panel);
  border: 1px solid var(--mw-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
}
.mw-root .mw-text-button {
  border: 0;
  background: transparent;
  justify-content: flex-start;
  color: var(--mw-green);
  padding: 3px 0;
  font-size: 12px;
}
.mw-search {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  border: 1px solid var(--mw-border);
  border-radius: 8px;
  padding-left: 10px;
  color: var(--mw-muted);
}
.mw-root .mw-search input {
  border: 0;
  background: transparent;
  flex: 1;
  width: 100%;
  font-weight: 400;
  padding: 10px 6px;
}
.mw-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.mw-filter-row button {
  font-size: 11px;
  min-height: 30px;
  padding: 5px 8px;
}
.mw-filter-row button[aria-pressed=true] {
  background: #e5f3ec;
  color: #14614f;
}
.mw-camera-list {
  max-height: 520px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mw-camera-row {
  display: flex;
  gap: 0;
  border: 1px solid transparent;
  border-radius: 8px;
}
.mw-camera-row.selected {
  background: #ecf6f1;
  border-color: #b4d9c8;
  color: #145b48;
}
.mw-root .mw-camera-select {
  border: 0;
  background: transparent;
  justify-content: flex-start;
  padding: 10px 5px;
  flex: 1;
  min-width: 0;
  text-align: left;
}
.mw-camera-select > svg {
  flex-shrink: 0;
  color: #68877d;
}
.mw-camera-select span {
  min-width: 0;
}
.mw-camera-select strong {
  font-weight: 600;
  font-size: 12px;
  display: block;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.mw-camera-select small {
  font-size: 10px;
  margin-top: 3px;
}
.mw-camera-row > .mw-icon {
  align-self: center;
  padding: 4px;
  min-width: 28px;
}
.mw-sidebar details {
  border-top: 1px solid var(--mw-border);
  padding-top: 12px;
}
.mw-root summary {
  cursor: pointer;
  font-weight: 600;
  padding: 5px 0;
}
.mw-saved-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
}
.mw-saved-view > button:first-child {
  border: 0;
  font-size: 12px;
  justify-content: flex-start;
  text-align: left;
}
.mw-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.mw-toolbar-actions,
.mw-segmented {
  display: flex;
  gap: 5px;
}
.mw-segmented {
  background: var(--mw-panel);
  padding: 4px;
  border: 1px solid var(--mw-border);
  border-radius: 9px;
}
.mw-segmented button {
  border: 0;
  font-size: 12px;
  min-height: 30px;
  padding: 6px 9px;
}
.mw-segmented button[aria-pressed=true] {
  background: #e4efe9;
  color: #165f4a;
  font-weight: 600;
}
.mw-toolbar-actions button {
  font-size: 12px;
}
.mw-grid {
  display: grid;
  gap: 12px;
}
.mw-layout-1,
.mw-grid.has-focus {
  grid-template-columns: minmax(0, 1fr);
}
.mw-layout-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mw-empty {
  min-height: 320px;
  background: var(--mw-panel);
  border: 1px dashed #a9bdb4;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  gap: 13px;
  color: var(--mw-muted);
}
.mw-empty > svg {
  color: #7b9e91;
}
.mw-empty h2 {
  font-size: 17px;
  color: var(--mw-text);
}
.mw-empty p {
  max-width: 360px;
  line-height: 1.6;
  font-size: 13px;
}
.mw-empty.compact {
  min-height: 180px;
  border: 0;
}
.mw-layout-4 .mw-empty {
  min-height: 255px;
}
.mw-root .mw-primary {
  background: var(--mw-green);
  border-color: var(--mw-green);
  color: #fff;
}
.mw-root .mw-primary:hover:not(:disabled) {
  background: #105b49;
  color: #fff;
}
.mw-footnote {
  font-size: 12px;
  line-height: 1.7;
  color: var(--mw-muted);
  margin-top: 14px !important;
}
.mw-session-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--mw-muted);
  padding-top: 12px;
}
.mw-tile {
  min-width: 0;
  background: #101a24;
  color: #eaf2f6;
  border: 1px solid #263846;
  border-radius: 12px;
  overflow: hidden;
}
.mw-tile > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #14222f;
}
.mw-tile strong {
  font-size: 13px;
}
.mw-tile header span {
  display: block;
  color: #9eafb9;
  font-size: 11px;
  margin-top: 4px;
}
.mw-tile-actions {
  display: flex;
  gap: 2px;
}
.mw-tile-actions button {
  background: transparent;
  border: 0;
  color: #eaf2f6;
  padding: 5px;
  min-height: 28px;
}
.mw-video {
  background: #081018;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mw-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mw-video-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  text-align: center;
  color: #adbfcd;
  font-size: 13px;
}
.mw-tile footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  font-size: 10px;
  color: #bed0d8;
  flex-wrap: wrap;
}
.mw-tile footer > div {
  display: flex;
  gap: 7px;
}
.mw-tile footer button {
  background: transparent;
  color: #bed0d8;
  border: 1px solid #324957;
  min-height: 28px;
  padding: 4px 7px;
  font-size: 10px;
}
.mw-tile:fullscreen {
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.mw-tile:fullscreen .mw-video {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}
.mw-tile:fullscreen video {
  max-height: 85vh;
}
.mw-save-view {
  display: flex;
  gap: 8px;
  background: var(--mw-panel);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--mw-border);
  margin-bottom: 15px;
}
.mw-save-view input {
  flex: 1;
}
.mw-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--mw-muted);
  border-top: 1px solid var(--mw-border);
  padding-top: 18px;
  margin-top: 25px;
}
.mw-card {
  background: var(--mw-panel);
  border: 1px solid var(--mw-border);
  border-radius: 12px;
  padding: 22px;
}
.mw-card h2 {
  margin-bottom: 8px;
}
.mw-muted {
  color: var(--mw-muted);
  font-size: 12px;
  line-height: 1.6;
}
.mw-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.mw-history {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mw-history-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 15px;
  margin-top: 20px;
  align-items: end;
}
.mw-recordings > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--mw-border);
}
.mw-recordings > div > div {
  flex: 1;
}
.mw-recordings strong {
  font-size: 14px;
}
.mw-recordings small {
  margin-top: 4px;
}
.mw-manage {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
  gap: 20px;
}
.mw-name-list {
  max-height: 600px;
  overflow: auto;
  margin-top: 15px;
}
.mw-name-list label {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 15px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--mw-border);
}
.mw-name-list small {
  font-size: 11px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.mw-group-editor {
  border-top: 1px solid var(--mw-border);
  padding: 12px 0;
}
.mw-group-editor summary {
  display: flex;
  align-items: center;
  gap: 9px;
}
.mw-group-editor summary span {
  font-size: 11px;
  color: var(--mw-muted);
  margin-left: auto;
}
.mw-group-editor > label {
  margin-top: 12px;
}
.mw-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 16px 0;
  max-height: 240px;
  overflow: auto;
}
.mw-checks label {
  flex-direction: row;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 400;
}
.mw-checks input {
  min-height: 16px;
  width: 16px;
  height: 16px;
  accent-color: var(--mw-green);
}
.mw-root .mw-danger {
  color: #ae3434;
  font-size: 12px;
}
.mw-history > .mw-tile {
  max-width: 1000px;
  width: 100%;
  align-self: center;
}
@media (max-width: 1100px) {
  .mw-root {
    padding: 20px;
  }
  .mw-workspace {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 15px;
  }
  .mw-manage {
    grid-template-columns: 1fr;
  }
  .mw-history-form {
    grid-template-columns: 1fr 1fr;
  }
  .mw-heading h1 {
    font-size: 24px;
  }
  .mw-layout-4 .mw-empty {
    min-height: 220px;
  }
}
@media (max-width: 700px) {
  .mw-root {
    padding: 16px 12px;
  }
  .mw-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 18px;
  }
  .mw-heading h1 {
    font-size: 24px;
  }
  .mw-heading p {
    font-size: 12px;
    line-height: 1.5;
  }
  .mw-connection {
    width: 100%;
    padding: 8px 10px;
  }
  .mw-connection > .mw-icon {
    margin-left: auto;
  }
  .mw-tabs {
    gap: 2px;
    overflow: auto;
  }
  .mw-tabs button {
    padding: 9px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .mw-tabs svg {
    width: 15px;
  }
  .mw-workspace {
    grid-template-columns: 1fr;
  }
  .mw-sidebar {
    padding: 12px;
    gap: 10px;
  }
  .mw-camera-list {
    max-height: 200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .mw-camera-row .mw-camera-select {
    padding: 8px 4px;
  }
  .mw-camera-select strong {
    font-size: 11px;
  }
  .mw-layout-4 {
    grid-template-columns: 1fr;
  }
  .mw-toolbar {
    gap: 8px;
  }
  .mw-toolbar-actions {
    width: 100%;
  }
  .mw-toolbar-actions button {
    flex: 1;
    font-size: 11px;
  }
  .mw-toolbar .mw-segmented {
    width: 100%;
  }
  .mw-segmented button {
    flex: 1;
  }
  .mw-empty,
  .mw-layout-4 .mw-empty {
    min-height: 210px;
  }
  .mw-session-info {
    align-items: flex-start;
    flex-direction: column;
  }
  .mw-card {
    padding: 16px;
  }
  .mw-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .mw-history-form {
    grid-template-columns: 1fr;
  }
  .mw-name-list label {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mw-recordings > div {
    flex-wrap: wrap;
  }
  .mw-recordings > div > button {
    width: 100%;
  }
  .mw-checks {
    grid-template-columns: 1fr;
  }
  .mw-save-view {
    flex-wrap: wrap;
  }
  .mw-save-view input {
    width: 100%;
    flex: auto;
  }
  .mw-bottom {
    align-items: flex-start;
  }
  .mw-tile footer {
    font-size: 10px;
  }
}
.mw-grid.has-focus .mw-tile:not(.mw-focused) {
  display: none;
}
@media (min-width: 701px) {
  .mw-layout-4:not(.has-focus) .mw-video {
    height: clamp(140px, calc((100vh - 650px)/2), 300px);
    aspect-ratio: auto;
  }
  .mw-camera-list {
    max-height: clamp(180px, calc(100vh - 460px), 520px);
  }
}
.mw-history-form > * {
  min-width: 0;
}
.mw-history-form input,
.mw-history-form select {
  width: 100%;
}
@media (max-width: 700px) {
  .mw-history-form {
    grid-template-columns: minmax(0, 1fr);
  }
}
.mw-root .mw-mobile-picker-toggle {
  display: none;
}
@media (max-width: 700px) {
  .mw-root {
    padding: 14px 10px calc(20px + env(safe-area-inset-bottom));
    overflow-wrap: anywhere;
  }
  .mw-root button,
  .mw-root .mw-icon,
  .mw-root summary {
    min-height: 44px;
  }
  .mw-root input:not([type=checkbox]),
  .mw-root select {
    font-size: 16px;
    min-height: 44px;
  }
  .mw-heading h1 {
    font-size: 22px;
  }
  .mw-heading {
    gap: 10px;
    padding-bottom: 12px;
  }
  .mw-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  .mw-tabs button {
    flex-direction: column;
    gap: 4px;
    white-space: normal;
    line-height: 1.25;
    padding: 8px 4px;
    min-height: 60px;
  }
  .mw-tabs svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  .mw-root .mw-mobile-picker-toggle {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    font-weight: 600;
    padding: 12px;
  }
  .mw-mobile-picker-toggle > span {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    color: var(--mw-muted);
  }
  .mw-workspace {
    gap: 12px;
  }
  .mw-sidebar:not(.is-open) {
    display: none;
  }
  .mw-camera-list {
    display: flex;
    max-height: 40vh;
    overscroll-behavior: contain;
  }
  .mw-camera-select strong {
    font-size: 14px;
  }
  .mw-camera-select small {
    font-size: 12px;
  }
  .mw-camera-row > .mw-icon {
    min-width: 44px;
  }
  .mw-camera-select {
    min-height: 58px !important;
  }
  .mw-main {
    min-width: 0;
  }
  .mw-tile > header {
    padding: 9px 10px;
    align-items: flex-start;
  }
  .mw-tile header > div:first-child {
    min-width: 0;
  }
  .mw-tile-actions {
    flex-shrink: 0;
  }
  .mw-tile-actions button {
    min-width: 44px;
    min-height: 44px;
  }
  .mw-tile strong {
    line-height: 1.4;
  }
  .mw-video {
    aspect-ratio: 4/3;
  }
  .mw-tile footer {
    font-size: 12px;
    padding: 10px;
  }
  .mw-tile footer > div {
    width: 100%;
  }
  .mw-tile footer button {
    flex: 1;
    font-size: 12px;
    min-height: 44px;
  }
  .mw-layout-4 .mw-empty ~ .mw-empty {
    display: none;
  }
  .mw-grid:has(.mw-tile) .mw-empty {
    min-height: 0;
    padding: 10px;
    gap: 0;
  }
  .mw-grid:has(.mw-tile) .mw-empty > svg,
  .mw-grid:has(.mw-tile) .mw-empty > h2,
  .mw-grid:has(.mw-tile) .mw-empty > p {
    display: none;
  }
  .mw-toolbar-actions button,
  .mw-segmented button {
    min-height: 44px;
    font-size: 12px;
  }
  .mw-session-info {
    line-height: 1.5;
  }
  .mw-root .mw-text-button {
    min-height: 44px;
    font-size: 13px;
  }
  .mw-manage {
    grid-template-columns: minmax(0, 1fr);
  }
  .mw-card {
    min-width: 0;
  }
  .mw-card button {
    max-width: 100%;
    white-space: normal;
  }
  .mw-name-list input,
  .mw-group-editor input:not([type=checkbox]),
  .mw-group-editor select {
    width: 100%;
  }
  .mw-name-list {
    max-height: none;
  }
  .mw-checks {
    max-height: 45vh;
    overscroll-behavior: contain;
  }
  .mw-checks label {
    min-height: 44px;
    line-height: 1.4;
  }
  .mw-checks input {
    min-width: 22px;
    min-height: 22px;
  }
  .mw-recordings > div > svg {
    display: none;
  }
  .mw-recordings strong {
    font-size: 16px;
  }
  .mw-card-heading > .mw-primary {
    width: 100%;
  }
  .mw-save-view button {
    flex: 1;
  }
}
@media (min-width: 560px) and (max-width: 900px) and (orientation: landscape) {
  .mw-layout-4:not(.has-focus) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mw-layout-4 .mw-video {
    aspect-ratio: 16/10;
    height: auto;
  }
}
.mw-camera-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.mw-camera-name strong {
  overflow-wrap: anywhere;
}
.mw-camera-name button {
  flex-shrink: 0;
  min-width: 36px;
  min-height: 36px;
}
.mw-name-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.mw-name-editor input {
  min-width: 80px;
  flex: 1;
  width: 100%;
  color: var(--mw-text);
  background: var(--mw-card,#fff);
}
.mw-name-editor p {
  width: 100%;
  margin: 0;
  color: #dc2626;
  font-size: 13px;
}
.mw-name-editor button {
  min-height: 40px;
  flex-shrink: 0;
}
.mw-camera-row:has(.mw-name-editor) {
  flex-wrap: wrap;
}
.mw-camera-row > .mw-name-editor {
  order: 3;
  padding: 8px;
}
.mw-tile header > div:first-child {
  flex: 1;
  min-width: 0;
}
.mw-tile .mw-name-editor input {
  color: #172b3a;
  background: #fff;
}
@media (max-width: 640px) {
  .mw-camera-name button,
  .mw-name-editor button {
    min-width: 44px;
    min-height: 44px;
  }
}
.mw-root .mw-name-editor button {
  color: #183a30;
  background: #eaf5f0;
  border: 1px solid #b4d9c8;
}
.mw-root .mw-name-editor button:disabled {
  opacity: .65;
}
@media (max-width: 640px) {
  .mw-tile > header:has(.mw-name-editor) {
    flex-wrap: wrap;
  }
  .mw-tile > header:has(.mw-name-editor) > div:first-child {
    flex-basis: 100%;
  }
  .mw-tile > header:has(.mw-name-editor) .mw-tile-actions {
    margin-left: auto;
  }
  .mw-name-editor input {
    flex-basis: 100%;
  }
  .mw-name-editor button[type=submit] {
    flex: 1;
  }
}
.mw-spinner {
  animation: mw-spin 1s linear infinite;
  flex-shrink: 0;
}
@keyframes mw-spin {
  to {
    transform: rotate(360deg);
  }
}
.mw-video {
  position: relative;
}
.mw-buffer-notice {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(8, 22, 32, .92);
  color: #eef6fa;
  font-size: 13px;
  line-height: 1.4;
  pointer-events: none;
}
.mw-buffer-notice span {
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: reduce) {
  .mw-spinner {
    animation: none;
  }
}
.mw-manage-preview:empty {
  display: none;
}
.mw-manage-preview {
  max-width: 800px;
  margin: 0 auto 18px;
}
.mw-manage-preview .mw-video {
  aspect-ratio: 16/9;
  max-height: 380px;
}
.mw-manage-preview .mw-footnote {
  margin-top: 8px;
}
.mw-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--mw-border);
}
.mw-name-row small {
  margin: 4px 0;
}
.mw-name-row button {
  font-size: 12px;
  min-height: 40px;
}
.mw-name-row input {
  width: 100%;
}
@media (max-width: 700px) {
  .mw-name-row {
    grid-template-columns: 1fr;
  }
  .mw-name-row > span {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  .mw-name-row small {
    flex-basis: 100%;
    order: 3;
  }
  .mw-name-row button {
    margin-left: auto;
    min-height: 44px;
  }
}
