
.tvl-admin-wrap{
  max-width:1180px;
}
.tvl-admin-card{
  background:#fff;
  border:1px solid #dcdcde;
  border-radius:12px;
  padding:16px 18px;
}
.tvl-admin-card--filters{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin:14px 0 18px;
}
.tvl-admin-card--filters input[type="search"],
.tvl-admin-card--filters select{
  min-height:38px;
}
.tvl-admin-table{
  border:1px solid #dcdcde;
}
.tvl-admin-table th{
  white-space:nowrap;
}
.tvl-badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
}
.tvl-new{background:#eaf4ff;}
.tvl-replied{background:#eef7ea;}
.tvl-archived{background:#f2f2f2;}
.tvl-message-row{background:#fafafa;}
.tvl-message-row td{
  padding-top:10px !important;
  padding-bottom:14px !important;
}
.tvl-export-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
  max-width:980px;
  margin-top:18px;
}
.tvl-card{
  background:#fff;
  border:1px solid #dcdcde;
  border-radius:12px;
  padding:20px;
}
.tvl-settings-form{
  max-width:920px;
  margin-top:16px;
}
.tvl-settings-form .form-table th{
  width:220px;
}


/* 1.0.9 frontend/contact overrides loaded from active enqueued stylesheet */
.tvl-form-wrap{
  max-width:none !important;
  width:100% !important;
  margin:0 !important;
}
.tvl-form-shell{
  max-width:none !important;
  width:100% !important;
  padding:0 !important;
  background:transparent !important;
}
.tvl-form{
  width:100% !important;
}
.tvl-form-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:16px !important;
}
.tvl-field{
  margin:0 0 16px !important;
}
.tvl-form input[type=text],
.tvl-form input[type=email],
.tvl-form textarea{
  width:100% !important;
  min-height:48px !important;
  padding:12px 14px !important;
  border:1px solid rgba(0,0,0,.12) !important;
  border-radius:0 !important;
  background:#fff !important;
  box-sizing:border-box !important;
  font:inherit !important;
}
.tvl-form textarea{
  min-height:180px !important;
  resize:vertical !important;
}
.tvl-consent-group{
  display:grid !important;
  gap:10px !important;
  margin:0 0 18px !important;
}
.content-shell .contact-plugin-skin .tvl-consent-group .tvl-checkbox,
.content-shell .contact-form-skin .tvl-consent-group .tvl-checkbox,
.content-shell .plugin-skin--contact .tvl-consent-group .tvl-checkbox,
.contact-layout__content .tvl-consent-group .tvl-checkbox{
  margin:0 !important;
  max-width:none !important;
}
.content-shell .contact-plugin-skin .tvl-consent-group .tvl-checkbox label,
.content-shell .contact-form-skin .tvl-consent-group .tvl-checkbox label,
.content-shell .plugin-skin--contact .tvl-consent-group .tvl-checkbox label,
.contact-layout__content .tvl-consent-group .tvl-checkbox label{
  display:grid !important;
  grid-template-columns:16px minmax(0,1fr) !important;
  column-gap:10px !important;
  align-items:start !important;
  margin:0 !important;
  width:auto !important;
  max-width:none !important;
}
.content-shell .contact-plugin-skin .tvl-consent-group .tvl-checkbox input[type="checkbox"],
.content-shell .contact-form-skin .tvl-consent-group .tvl-checkbox input[type="checkbox"],
.content-shell .plugin-skin--contact .tvl-consent-group .tvl-checkbox input[type="checkbox"],
.contact-layout__content .tvl-consent-group .tvl-checkbox input[type="checkbox"]{
  -webkit-appearance:checkbox !important;
  appearance:auto !important;
  width:16px !important;
  min-width:16px !important;
  max-width:16px !important;
  height:16px !important;
  min-height:16px !important;
  max-height:16px !important;
  padding:0 !important;
  margin:2px 0 0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  display:block !important;
  float:none !important;
  position:static !important;
  vertical-align:top !important;
}
.content-shell .contact-plugin-skin .tvl-consent-group .tvl-checkbox label span,
.content-shell .contact-form-skin .tvl-consent-group .tvl-checkbox label span,
.content-shell .plugin-skin--contact .tvl-consent-group .tvl-checkbox label span,
.contact-layout__content .tvl-consent-group .tvl-checkbox label span{
  display:block !important;
  width:auto !important;
  max-width:none !important;
  margin:0 !important;
  line-height:1.4 !important;
}
.tvl-submit-row{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
  flex-wrap:wrap !important;
  width:100% !important;
}
.tvl-submit-button,
.tvl-form button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:46px !important;
  padding:0 18px !important;
  border:1px solid #111 !important;
  border-radius:0 !important;
  background:#111 !important;
  color:#fff !important;
  cursor:pointer !important;
  font:inherit !important;
  text-transform:uppercase !important;
  letter-spacing:.06em !important;
}
.tvl-thanks-panel{
  padding:28px 30px !important;
  border:1px solid rgba(0,0,0,.10) !important;
  background:#f7f7f7 !important;
  text-align:center !important;
}
@media (max-width:700px){
  .tvl-form-grid{
    grid-template-columns:1fr !important;
    gap:0 !important;
  }
  .tvl-submit-button,
  .tvl-form button{
    width:100% !important;
  }
}


/* 1.0.10 field layout update */
.tvl-form-grid--emails{
  margin-bottom:0;
}


/* 1.0.11 Cloudflare Turnstile */
.tvl-turnstile-wrap{
  margin:0 0 18px !important;
}
.tvl-turnstile-wrap .cf-turnstile{
  display:inline-block;
}
@media (max-width:700px){
  .tvl-turnstile-wrap .cf-turnstile{
    max-width:100%;
  }
}


/* 1.0.15 enquiries table tidy */
.tvl-enquiries-table th:nth-child(1){width:14%;}
.tvl-enquiries-table th:nth-child(2){width:18%;}
.tvl-enquiries-table th:nth-child(3){width:22%;}
.tvl-enquiries-table th:nth-child(4){width:10%;}
.tvl-enquiries-table th:nth-child(5){width:10%;}
.tvl-enquiries-table th:nth-child(6){width:12%;}
.tvl-enquiries-table th:nth-child(7){width:14%;}
.tvl-subject-cell{
  position:relative;
}
.tvl-subject-chip{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  cursor:default;
}
.tvl-actions-cell .button{
  margin:0 4px 4px 0;
}


/* 1.0.16 enquiries hover + single-row actions */
.tvl-enquiries-table .tvl-subject-cell{
  position:relative;
}
.tvl-enquiries-table .tvl-subject-chip{
  position:relative;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  cursor:default;
}
.tvl-enquiries-table .tvl-subject-chip:hover::after{
  content:attr(data-full);
  position:absolute;
  left:0;
  top:calc(100% + 6px);
  z-index:50;
  min-width:220px;
  max-width:460px;
  padding:10px 12px;
  background:#111;
  color:#fff;
  border-radius:6px;
  white-space:normal;
  line-height:1.4;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}
.tvl-enquiries-table .tvl-actions-cell{
  white-space:nowrap;
}
.tvl-enquiries-table .tvl-actions-cell .button{
  margin:0 4px 0 0;
}


/* 1.0.17 enquiries/admin/front-end polish */
.tvl-admin-wrap{
  max-width:1320px;
}
.tvl-enquiries-table{
  table-layout:auto !important;
  width:100% !important;
}
.tvl-enquiries-table th:nth-child(1){width:14%;}
.tvl-enquiries-table th:nth-child(2){width:19%;}
.tvl-enquiries-table th:nth-child(3){width:24%;}
.tvl-enquiries-table th:nth-child(4){width:8%;}
.tvl-enquiries-table th:nth-child(5){width:8%;}
.tvl-enquiries-table th:nth-child(6){width:13%;}
.tvl-enquiries-table th:nth-child(7){width:14%;}
.tvl-enquiries-table .tvl-subject-cell,
.tvl-enquiries-table td:nth-child(3){
  overflow:visible !important;
}
.tvl-enquiries-table .tvl-subject-chip{
  text-decoration:underline;
  text-decoration-style:dotted;
  text-underline-offset:2px;
}
.tvl-enquiries-table .tvl-subject-chip:hover::after{
  content:none !important;
}
.tvl-enquiries-table .tvl-actions-cell{
  white-space:nowrap !important;
}
.tvl-enquiries-table .tvl-actions-cell .button{
  margin:0 4px 0 0 !important;
  display:inline-flex !important;
}
.tvl-thanks-panel{
  padding:28px 30px !important;
  border:1px solid rgba(0,0,0,.10) !important;
  background:#f7f7f7 !important;
  text-align:center !important;
}
.tvl-thanks-panel__message{
  margin:0 !important;
  font-size:clamp(1.05rem, 1.8vw, 1.28rem) !important;
  line-height:1.6 !important;
}
.tvl-submit-button,
.tvl-form button{
  transition:background-color .16s ease, border-color .16s ease, transform .16s ease, opacity .16s ease;
}
.tvl-submit-button:hover,
.tvl-form button:hover{
  background:#2a2a2a !important;
  border-color:#2a2a2a !important;
  opacity:1 !important;
}
.tvl-submit-button:active,
.tvl-form button:active{
  transform:translateY(1px);
}


/* 1.0.18 stronger admin subject tooltip + stronger front-end submit hover */
.wp-admin .tvl-enquiries-table,
.wp-admin .tvl-enquiries-table tbody,
.wp-admin .tvl-enquiries-table tr,
.wp-admin .tvl-enquiries-table td{
  overflow: visible !important;
}
.wp-admin .tvl-enquiries-table .tvl-subject-cell{
  position: relative !important;
  overflow: visible !important;
}
.wp-admin .tvl-enquiries-table .tvl-subject-chip{
  position: relative !important;
  display: inline-block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  cursor: help !important;
  text-decoration: underline !important;
  text-decoration-style: dotted !important;
  text-underline-offset: 2px !important;
}
.wp-admin .tvl-enquiries-table .tvl-subject-chip:hover::after{
  content: attr(data-full) !important;
  position: absolute !important;
  left: 0 !important;
  top: calc(100% + 6px) !important;
  z-index: 9999 !important;
  min-width: 220px !important;
  max-width: 460px !important;
  padding: 10px 12px !important;
  background: #111 !important;
  color: #fff !important;
  border-radius: 6px !important;
  white-space: normal !important;
  line-height: 1.4 !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.18) !important;
  pointer-events: none !important;
}
.wp-admin .tvl-enquiries-table .tvl-subject-chip:hover::before{
  content: "" !important;
  position: absolute !important;
  left: 12px !important;
  top: calc(100% + 1px) !important;
  z-index: 9999 !important;
  border: 6px solid transparent !important;
  border-bottom-color: #111 !important;
  pointer-events: none !important;
}

