/* ==========================================================================
   CARE4WEB — Test a ochrana e-mailů (/test-emailu)
   Responzivní bez přetékání už od 320 px
   ========================================================================== */

.te-hero-block{padding-top:22px;padding-bottom:18px}
.te-hero-card{
  background:linear-gradient(135deg,#ffffff 0%,#f3f8fd 62%,#e6f1fb 100%);
  border:1px solid #c5dcf0;
  border-radius:var(--c4w-radius);
  box-shadow:var(--c4w-shadow);
  padding:32px 36px;
}
.te-hero-card h1{font-size:clamp(26px,3.3vw,42px);margin-top:12px;line-height:1.15;max-width:860px}
.te-lead{margin-top:12px;font-size:17px;line-height:1.6;color:#354256;max-width:740px}

.te-scan-form{margin-top:22px}
.te-input-row{display:flex;gap:10px;align-items:stretch}
.te-input-row input{
  flex:1;min-width:0;width:100%;max-width:100%;
  border:2px solid #b8d3eb;background:#fff;
  border-radius:14px;padding:14px 16px;font-size:16.5px;font-family:inherit;color:var(--c4w-heading);
}
.te-input-row input:focus{outline:none;border-color:var(--c4w-primary);box-shadow:0 0 0 4px rgba(23,105,170,.14)}
.te-submit{flex:none;white-space:nowrap}

.te-form-meta{margin-top:12px;display:flex;flex-wrap:wrap;gap:10px 20px;align-items:center;justify-content:space-between}
.te-dkim-adv{font-size:13.5px;color:var(--c4w-muted)}
.te-dkim-adv summary{cursor:pointer;font-weight:700;color:var(--c4w-primary-dark)}
.te-dkim-body{margin-top:10px;display:grid;gap:6px;max-width:440px}
.te-dkim-body label{font-size:13.5px;font-weight:700;color:var(--c4w-heading)}
.te-dkim-body small{font-weight:500;color:var(--c4w-muted)}
.te-dkim-body input{
  width:100%;border:1.5px solid var(--c4w-border);border-radius:10px;padding:9px 12px;font-size:14.5px;font-family:inherit;background:#fff;
}
.te-privacy-note{margin:0;font-size:13.5px;color:var(--c4w-muted);line-height:1.5}
.te-privacy-note a{color:var(--c4w-primary-dark);font-weight:700;text-decoration:underline;text-underline-offset:2px}

.te-loading{
  margin-top:16px;padding:14px 16px;border-radius:14px;
  background:#fff;border:1px solid #bcd9ef;
  display:flex;align-items:center;gap:12px;font-size:15px;font-weight:700;color:var(--c4w-primary-dark);
}
.te-loading[hidden]{display:none}
.te-spinner{
  width:18px;height:18px;border-radius:50%;
  border:2.5px solid #cde2f5;border-top-color:var(--c4w-primary);
  animation:teSpin .75s linear infinite;flex:none;
}
@keyframes teSpin{to{transform:rotate(360deg)}}
.te-error{margin-top:16px}
.te-error[hidden]{display:none}

/* Výsledky testu */
.te-results-block{padding-top:12px;padding-bottom:24px}
.te-verdict-card{
  background:#fff;border:2px solid var(--c4w-border);border-radius:22px;
  padding:24px 28px;box-shadow:0 12px 32px rgba(15,23,42,.06);margin-bottom:18px;
}
.te-verdict-card.tone-ok{border-color:#86efac;background:linear-gradient(135deg,#f0fdf4,#fff)}
.te-verdict-card.tone-warn{border-color:#fcd34d;background:linear-gradient(135deg,#fffbeb,#fff)}
.te-verdict-card.tone-fail{border-color:#fca5a5;background:linear-gradient(135deg,#fef2f2,#fff)}
.te-verdict-top{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:10px}
.te-score-pill{
  display:inline-flex;align-items:center;padding:6px 14px;border-radius:999px;
  font-size:15px;font-weight:800;
}
.te-verdict-card.tone-ok .te-score-pill{background:#15803d;color:#fff}
.te-verdict-card.tone-warn .te-score-pill{background:#b45309;color:#fff}
.te-verdict-card.tone-fail .te-score-pill{background:#b91c1c;color:#fff}
.te-tested-meta{font-size:13.5px;color:var(--c4w-muted)}
.te-verdict-card h2{font-size:clamp(22px,2.8vw,30px);margin:0;color:var(--c4w-heading)}
.te-verdict-text{margin:10px 0 0;font-size:16px;line-height:1.55;color:#334155;max-width:820px}
.te-verdict-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.te-verdict-actions .btn{white-space:normal;text-align:center}

.te-checks-list{display:grid;gap:12px}
.te-chk-card{
  display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px;align-items:start;
  background:#fff;border:1px solid var(--c4w-border);border-radius:16px;padding:16px 18px;
}
.te-chk-ico{
  width:28px;height:28px;border-radius:999px;display:grid;place-items:center;
  font-weight:800;font-size:14px;margin-top:1px;
}
.te-chk-ico.st-ok{background:#dcfce7;color:#166534}
.te-chk-ico.st-warn{background:#fef3c7;color:#92400e}
.te-chk-ico.st-fail{background:#fee2e2;color:#991b1b}
.te-chk-ico.st-info{background:#e0f2fe;color:#075985}
.te-chk-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.te-chk-name{font-weight:800;font-size:16px;color:var(--c4w-heading)}
.te-chk-tag{font-size:12px;font-weight:800;padding:3px 10px;border-radius:999px}
.te-chk-tag.st-ok{background:#dcfce7;color:#166534}
.te-chk-tag.st-warn{background:#fef3c7;color:#92400e}
.te-chk-tag.st-fail{background:#fee2e2;color:#991b1b}
.te-chk-tag.st-info{background:#e0f2fe;color:#075985}
.te-chk-sum{margin:6px 0 0;font-size:14.5px;line-height:1.5;color:#334155}
.te-chk-adv{margin:8px 0 0;font-size:14px;line-height:1.5;color:var(--c4w-primary-dark);font-weight:600}
.te-chk-det{margin-top:8px;font-size:13px;color:var(--c4w-muted)}
.te-chk-det summary{cursor:pointer;font-weight:700}
.te-chk-det pre{
  margin:8px 0 0;padding:10px 12px;border-radius:10px;
  background:#0f172a;color:#e2e8f0;font-size:12px;line-height:1.5;
  white-space:pre-wrap;overflow-wrap:anywhere;
}

/* Generátor oprav */
.te-gen-block{padding-top:16px;padding-bottom:36px}
.te-gen-head{margin-bottom:20px}
.te-gen-head h2{font-size:clamp(22px,2.8vw,32px);margin:10px 0 0}
.te-detected-note{
  margin:12px 0 0;padding:11px 15px;border-radius:12px;
  background:#e7f6ec;border:1px solid #b6e3c6;color:#14532d;
  font-size:14.5px;font-weight:700;display:block;max-width:860px;line-height:1.45;
}
.te-detected-note[hidden]{display:none}
.te-keep-note{
  margin:10px 0 0;padding:11px 15px;border-radius:12px;
  background:#fef3c7;border:1px solid #f5d08a;color:#92400e;
  font-size:14px;font-weight:600;display:block;max-width:860px;line-height:1.45;
}
.te-keep-note[hidden]{display:none}
.te-mini-note{margin:10px 0 0;font-size:13px;color:var(--c4w-muted);line-height:1.45}
.te-webmail-box{
  margin-top:14px;padding:12px 14px;border-radius:14px;
  background:#f8fbff;border:1px solid #d4e6f7;display:grid;gap:8px;
}
.te-inline-chk{display:flex;align-items:flex-start;gap:9px;font-size:13.5px;line-height:1.4;color:#334155;cursor:pointer}
.te-inline-chk input{margin-top:2px;width:16px;height:16px;accent-color:var(--c4w-primary);flex:none}
.te-wgp-box{margin-top:4px;padding-top:10px;border-top:1px dashed #bcd9ef}
.te-wgp-box[hidden]{display:none}
.te-btn-group{display:flex;gap:6px;flex-wrap:wrap}
.te-verify-note{margin:7px 0 0;font-size:13px;font-weight:700;line-height:1.45;color:#14532d}
.te-verify-note.is-warn{color:#92400e}
.te-verify-note.is-fail{color:#991b1b}
.te-verify-note[hidden]{display:none}

.te-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);gap:22px;align-items:start}
.te-controls{display:grid;gap:16px;min-width:0}
.te-card{
  background:#fff;border:1px solid var(--c4w-border);border-radius:20px;
  padding:22px 24px;box-shadow:0 8px 24px rgba(15,23,42,.04);min-width:0;
}
.te-step-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}
.te-step-num{
  flex:none;width:30px;height:30px;border-radius:999px;
  background:var(--c4w-primary);color:#fff;
  font-size:15px;font-weight:800;display:grid;place-items:center;margin-top:1px;
}
.te-card h3{font-size:19px;margin:0;color:var(--c4w-heading);line-height:1.25}
.te-hint{font-size:14px;color:var(--c4w-muted);margin:3px 0 0;line-height:1.45}
.te-sub-lbl{font-size:13.5px;font-weight:700;color:var(--c4w-heading);margin:0 0 10px}

.te-pill-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.te-pill{
  display:flex;align-items:center;gap:9px;
  padding:11px 13px;border-radius:12px;
  border:1.5px solid var(--c4w-border);background:#fbfdff;
  cursor:pointer;font-size:14.5px;font-weight:600;color:var(--c4w-heading);
  line-height:1.3;min-width:0;transition:border-color .15s,background .15s;
}
.te-pill:hover{border-color:#9ec5e6}
.te-pill:has(input:checked){border-color:var(--c4w-primary);background:var(--c4w-primary-soft);color:var(--c4w-primary-dark)}
.te-pill input{width:17px;height:17px;accent-color:var(--c4w-primary);flex:none}

.te-simple-chk{
  display:flex;gap:11px;align-items:flex-start;margin-top:14px;
  padding:12px 14px;border-radius:14px;border:1px solid var(--c4w-border);
  background:var(--c4w-bg-soft);cursor:pointer;min-width:0;
}
.te-simple-chk input{margin-top:3px;width:17px;height:17px;accent-color:var(--c4w-primary);flex:none}
.te-simple-chk strong{display:block;font-size:14.5px;color:var(--c4w-heading);line-height:1.35}
.te-simple-chk small{display:block;font-size:13px;color:var(--c4w-muted);margin-top:3px;line-height:1.45}

.te-senders-wrap{margin-top:16px}
.te-senders-wrap.is-disabled{opacity:.45;pointer-events:none}

.te-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.te-choice-opt{
  display:flex;gap:9px;align-items:flex-start;
  padding:13px 14px;border-radius:14px;
  border:1.5px solid var(--c4w-border);background:#fbfdff;
  cursor:pointer;min-width:0;transition:border-color .15s,background .15s;
}
.te-choice-opt:hover{border-color:#9ec5e6}
.te-choice-opt:has(input:checked){border-color:var(--c4w-primary);background:var(--c4w-primary-soft)}
.te-choice-opt input{margin-top:3px;accent-color:var(--c4w-primary);flex:none}
.te-choice-opt strong{display:block;font-size:14.5px;color:var(--c4w-heading);line-height:1.3}
.te-choice-opt small{display:block;font-size:12.5px;color:var(--c4w-muted);margin-top:4px;line-height:1.4}

.te-field{display:grid;gap:6px;min-width:0}
.te-field label{font-size:14px;font-weight:700;color:var(--c4w-heading)}
.te-field label span{font-weight:500;color:var(--c4w-muted);font-size:13px}
.te-field input,.te-field select{
  width:100%;max-width:100%;min-width:0;
  border:1.5px solid var(--c4w-border);background:#fff;
  border-radius:12px;padding:11px 13px;font-size:15px;font-family:inherit;color:var(--c4w-heading);
}
.te-field input:focus,.te-field select:focus{outline:none;border-color:var(--c4w-primary);box-shadow:0 0 0 3px rgba(23,105,170,.12)}
.te-field-warn{margin:0;font-size:13px;color:#b42318;line-height:1.45}

.te-adv{margin-top:16px;border-top:1px solid var(--line-soft);padding-top:14px}
.te-adv summary{
  cursor:pointer;font-size:14px;font-weight:700;color:var(--c4w-muted);
  list-style:none;display:flex;align-items:center;gap:8px;user-select:none;
}
.te-adv summary::-webkit-details-marker{display:none}
.te-adv summary::before{content:'▸';font-size:12px;color:var(--c4w-primary);transition:transform .15s}
.te-adv[open] summary::before{transform:rotate(90deg)}
.te-adv summary:hover{color:var(--c4w-primary-dark)}
.te-adv-body{margin-top:14px;display:grid;gap:14px}
.te-adv-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.te-adv-checks{display:grid;gap:7px;font-size:13.5px;color:var(--c4w-text)}
.te-adv-checks label{display:flex;align-items:center;gap:8px;cursor:pointer}
.te-adv-checks input{width:16px;height:16px;accent-color:var(--c4w-primary);flex:none}

/* Pravý náhled DNS */
.te-preview-col{position:sticky;top:88px;min-width:0}
.te-preview-card{
  background:#fff;border:1.5px solid #bcd9ef;border-radius:20px;
  padding:22px;box-shadow:0 12px 32px rgba(15,23,42,.07);min-width:0;
}
.te-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
.te-preview-head strong{display:block;font-size:17px;color:var(--c4w-heading)}
.te-preview-head span{display:block;font-size:13px;color:var(--c4w-muted);margin-top:2px;overflow-wrap:anywhere}
.te-text-btn{
  background:none;border:none;color:var(--c4w-primary);font-weight:700;font-size:13.5px;
  cursor:pointer;padding:4px 6px;font-family:inherit;white-space:nowrap;
}
.te-text-btn:hover{text-decoration:underline}

.te-badges{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.te-badge{display:inline-flex;align-items:center;padding:5px 11px;border-radius:999px;font-size:12.5px;font-weight:700;line-height:1.25}
.te-badge.ok{background:#e7f6ec;color:#14532d;border:1px solid #b6e3c6}
.te-badge.warn{background:#fef3c7;color:#92400e;border:1px solid #f5d08a}
.te-badge.fail{background:#fee2e2;color:#991b1b;border:1px solid #f5b5b5}

.te-dns-block{margin-bottom:12px}
.te-dns-block-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px;flex-wrap:wrap}
.te-dns-block-top strong{font-size:14.5px;color:var(--c4w-heading)}
.te-dns-block-top small{font-weight:500;color:var(--c4w-muted);margin-left:4px}
.te-mini-btn{
  border:1px solid #bcd9ef;background:var(--c4w-primary-soft);color:var(--c4w-primary-dark);
  border-radius:9px;padding:6px 12px;font-size:13px;font-weight:700;
  font-family:inherit;cursor:pointer;white-space:nowrap;
}
.te-mini-btn:hover{background:#dcebfa;border-color:var(--c4w-primary)}
.te-code-box{
  margin:0;padding:12px 14px;border-radius:12px;
  background:#0f172a;color:#e2e8f0;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;
  border:1px solid #1e293b;
}

.te-wedos-table-wrap{margin:14px 0 4px}
.te-table-scroll{overflow-x:auto;border:1px solid var(--c4w-border);border-radius:12px}
.te-dns-table{width:100%;border-collapse:collapse;font-size:12.5px;background:#fff}
.te-dns-table th,.te-dns-table td{padding:8px 10px;border-bottom:1px solid var(--line-soft);text-align:left;vertical-align:top}
.te-dns-table thead th{background:var(--c4w-bg-soft);color:var(--c4w-heading);font-weight:700;white-space:nowrap}
.te-dns-table tbody tr:last-child td{border-bottom:none}
.te-dns-table td code{font-size:12px;overflow-wrap:anywhere;word-break:break-word}

.te-preview-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.te-preview-actions .btn{flex:1 1 150px;justify-content:center;white-space:normal;text-align:center}
.te-copy-note{min-height:18px;margin:8px 0 0;font-size:13.5px;font-weight:700;color:#14532d}

.te-safety-box{
  margin-top:14px;padding:14px 16px;border-radius:14px;
  background:#f8fbff;border:1px solid #d4e6f7;font-size:13.5px;line-height:1.5;color:#334155;
}
.te-safety-box strong{color:var(--c4w-heading)}
.te-safety-box ul{margin:6px 0 0;padding-left:18px;display:grid;gap:4px}
.te-cta-lead{width:100%;justify-content:center;white-space:normal;text-align:center;margin-top:12px}

/* Responzivita až k 320 px */
@media (max-width:980px){
  .te-workspace{grid-template-columns:1fr}
  .te-preview-col{position:static}
}
@media (max-width:720px){
  .te-hero-card{padding:24px 20px}
  .te-input-row{flex-direction:column}
  .te-submit{width:100%;justify-content:center;white-space:normal}
  .te-choice-grid,.te-adv-grid{grid-template-columns:1fr}
}
@media (max-width:520px){
  .te-hero-card{padding:20px 16px}
  .te-verdict-card,.te-card,.te-preview-card{padding:18px 14px}
  .te-pill-grid{grid-template-columns:1fr}
  .te-preview-actions{flex-direction:column}
  .te-preview-actions .btn{width:100%;flex:none}
  .te-verdict-actions .btn{width:100%;justify-content:center}
}
