.resources-page [hidden] { display: none !important; }
.resources-page .resources-main { overflow-wrap: anywhere; }
.rt-section { margin: 32px 0; padding: 24px; background: #111; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.rt-section h2, .rt-check-card h2 { margin-top: 0; line-height: 1.2; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.03em; }
.rt-section h3 { margin-top: 28px; }
.rt-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.rt-field { min-width: 0; }
.rt-field label { display: block; margin-bottom: 8px; font-weight: 700; }
.rt-field small { display: block; color: var(--muted); margin-top: 6px; }
.rt-field input, .rt-field select, .rt-custom-form input { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; background: #090909; color: var(--text); padding: 10px; font: inherit; }
.rt-field input:disabled { opacity: 0.45; }
.rt-field input[aria-invalid="true"] { border-color: #ffad8c; }
.rt-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; padding: 10px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--yellow); color: #090909; font: inherit; font-weight: 700; cursor: pointer; white-space: normal; }
.rt-actions, .rt-tool-nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rt-tool-nav { margin: 24px 0; font-size: 14px; }
.rt-tool-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--yellow); }
.rt-tool-nav a:hover, .rt-section a:hover { text-decoration: underline; }
.rt-error { color: #ffad8c; }
.rt-note, .rt-section small { color: var(--muted); }
.rt-output { padding: 20px; border-left: 3px solid var(--yellow); margin-top: 24px; background: #191919; }
.rt-output ul, .rt-section ul, .rt-section ol { padding-left: 22px; }
.rt-output li, .rt-section li { margin-bottom: 8px; }
.rt-section a { color: var(--yellow); }
.rt-advanced { margin: 32px 0; }
.rt-advanced > summary { padding: 16px; min-height: 48px; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; }
.rt-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.rt-check-card { min-width: 0; background: #111; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.rt-check-list { padding: 0 !important; margin: 0; list-style: none; }
.rt-check-list li { margin: 0; padding: 4px 0; }
.rt-check-label { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; cursor: pointer; min-height: 44px; }
.rt-check-label input { flex: 0 0 22px; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--yellow); }
.rt-check-label input:checked + span { text-decoration: line-through; color: var(--muted); }
.rt-custom-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin: 20px 0; }
.rt-custom-form label { grid-column: 1 / -1; font-weight: 700; }
.resources-page input:focus-visible, .resources-page select:focus-visible, .resources-page summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
@media (max-width: 600px) {
  .rt-fields, .rt-check-grid, .rt-custom-form { grid-template-columns: minmax(0, 1fr); }
  .rt-section, .rt-check-card, .rt-output { padding: 16px; }
}
@media print {
  .resources-header, .resources-footer, .rt-tool-nav, .rt-button, .rt-custom-form { display: none !important; }
  .resources-page { background: #fff; color: #000; }
  .rt-section, .rt-check-card, .rt-output { background: #fff; border-color: #999; }
}
