/* Watchdog Data Center mobile certification layer — Run 059 */
@media (max-width: 720px) {
  body[data-sidebar-page="data-center"].wdx-modern .dc-shell {
    padding: 0 max(14px, env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)) !important;
  }

  body[data-sidebar-page="data-center"].wdx-modern .dc-filter {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 18px !important;
    margin-bottom: 14px !important;
  }

  body[data-sidebar-page="data-center"] .dc-brand span,
  body[data-sidebar-page="data-center"] .dc-hero span {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  body[data-sidebar-page="data-center"] .dc-brand h2 {
    font-size: 24px !important;
  }

  body[data-sidebar-page="data-center"] .dc-brand p,
  body[data-sidebar-page="data-center"] .dc-hero p {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  body[data-sidebar-page="data-center"] .dc-filter label,
  body[data-sidebar-page="data-center"] .dc-result-controls label {
    margin-top: 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  body[data-sidebar-page="data-center"] .dc-filter input,
  body[data-sidebar-page="data-center"] .dc-filter select,
  body[data-sidebar-page="data-center"] .dc-result-controls select,
  body[data-sidebar-page="data-center"] .dc-view-actions select {
    min-height: 48px !important;
    font-size: 16px !important;
  }

  body[data-sidebar-page="data-center"] #dc-clear,
  body[data-sidebar-page="data-center"] .dc-result-controls button,
  body[data-sidebar-page="data-center"] .dc-view-actions button {
    min-height: 48px !important;
    font-size: 14px !important;
    touch-action: manipulation;
  }

  body[data-sidebar-page="data-center"] .dc-hero {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 22px 20px !important;
    border-radius: 16px !important;
  }

  body[data-sidebar-page="data-center"] .dc-hero h2 {
    font-size: clamp(28px, 9vw, 38px) !important;
    line-height: 1.06 !important;
  }

  body[data-sidebar-page="data-center"] .dc-progress {
    padding: 16px !important;
  }

  body[data-sidebar-page="data-center"] .dc-progress span,
  body[data-sidebar-page="data-center"] .dc-stat span,
  body[data-sidebar-page="data-center"] .dc-selected span,
  body[data-sidebar-page="data-center"] .dc-result-builder > p,
  body[data-sidebar-page="data-center"] .dc-footnote {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  body[data-sidebar-page="data-center"] .dc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-sidebar-page="data-center"] .dc-stat {
    min-height: 96px !important;
  }

  body[data-sidebar-page="data-center"] .dc-selected > div:first-child {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  body[data-sidebar-page="data-center"] #dc-selected-count {
    font-size: 15px !important;
  }

  body[data-sidebar-page="data-center"] .dc-chips button {
    min-height: 44px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    touch-action: manipulation;
  }

  body[data-sidebar-page="data-center"] .dc-table-wrap {
    max-height: none !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-sidebar-page="data-center"] .dc-table-wrap table,
  body[data-sidebar-page="data-center"] .dc-table-wrap tbody,
  body[data-sidebar-page="data-center"] .dc-table-wrap tr,
  body[data-sidebar-page="data-center"] .dc-table-wrap td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body[data-sidebar-page="data-center"] .dc-table-wrap table {
    table-layout: auto !important;
    background: transparent !important;
  }

  body[data-sidebar-page="data-center"] .dc-table-wrap thead {
    display: none !important;
  }

  body[data-sidebar-page="data-center"] .dc-table-wrap tbody {
    display: grid !important;
    gap: 12px !important;
  }

  body[data-sidebar-page="data-center"] .dc-table-wrap tbody tr {
    position: relative !important;
    padding: 16px 16px 14px 60px !important;
    border: 1px solid var(--wdx-line) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: var(--wdx-shadow) !important;
  }

  body[data-sidebar-page="data-center"] .dc-table-wrap tbody tr:hover {
    background: #fff !important;
  }

  body[data-sidebar-page="data-center"] .dc-table-wrap td {
    min-height: 0 !important;
    height: auto !important;
    padding: 8px 0 !important;
    border: 0 !important;
    color: #425873 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body[data-sidebar-page="data-center"] .dc-table-wrap td:not(.dc-check)::before {
    display: block;
    margin-bottom: 3px;
    color: #7b899d;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  body[data-sidebar-page="data-center"] .dc-table-wrap td:nth-child(2)::before { content: "Marker"; }
  body[data-sidebar-page="data-center"] .dc-table-wrap td:nth-child(3)::before { content: "Category"; }
  body[data-sidebar-page="data-center"] .dc-table-wrap td:nth-child(4)::before { content: "Scope"; }
  body[data-sidebar-page="data-center"] .dc-table-wrap td:nth-child(5)::before { content: "Plan"; }
  body[data-sidebar-page="data-center"] .dc-table-wrap td:nth-child(6)::before { content: "Origin"; }
  body[data-sidebar-page="data-center"] .dc-table-wrap td:nth-child(7)::before { content: "Professional fit"; }

  body[data-sidebar-page="data-center"] .dc-table-wrap .dc-check {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
  }

  body[data-sidebar-page="data-center"] .dc-table-wrap input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
  }

  body[data-sidebar-page="data-center"] .dc-table-wrap td strong {
    display: block !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  body[data-sidebar-page="data-center"] .dc-table-wrap td small {
    display: block !important;
    margin-top: 4px !important;
    color: #7c899a !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere !important;
  }

  body[data-sidebar-page="data-center"] .dc-pill,
  body[data-sidebar-page="data-center"] .dc-prof-tags span {
    min-height: 28px !important;
    padding: 5px 8px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  body[data-sidebar-page="data-center"] .dc-prof-tags {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  body[data-sidebar-page="data-center"] .dc-prof-tags span {
    white-space: normal !important;
  }

  body[data-sidebar-page="data-center"] .dc-table-wrap .dc-empty {
    padding: 30px 18px !important;
    font-size: 15px !important;
    text-align: center !important;
  }

  body[data-sidebar-page="data-center"] .dc-results {
    max-width: 100% !important;
    overflow: auto !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  body[data-sidebar-page="data-center"] .dc-results th,
  body[data-sidebar-page="data-center"] .dc-results td {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  body[data-sidebar-page="data-center"] :is(input, select, button, a):focus-visible {
    outline: 3px solid rgba(47, 109, 246, .35) !important;
    outline-offset: 2px !important;
  }

  body.dc-mobile-dialog-open {
    overflow: hidden !important;
  }

  .dc-mobile-dialog-layer {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: flex-end;
    background: rgba(10, 24, 43, .54);
    padding: max(12px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));
  }

  .dc-mobile-dialog {
    width: 100%;
    max-height: min(88dvh, 720px);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -18px 60px rgba(10, 24, 43, .24);
  }

  .dc-mobile-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }

  .dc-mobile-dialog-kicker {
    display: block;
    margin-bottom: 4px;
    color: #6f7f94;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
  }

  .dc-mobile-dialog h2 {
    margin: 0;
    color: #14243a;
    font-size: 22px;
    line-height: 1.2;
  }

  .dc-mobile-dialog-copy {
    margin: 12px 0 18px;
    color: #4d6078;
    font-size: 15px;
    line-height: 1.55;
  }

  .dc-mobile-dialog-close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #eef3f8;
    color: #26384f;
    font-size: 18px;
  }

  .dc-mobile-dialog-form label {
    display: grid;
    gap: 7px;
    color: #53657c;
    font-size: 13px;
    font-weight: 700;
  }

  .dc-mobile-dialog-form input,
  .dc-mobile-dialog-form select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #cbd6e2;
    border-radius: 12px;
    background: #fff;
    color: #14243a;
    font-size: 16px;
  }

  .dc-mobile-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .dc-mobile-dialog-actions button {
    min-height: 48px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    touch-action: manipulation;
  }

  .dc-mobile-dialog-cancel {
    border: 1px solid #cbd6e2;
    background: #fff;
    color: #2e4058;
  }

  .dc-mobile-dialog-primary {
    border: 1px solid #1f5fd3;
    background: #1f5fd3;
    color: #fff;
  }

  .dc-mobile-status {
    position: fixed;
    z-index: 10060;
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    padding: 13px 14px;
    border-radius: 14px;
    background: #14243a;
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 16px 40px rgba(10, 24, 43, .24);
  }

  .dc-mobile-status[data-tone="success"] { background: #176846; }
  .dc-mobile-status[data-tone="error"] { background: #8e2b2b; }
}

@media (max-width: 420px) {
  body[data-sidebar-page="data-center"] .dc-stats {
    grid-template-columns: 1fr !important;
  }

  body[data-sidebar-page="data-center"] .dc-result-controls,
  body[data-sidebar-page="data-center"] .dc-view-actions {
    width: 100% !important;
  }

  body[data-sidebar-page="data-center"] .dc-result-controls > *,
  body[data-sidebar-page="data-center"] .dc-view-actions > * {
    width: 100% !important;
    max-width: none !important;
  }

  .dc-mobile-dialog-actions {
    grid-template-columns: 1fr;
  }
}