/* مكوّنات نتائج DNS فقط؛ الهيدر والنماذج والخطوط من النظام المشترك. */
.notice { margin-top: 20px; padding: 15px 18px; border: 1px solid #786344; border-radius: 8px; background: #302a21; color: #f1d8af; font-size: 13px; overflow-wrap: anywhere; }
.notice-error { border-color: #99636d; background: #3d2630; color: #ffd0d7; }
.notice-success { border-color: #4c8272; background: #203b33; color: var(--green); }
.results-section { margin-top: 38px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.results-heading h2 { font-size: 25px; }
.demo-badge { display: inline-flex; padding: 7px 12px; border: 1px solid #786344; border-radius: 7px; background: #302a21; color: var(--amber); font-size: 12px; }
.results-overview { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.metric { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.metric span { font: 600 11px "Segoe UI", Arial, sans-serif; letter-spacing: 1px; color: var(--muted); }
.metric strong { font-size: 15px; overflow-wrap: anywhere; }
.result-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-bottom: 18px; }
.result-controls > * { min-width: 0; max-width: 100%; }
.tab-group { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--input-bg); }
.result-tab { min-height: 44px; flex-shrink: 0; padding: 9px 14px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.result-tab.is-active { background: #28495c; color: var(--txt); }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.result-table-surface { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.dns-table { width: 100%; min-width: 440px; border-collapse: collapse; text-align: start; }
.dns-table th { padding: 15px; border-bottom: 1px solid var(--line); background: #203349; color: var(--muted); font-size: 12px; font-weight: 600; }
.dns-table td { max-width: 360px; padding: 14px 15px; border-bottom: 1px solid var(--line-soft); font-size: 13px; overflow-wrap: anywhere; }
.dns-table tr:last-child td { border-bottom: 0; }
.copy-value { min-height: 44px; padding: 8px 10px; border: 1px solid #486981; border-radius: 6px; background: #203e52; color: var(--accent); font-size: 12px; }
.empty-cell { text-align: center; color: var(--muted); }
.history-section { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.history-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.history-head h2 { font-size: 22px; }
.history-empty { margin-top: 14px; color: var(--muted); font-size: 13px; }
.history-list { list-style: none; padding: 0; margin-block: 18px 0; display: grid; gap: 10px; }
.history-list:empty { display: none; }
.history-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.history-list button { min-height: 44px; max-width: 100%; background: transparent; border: 0; color: var(--accent); font: inherit; direction: ltr; overflow-wrap: anywhere; }
.history-list small { color: var(--muted); font-size: 12px; }
.toast { position: fixed; inset-block-end: 20px; inset-inline-start: 20px; padding: 13px 18px; border: 1px solid #668ea8; border-radius: 10px; background: #234056; font-size: 13px; opacity: 0; pointer-events: none; z-index: 30; }
.toast.show { opacity: 1; }
@media (max-width: 680px) {
  .results-overview { grid-template-columns: 1fr; }
  .result-controls { align-items: stretch; }
  .tab-group { width: 100%; }
  .result-actions { width: 100%; }
  .result-actions > * { flex: 1 1 auto; }
  .results-heading { align-items: flex-start; }
}
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .breadcrumbs, .workspace-panel, .page-lead, .history-section, .result-actions, .toast, .tab-group, .site-notice, #manual-copy-panel { display: none !important; }
  #results-section[hidden] { display: none !important; }
  .results-section { display: block; margin: 0; }
  .result-panel[hidden] { display: block !important; }
  .result-table-surface { overflow: visible; border: 0; }
  .dns-table { min-width: 0; }
  .dns-table th, .dns-table td, .metric, .demo-badge { background: #fff; color: #000; border-color: #aaa; }
  .copy-value { display: none; }
  .demo-badge::before { content: 'DEMO / '; font-weight: bold; }
}
