/* Page-only layout for /testar-resolucao-tela/. Readings stay in browser-tests.js. */

body.page-testar-resolucao-tela .res-page { --res-blue: #2563eb; --res-ink: #172033; }
@media (min-width: 1100px) {
  body.page-testar-resolucao-tela .res-page { --cv-aside: clamp(230px, 18vw, 280px); }
}
body.page-testar-resolucao-tela .res-page .conv-title {
  font-size: clamp(1.4rem, 1.7vw, 1.85rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}
body.page-testar-resolucao-tela .article .res-page .conv-lede {
  margin: 0 0 18px;
  color: #4f63b8;
  font-size: 1.02rem;
  line-height: 1.4;
}
body.page-testar-resolucao-tela .article .res-page .conv-perks { gap: 14px; }
body.page-testar-resolucao-tela .article .res-page .conv-perks li { gap: 12px; font-size: 0.84rem; }
body.page-testar-resolucao-tela .res-page .conv-perks strong { color: #1d4ed8; font-size: 0.95rem; }
body.page-testar-resolucao-tela .res-page .conv-perk { width: 42px; height: 42px; background-size: 22px; }
body.page-testar-resolucao-tela .res-page .conv-perk.is-read {
  background-color: #ede9fe;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='12' rx='2' fill='%237c3aed'/%3E%3Cpath d='M8 20h8M12 16v4' fill='none' stroke='%237c3aed' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
body.page-testar-resolucao-tela .res-page .conv-perk.is-easy {
  background-color: #dbeafe;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8' fill='%232563eb'/%3E%3Ccircle cx='12' cy='12' r='2.2' fill='%23fff'/%3E%3Cpath fill='%23fff' d='M12 6.4v1.5M12 16.1v1.5M6.4 12h1.5M16.1 12h1.5M8.1 8.1l1.1 1.1M14.8 14.8l1.1 1.1M15.9 8.1l-1.1 1.1M9.2 14.8 8.1 15.9'/%3E%3C/svg%3E");
}
body.page-testar-resolucao-tela .res-page .conv-perk.is-free {
  background-color: #fef3c7;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f59e0b' d='M12 3 5 6v6c0 4.2 2.8 7.2 7 9 4.2-1.8 7-4.8 7-9V6z'/%3E%3Cpath d='m8.5 12 2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
body.page-testar-resolucao-tela .article .res-page img.conv-art { max-width: 230px; margin-top: 12px; }

body.page-testar-resolucao-tela .res-app {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--res-ink);
}
body.page-testar-resolucao-tela .res-app [hidden] { display: none !important; }
body.page-testar-resolucao-tela .res-page .conv-board {
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  gap: 14px;
}
@media (max-width: 1100px) {
  body.page-testar-resolucao-tela .res-page .conv-board { grid-template-columns: minmax(0, 1fr); }
  body.page-testar-resolucao-tela .res-page .conv-stack { display: contents; }
  body.page-testar-resolucao-tela .res-screen { order: 1; }
  body.page-testar-resolucao-tela .res-data { order: 2; }
  body.page-testar-resolucao-tela .res-sys { order: 3; }
  body.page-testar-resolucao-tela .res-tips { order: 4; }
}
body.page-testar-resolucao-tela .res-page .conv-stack,
body.page-testar-resolucao-tela .res-page .conv-card { min-width: 0; }
body.page-testar-resolucao-tela .res-page .conv-stack { gap: 14px; }
body.page-testar-resolucao-tela .res-page .conv-card,
body.page-testar-resolucao-tela .res-page .conv-tips {
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 22px rgba(15, 23, 42, 0.04);
}
body.page-testar-resolucao-tela .res-page .conv-card-title { color: #1d4ed8; }
body.page-testar-resolucao-tela .res-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--res-blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}
body.page-testar-resolucao-tela .res-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
body.page-testar-resolucao-tela .res-card-head .conv-card-title { margin: 0; }
body.page-testar-resolucao-tela .res-sub,
body.page-testar-resolucao-tela .res-hint,
body.page-testar-resolucao-tela .res-live {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.4;
}
body.page-testar-resolucao-tela .res-hint,
body.page-testar-resolucao-tela .res-live { margin: 12px 0 0; }
body.page-testar-resolucao-tela .res-live { color: #1d4ed8; font-weight: 700; }

body.page-testar-resolucao-tela #btest-btn-start {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
body.page-testar-resolucao-tela #btest-btn-start::before {
  content: "";
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 0 0-13.7-5.6L4 8'/%3E%3Cpath d='M4 4v4h4'/%3E%3Cpath d='M4 12a8 8 0 0 0 13.7 5.6L20 16'/%3E%3Cpath d='M20 20v-4h-4'/%3E%3C/svg%3E") center / 14px no-repeat;
}
body.page-testar-resolucao-tela #btest-btn-start:disabled { opacity: 0.55; cursor: not-allowed; }

body.page-testar-resolucao-tela .res-monitor {
  padding: 10px;
  border-radius: 16px;
  background: #0f172a;
}
body.page-testar-resolucao-tela .res-glass {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(55% 70% at 18% 18%, rgba(255, 255, 255, 0.38), transparent 58%),
    radial-gradient(45% 60% at 82% 78%, rgba(30, 64, 175, 0.45), transparent 62%),
    linear-gradient(155deg, #93c5fd 0%, #3b82f6 46%, #1e3a8a 100%);
}
body.page-testar-resolucao-tela #res-btn-fs {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M9 4H4v5M15 4h5v5M9 20H4v-5M15 20h5v-5'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  cursor: pointer;
}
body.page-testar-resolucao-tela .res-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
}
body.page-testar-resolucao-tela .res-pill strong {
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
body.page-testar-resolucao-tela .res-pill span {
  display: block;
  margin-top: 2px;
  color: #dbeafe;
  font-size: 0.84rem;
  font-weight: 700;
}

body.page-testar-resolucao-tela .res-list { margin: 0; }
body.page-testar-resolucao-tela .res-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(0, max-content);
  gap: 8px 10px;
  align-items: center;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #e8eef5;
}
body.page-testar-resolucao-tela .res-row:last-child { border-bottom: 0; }
body.page-testar-resolucao-tela .res-ico { color: #64748b; }
body.page-testar-resolucao-tela .res-ico svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.page-testar-resolucao-tela .res-row dt {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 650;
}
body.page-testar-resolucao-tela .res-row dd {
  margin: 0;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}
body.page-testar-resolucao-tela #btest-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-testar-resolucao-tela .article .res-tips { margin: 0; }
body.page-testar-resolucao-tela .article .res-tips h2::before {
  content: "";
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5b400' d='M9 18h6v2H9zM12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E") center / 22px no-repeat;
}
body.page-testar-resolucao-tela .article .res-tips ol,
body.page-testar-resolucao-tela .article .res-tips li { list-style: none; }
body.page-testar-resolucao-tela .article .res-tips li::before {
  content: "";
  width: 18px;
  height: 18px;
  background: #f5b400 url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media (max-width: 720px) {
  body.page-testar-resolucao-tela .res-card-head { align-items: flex-start; }
  body.page-testar-resolucao-tela .res-row {
    grid-template-columns: 18px minmax(0, 1fr);
  }
  body.page-testar-resolucao-tela .res-row dd {
    grid-column: 2;
    text-align: left;
  }
}

html[data-theme="dark"] body.page-testar-resolucao-tela .res-row { border-color: #334155; }
html[data-theme="dark"] body.page-testar-resolucao-tela .res-row dt,
html[data-theme="dark"] body.page-testar-resolucao-tela .res-sub,
html[data-theme="dark"] body.page-testar-resolucao-tela .res-hint { color: #94a3b8; }
html[data-theme="dark"] body.page-testar-resolucao-tela .res-row dd { color: #f8fafc; }
html[data-theme="dark"] body.page-testar-resolucao-tela .res-ico { color: #94a3b8; }
html[data-theme="dark"] body.page-testar-resolucao-tela #btest-btn-start {
  background: #0f172a;
  color: #bfdbfe;
  border-color: #334155;
}
html[data-theme="dark"] body.page-testar-resolucao-tela .res-live { color: #93c5fd; }