/* front-end button state with stronger selectors than theme buttons */
.content-shell .contact-plugin-skin .tvl-submit-button,
.content-shell .contact-form-skin .tvl-submit-button,
.contact-layout__content .tvl-submit-button,
.content-shell .contact-plugin-skin .tvl-form button[type="submit"],
.content-shell .contact-form-skin .tvl-form button[type="submit"],
.contact-layout__content .tvl-form button[type="submit"]{
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease !important;
}
.content-shell .contact-plugin-skin .tvl-submit-button:hover,
.content-shell .contact-form-skin .tvl-submit-button:hover,
.contact-layout__content .tvl-submit-button:hover,
.content-shell .contact-plugin-skin .tvl-form button[type="submit"]:hover,
.content-shell .contact-form-skin .tvl-form button[type="submit"]:hover,
.contact-layout__content .tvl-form button[type="submit"]:hover{
  background: #333 !important;
  border-color: #333 !important;
  color: #fff !important;
  opacity: 1 !important;
  box-shadow: inset 0 0 0 999px rgba(255,255,255,.03) !important;
}
.content-shell .contact-plugin-skin .tvl-submit-button:active,
.content-shell .contact-form-skin .tvl-submit-button:active,
.contact-layout__content .tvl-submit-button:active,
.content-shell .contact-plugin-skin .tvl-form button[type="submit"]:active,
.content-shell .contact-form-skin .tvl-form button[type="submit"]:active,
.contact-layout__content .tvl-form button[type="submit"]:active{
  transform: translateY(1px) !important;
}


/* 1.0.19 admin JS tooltip */
.wp-admin .tvl-admin-tooltip{
  position:absolute;
  z-index:999999;
  display:none;
  min-width:240px;
  max-width:520px;
  padding:10px 12px;
  background:#111;
  color:#fff;
  border-radius:6px;
  white-space:pre-wrap;
  line-height:1.45;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
  pointer-events:none;
}
.wp-admin .tvl-admin-tooltip.is-visible{
  display:block;
}
.wp-admin .tvl-enquiries-table .tvl-subject-chip{
  cursor:help !important;
}
.wp-admin .tvl-enquiries-table .tvl-subject-chip:hover::after,
.wp-admin .tvl-enquiries-table .tvl-subject-chip:hover::before{
  content:none !important;
}


/* 1.0.20 email signature preview */
.tvl-email-signature-preview-wrap{
  margin-top:12px;
}
.tvl-email-signature-preview{
  max-width:680px;
  padding:16px 18px;
  border:1px solid #dcdcde;
  background:#fff;
}


/* 1.0.23 plain email preview and standard thank-you text */
.tvl-thanks-panel__message{
  margin:0 !important;
  font-size:inherit !important;
  line-height:1.65 !important;
  font-weight:400 !important;
}
.tvl-email-signature-preview-frame{
  width:100%;
  min-height:520px;
  border:1px solid #dcdcde;
  background:#fff;
}


/* 1.0.24 message panel + send another link */
.tvl-message-panel{
  margin:0 0 18px !important;
  padding:28px 30px !important;
  background:#f7f7f7 !important;
  border:none !important;
}
.tvl-message-panel__text{
  margin:0 !important;
  font-size:inherit !important;
  line-height:1.65 !important;
  font-weight:400 !important;
}
.tvl-message-panel__actions{
  margin:16px 0 0 !important;
}
.tvl-reset-link{
  display:inline-block;
  text-decoration:none;
  border-bottom:1px solid currentColor;
}
.tvl-thanks-panel{
  border:none !important;
  background:#f7f7f7 !important;
}


/* 1.0.25 match contact right-column panel grey */
.tvl-message-panel,
.tvl-thanks-panel{
  background:#f3f3f3 !important;
}


/* 1.0.47 submit row alignment polish for Turnstile + button */
.tvl-submit-row{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:24px !important;
  flex-wrap:nowrap !important;
}
.tvl-submit-row__turnstile{
  display:flex !important;
  align-items:flex-start !important;
  flex:0 1 auto !important;
  min-width:0 !important;
}
.tvl-submit-row__button{
  display:flex !important;
  align-items:flex-start !important;
  flex:0 0 auto !important;
  margin-left:auto !important;
  margin-top:1px !important;
}
.tvl-submit-row .cf-turnstile{
  display:block !important;
}
.tvl-submit-row__button .tvl-submit-button,
button.tvl-submit-button{
  height:64px !important;
  min-height:64px !important;
  min-width:168px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 20px !important;
  line-height:1 !important;
  white-space:nowrap !important;
  box-sizing:border-box !important;
  margin:0 !important;
}
.tvl-form-note{
  margin-top:12px !important;
}
@media (max-width: 900px){
  .tvl-submit-row{
    flex-wrap:wrap !important;
    align-items:flex-start !important;
  }
  .tvl-submit-row__button{
    margin-left:0 !important;
    margin-top:0 !important;
  }
}
@media (max-width: 700px){
  .tvl-submit-row{
    flex-direction:column !important;
    align-items:stretch !important;
  }
  .tvl-submit-row__button{
    width:100% !important;
  }
  .tvl-submit-row__button .tvl-submit-button{
    width:100% !important;
  }
}


/* 1.0.27 ajax submit polish */
.tvl-submit-button[disabled]{
  opacity:.75;
  cursor:wait !important;
}

/* 1.0.28 ajax fallback polish */
.tvl-submit-button[disabled]{opacity:.75;cursor:wait !important;}

/* 1.0.30 ajax hardened */
.tvl-submit-button[disabled]{opacity:.75;cursor:wait !important;}


/* 1.0.34 clearer centered Turnstile/form errors */
.tvl-error--centered{
  text-align:center !important;
  color:#b42318 !important;
}


/* 1.0.35 backend email tools only */
.tvl-tools-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:12px 0 4px;
}
.tvl-tools-form{
  margin:0;
}
.tvl-email-preview-frame{
  width:100%;
  min-height:360px;
  border:1px solid #dcdcde;
  background:#fff;
}


/* 1.0.36 backend enquiries notes drawer only */
.tvl-enquiry-notes-row td{
  background:#fafafa;
}
.tvl-enquiry-notes-panel{
  padding:16px 12px 8px;
}
.tvl-enquiry-notes-panel__message{
  margin-bottom:14px;
}
.tvl-enquiry-notes-panel__message-body{
  margin-top:8px;
  white-space:normal;
  line-height:1.6;
}
.tvl-enquiry-notes-form .submit{
  margin:10px 0 0;
  padding:0;
}

.tvl-bulk-bar{display:flex;gap:10px;align-items:center;margin:0 0 12px;}

.tvl-bulk-form{margin:0 0 12px;}

.tvl-hp-field{position:absolute !important;left:-9999px !important;opacity:0 !important;pointer-events:none !important;}
.tvl-mail-badge{font-size:11px;}
.tvl-mail-pending{background:#fff7db;}
.tvl-mail-queued{background:#eaf4ff;}
.tvl-mail-sent{background:#eef7ea;}
.tvl-mail-failed{background:#fde9e9;}
.tvl-mail-skipped{background:#f2f2f2;}
.tvl-enquiry-notes-panel{display:grid;grid-template-columns:minmax(260px,1fr) minmax(320px,1fr);gap:18px;align-items:start;}
.tvl-mail-tools{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 14px;}
.tvl-email-log-box{margin-top:10px;padding:12px;border:1px solid #dcdcde;background:#fafafa;}
.tvl-email-log-box pre{white-space:pre-wrap;margin:8px 0 0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.5;max-height:220px;overflow:auto;}
@media (max-width:900px){.tvl-enquiry-notes-panel{grid-template-columns:1fr;}}

.tvl-in_progress{background:#fff4df;}
.tvl-closed{background:#ece8ff;}
.tvl-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin:0 0 18px;}
.tvl-summary-card{background:#fff;border:1px solid #dcdcde;border-radius:6px;padding:12px 14px;box-shadow:0 1px 1px rgba(0,0,0,.03);}
.tvl-summary-card__label{display:block;font-size:12px;letter-spacing:.02em;text-transform:uppercase;color:#50575e;margin-bottom:6px;}
.tvl-summary-card strong{font-size:22px;line-height:1;}

.tvl-summary-card{display:block;color:inherit;text-decoration:none;transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;}
.tvl-summary-card:hover{border-color:#2271b1;box-shadow:0 2px 8px rgba(0,0,0,.06);transform:translateY(-1px);}
.tvl-summary-card.is-active{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1 inset;}


/* 1.0.69 admin workflow polish */
.tvl-subject-trigger{
  border:0;
  background:transparent;
  padding:0;
  width:100%;
  text-align:left;
  color:inherit;
  font:inherit;
  cursor:pointer;
}
.tvl-subject-trigger:hover,
.tvl-subject-trigger:focus{
  text-decoration:underline;
}
.tvl-bulk-bar,
.tvl-filters{
  position:sticky;
  top:32px;
  z-index:2;
}


.tvl-settings-section-row th.tvl-settings-section-cell {
  padding-top:24px;
  padding-bottom:10px;
  border-top:1px solid #dcdcde;
}
.tvl-settings-section-title {
  font-size:14px;
  font-weight:600;
  margin:0 0 4px;
}
.tvl-settings-section-description {
  margin:0;
}


.tvl-results-count{margin:12px 0 10px;font-size:13px;color:#555}.tvl-results-count strong{font-size:15px;color:#111}.tvl-export-grid .tvl-card--compact h2{margin-bottom:8px}.tvl-export-grid .tvl-card--compact p{margin-top:0}.tvl-admin-card--filters .button{white-space:nowrap}

/* 1.0.91 admin polish */
.tvl-export-grid{
  grid-template-columns:repeat(auto-fit,minmax(220px,280px));
  gap:12px;
  max-width:none;
}
.tvl-export-grid .tvl-card,
.tvl-export-grid .tvl-card--compact{
  padding:14px 16px;
}
.tvl-summary-grid{
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  margin:0 0 16px;
  overflow-x:auto;
  padding-bottom:2px;
}
.tvl-summary-card{
  min-width:88px;
  padding:10px 10px;
  border-radius:8px;
  flex:0 0 auto;
}
.tvl-summary-card__label{
  font-size:11px;
  margin-bottom:4px;
}
.tvl-summary-card strong{
  font-size:18px;
}
.tvl-actions-cell--stacked{
  min-width:138px;
}
.tvl-actions-cell--stacked .button,
.tvl-actions-cell--stacked .button.button-small,
.tvl-actions-cell--stacked .button-link-delete{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:calc(50% - 6px);
  min-height:30px;
  margin:0 6px 6px 0 !important;
  white-space:normal !important;
  text-align:center;
  line-height:1.25;
  padding:4px 8px !important;
}
.tvl-enquiries-table tbody tr.tvl-record-row.is-odd > * ,
.tvl-admin-table tbody tr.tvl-record-row.is-odd > *{
  background:#ffffff;
}
.tvl-enquiries-table tbody tr.tvl-record-row.is-even > * ,
.tvl-admin-table tbody tr.tvl-record-row.is-even > *{
  background:#f7f7f7;
}
.tvl-enquiry-notes-row.is-odd td{background:#fcfcfc !important;}
.tvl-enquiry-notes-row.is-even td{background:#f1f1f1 !important;}
.tvl-admin-pagination{
  margin:14px 0 0;
}
.tvl-admin-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  margin:0 6px 0 0;
  padding:0 10px;
  border:1px solid #dcdcde;
  border-radius:6px;
  background:#fff;
  text-decoration:none;
}
.tvl-admin-pagination .page-numbers.current{
  border-color:#2271b1;
  box-shadow:0 0 0 1px #2271b1 inset;
}
.tvl-template-grid{
  display:grid;
  grid-template-columns:minmax(420px,1fr) minmax(320px,420px);
  gap:16px;
  align-items:start;
}
.tvl-template-grid__title{
  display:block;
  margin:0 0 8px;
}
.tvl-template-grid .wp-editor-wrap,
.tvl-template-grid textarea{
  width:100%;
}
.tvl-email-preview-frame{
  min-height:420px;
}
@media (max-width:1200px){
  .tvl-template-grid{grid-template-columns:1fr;}
}


/* 1.0.92 admin tidy */
.tvl-top-overview{
  display:grid;
  grid-template-columns:minmax(240px,320px) minmax(0,1fr);
  gap:18px;
  align-items:start;
  margin:0 0 16px;
}
.tvl-top-overview .tvl-export-grid{
  display:block;
  margin:0;
}
.tvl-top-overview .tvl-export-grid .tvl-card,
.tvl-top-overview .tvl-export-grid .tvl-card--compact{
  max-width:none;
}
.tvl-top-overview__meta{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.tvl-top-overview__meta .tvl-results-count{
  margin:0;
  text-align:right;
}
.tvl-summary-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(112px, 1fr));
  gap:10px;
  overflow:visible;
  padding-bottom:0;
  margin:0;
}
.tvl-summary-card{
  min-width:0;
  padding:10px 12px;
  border-radius:10px;
}
.tvl-summary-card__label{
  font-size:10px;
  letter-spacing:.04em;
}
.tvl-summary-card strong{
  font-size:17px;
}
.tvl-record-row.is-even > *{
  background:#efefef !important;
}
.tvl-record-row.is-odd > *{
  background:#ffffff !important;
}
.tvl-enquiry-notes-row.is-even td{
  background:#e7e7e7 !important;
}
.tvl-enquiry-notes-row.is-odd td{
  background:#f5f5f5 !important;
}
.tvl-actions-cell--stacked{
  min-width:180px;
}
.tvl-actions-cell--stacked .tvl-actions-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:6px;
}
.tvl-actions-cell--stacked .button,
.tvl-actions-cell--stacked .button.button-small,
.tvl-actions-cell--stacked .button-link-delete{
  display:flex !important;
  width:100% !important;
  min-height:28px;
  margin:0 !important;
  padding:3px 8px !important;
  white-space:nowrap !important;
  justify-content:center;
  line-height:1.2;
  box-sizing:border-box;
}
.tvl-actions-cell--stacked .button-link-delete{
  text-decoration:none;
}
.tvl-actions-cell--stacked .tvl-action--wide{
  grid-column:span 2;
}
@media (max-width: 1280px){
  .tvl-top-overview{
    grid-template-columns:1fr;
  }
  .tvl-top-overview__meta .tvl-results-count{
    text-align:left;
  }
  .tvl-summary-grid{
    grid-template-columns:repeat(auto-fit, minmax(112px, 1fr));
  }
}

/* 1.0.93 settings tidy */
.tvl-settings-form{
  max-width:none;
}
.tvl-settings-form .form-table{
  max-width:1400px;
}
.tvl-settings-form .form-table th{
  width:240px;
  vertical-align:top;
}
.tvl-settings-section-row th.tvl-settings-section-cell{
  padding-top:28px;
  padding-bottom:12px;
}
.tvl-settings-section-title{
  font-size:18px;
  font-weight:600;
  margin:0 0 6px;
}
.tvl-settings-section-description{
  font-size:13px;
}
.tvl-tools-row--settings{
  margin:0;
}
.tvl-template-block{
  max-width:1120px;
}
.tvl-template-block__field{
  margin:0 0 16px;
}
.tvl-template-label{
  display:block;
  font-weight:600;
  margin:0 0 8px;
}
.tvl-template-subject{
  width:100%;
  max-width:100%;
}
.tvl-template-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.tvl-template-grid__editor,
.tvl-template-grid__preview{
  min-width:0;
}
.tvl-template-grid__title{
  display:block;
  margin:0 0 10px;
  font-size:14px;
  font-weight:600;
}
.tvl-template-grid .wp-editor-wrap,
.tvl-template-grid textarea,
.tvl-template-grid iframe{
  width:100%;
}
.tvl-email-preview-frame,
.tvl-email-signature-preview-frame{
  min-height:520px;
  height:520px;
  border:1px solid #dcdcde;
  background:#fff;
  box-sizing:border-box;
}
.tvl-template-grid .wp-editor-container textarea.wp-editor-area{
  min-height:520px !important;
}
.tvl-two-col-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:24px;
  max-width:1120px;
}
.tvl-two-col-grid textarea{
  min-height:160px;
}
@media (max-width: 1200px){
  .tvl-template-grid,
  .tvl-two-col-grid{
    grid-template-columns:1fr;
  }
  .tvl-email-preview-frame,
  .tvl-email-signature-preview-frame,
  .tvl-template-grid .wp-editor-container textarea.wp-editor-area{
    min-height:420px !important;
    height:420px;
  }
}


/* 1.0.94 settings preview sizing + test sample fields */
.tvl-template-block{max-width:1200px;}
.tvl-template-grid{gap:20px;}
.tvl-template-grid__editor,
.tvl-template-grid__preview{display:flex;flex-direction:column;}
.tvl-template-grid .wp-editor-wrap{display:flex;flex-direction:column;height:340px;}
.tvl-template-grid .wp-editor-tools{flex:0 0 auto;}
.tvl-template-grid .wp-editor-container{display:flex;flex-direction:column;flex:1;min-height:0;}
.tvl-template-grid .wp-editor-container textarea.wp-editor-area,
.tvl-template-grid .wp-editor-container iframe{flex:1;min-height:0 !important;height:auto !important;}
.tvl-email-preview-frame,
.tvl-email-signature-preview-frame{min-height:500px;height:500px;}
.tvl-test-sample-heading{font-weight:600;margin:0 0 12px;}
.tvl-test-mail-form{display:none;}
.tvl-test-sample-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;max-width:980px;margin:0 0 14px;}
.tvl-test-sample-field{margin:0;}
.tvl-test-sample-field--message{grid-column:1 / -1;}
.tvl-test-sample-field input,
.tvl-test-sample-field textarea,
.tvl-test-sample-field select{width:100%;max-width:100%;}
.tvl-test-sample-field textarea{min-height:110px;}
@media (max-width: 1200px){
  .tvl-template-grid .wp-editor-wrap{height:320px;}
  .tvl-email-preview-frame,
  .tvl-email-signature-preview-frame{height:440px;min-height:440px;}
}
@media (max-width: 782px){
  .tvl-test-sample-grid{grid-template-columns:1fr;}
  .tvl-test-sample-field--message{grid-column:auto;}
}


/* 1.0.98 settings preview fixes */
.tvl-template-grid--equal{
  align-items:stretch;
}
.tvl-template-grid--equal > .tvl-template-grid__editor,
.tvl-template-grid--equal > .tvl-template-grid__preview{
  display:flex;
  flex-direction:column;
}
.tvl-template-grid--equal .wp-editor-wrap,
.tvl-template-grid--equal .tvl-email-preview-frame,
.tvl-template-grid--equal .tvl-email-signature-preview-frame{
  height:420px !important;
  min-height:420px !important;
}
.tvl-template-grid--equal .wp-editor-container,
.tvl-template-grid--equal .mce-tinymce,
.tvl-template-grid--equal .quicktags-toolbar,
.tvl-template-grid--equal .wp-editor-area{
  box-sizing:border-box;
}
.tvl-template-grid--equal .wp-editor-container textarea.wp-editor-area,
.tvl-template-grid--equal .wp-editor-container iframe,
.tvl-template-grid--equal .mce-edit-area,
.tvl-template-grid--equal .mce-edit-area iframe{
  min-height:0 !important;
  height:100% !important;
}
.tvl-email-preview-frame,
.tvl-email-signature-preview-frame{
  overflow:auto;
  padding:0;
  background:#fff;
}
.tvl-email-preview-doc{
  box-sizing:border-box;
  min-height:100%;
  padding:16px;
  color:#111;
  font-family:Helvetica,Arial,sans-serif;
  font-size:12px;
  line-height:1.5;
}
.tvl-email-message{
  font-family:Helvetica,Arial,sans-serif;
  font-size:12px;
  line-height:1.5;
  color:#111;
}
.tvl-email-message p{margin:0 0 10px;}
.tvl-email-message a{color:inherit;}


/* 1.0.100 editor height fix */
.tvl-template-grid--equal .wp-editor-wrap,
.tvl-template-grid--equal .tvl-email-preview-frame,
.tvl-template-grid--equal .tvl-email-signature-preview-frame{
  height:420px !important;
  min-height:420px !important;
}
.tvl-template-grid--equal .wp-editor-wrap,
.tvl-template-grid--equal .wp-editor-wrap.tmce-active,
.tvl-template-grid--equal .wp-editor-wrap.html-active{
  display:flex;
  flex-direction:column;
}
.tvl-template-grid--equal .wp-editor-wrap .wp-editor-tools,
.tvl-template-grid--equal .wp-editor-wrap .quicktags-toolbar,
.tvl-template-grid--equal .wp-editor-wrap .mce-toolbar-grp,
.tvl-template-grid--equal .wp-editor-wrap .mce-statusbar{
  flex:0 0 auto;
}
.tvl-template-grid--equal .wp-editor-wrap .wp-editor-container{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
}
.tvl-template-grid--equal .wp-editor-wrap .mce-tinymce,
.tvl-template-grid--equal .wp-editor-wrap .tmce-active .mce-tinymce,
.tvl-template-grid--equal .wp-editor-wrap .mce-container-body,
.tvl-template-grid--equal .wp-editor-wrap .mce-stack-layout,
.tvl-template-grid--equal .wp-editor-wrap .mce-edit-area{
  flex:1 1 auto !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
}
.tvl-template-grid--equal .wp-editor-wrap .mce-edit-area iframe,
.tvl-template-grid--equal .wp-editor-wrap iframe{
  flex:1 1 auto !important;
  height:100% !important;
  min-height:0 !important;
}
.tvl-template-grid--equal .wp-editor-wrap.html-active textarea.wp-editor-area{
  flex:1 1 auto !important;
  height:auto !important;
  min-height:0 !important;
  box-sizing:border-box;
  resize:none;
}
@media (max-width: 1200px){
  .tvl-template-grid--equal .wp-editor-wrap,
  .tvl-template-grid--equal .tvl-email-preview-frame,
  .tvl-template-grid--equal .tvl-email-signature-preview-frame{
    height:420px !important;
    min-height:420px !important;
  }
}
}


/* 1.1.4 contacts list tidy */
.wp-admin .tvl-admin-table td.tvl-compact-date-cell,
.wp-admin .tvl-admin-table th.tvl-compact-date-cell,
.tvl-compact-date-cell{white-space:nowrap;width:92px;}
.wp-admin .tvl-admin-table td:nth-child(3){white-space:nowrap;}
.wp-admin .tvl-admin-table td:nth-child(3) a{word-break:normal;overflow-wrap:anywhere;}
.wp-admin .tvl-admin-table th:nth-child(4),
.wp-admin .tvl-admin-table td:nth-child(4),
.wp-admin .tvl-admin-table th:nth-child(7),
.wp-admin .tvl-admin-table td:nth-child(7),
.wp-admin .tvl-admin-table th:nth-child(8),
.wp-admin .tvl-admin-table td:nth-child(8){width:92px;}
.wp-admin .tvl-admin-table th:nth-child(6),
.wp-admin .tvl-admin-table td:nth-child(6){width:180px;}
.wp-admin .tvl-admin-table th:nth-child(9),
.wp-admin .tvl-admin-table td:nth-child(9){width:120px;}
