/* ===========================================================================
   Free Tools Ecosystem — shared styles (gate modal, share bar, feedback bar,
   tools hub, saved results, FAQ, live counter, toast). Loaded on every free
   tool page + the tools hub. Print rules strip chrome for clean A4 output.
   =========================================================================== */

/* Gate modal ------------------------------------------------------------- */
.gate-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; align-items: center; justify-content: center; }
.gate-modal-overlay.open { display: flex; }
.gate-modal { background: #fff; border-radius: 12px; padding: 32px; max-width: 400px; width: 90%; text-align: center; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.gate-modal h3 { font-size: 18px; margin: 0 0 8px; }
.gate-modal p.gate-sub { font-size: 13px; color: #777; margin: 0 0 8px; }
.gate-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: #aaa; line-height: 1; }
.gate-social-buttons { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.gate-btn { padding: 10px 16px; border-radius: 8px; border: 1px solid #ddd; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; }
.gate-btn[disabled] { opacity: .55; cursor: not-allowed; }
.gate-wechat { background: #07C160; color: #fff; border: none; }
.gate-feishu { background: #3370FF; color: #fff; border: none; }
.gate-google { background: #fff; color: #333; }
.gate-soon { font-size: 9px; background: rgba(0,0,0,.12); padding: 1px 5px; border-radius: 4px; margin-left: 6px; }
.gate-divider { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: #aaa; font-size: 12px; }
.gate-divider::before, .gate-divider::after { content: ''; flex: 1; height: 1px; background: #eee; }
.gate-email { display: flex; gap: 8px; }
.gate-email input { flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.gate-email-btn { padding: 8px 16px; background: #1B8A5A; color: #fff; border: none; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.gate-privacy { font-size: 10px; color: #aaa; margin-top: 12px; }
.gate-sent { color: #1B8A5A; font-size: 13px; margin-top: 12px; }

/* Share bar -------------------------------------------------------------- */
.share-bar { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #f0f0f0; margin-top: 16px; flex-wrap: wrap; }
.share-label { font-size: 12px; color: #888; }
.share-buttons { display: flex; gap: 6px; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #eee; background: #fff; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.share-btn:hover { background: #f8f8f8; }

/* Feedback bar ----------------------------------------------------------- */
.feedback-bar { padding: 16px 0; border-top: 1px solid #f0f0f0; margin-top: 16px; }
.feedback-quick { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.fb-btn { background: none; border: 1px solid #eee; border-radius: 6px; padding: 4px 12px; cursor: pointer; font-size: 14px; }
.fb-btn:hover { background: #f8f8f8; }
.fb-btn-text { font-size: 12px; color: #1B8A5A; background: none; border: none; cursor: pointer; }
.feedback-form { margin-top: 12px; display: none; }
.feedback-form.open { display: block; }
.feedback-tags { display: flex; gap: 8px; margin-bottom: 8px; font-size: 11px; flex-wrap: wrap; }
.feedback-tags label { display: inline-flex; align-items: center; gap: 4px; }
.feedback-form textarea { width: 100%; min-height: 70px; border: 1px solid #ddd; border-radius: 6px; padding: 8px; font-size: 13px; box-sizing: border-box; }
.feedback-form .fb-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.feedback-thanks { color: #1B8A5A; font-size: 13px; }

/* Tools hub -------------------------------------------------------------- */
.tools-hub { max-width: 900px; margin: 0 auto; padding: 24px; }
.tools-hub h1 { font-size: 26px; margin: 0 0 6px; }
.tools-hub .lead { color: #666; font-size: 14px; margin: 0 0 8px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 24px 0; }
.tool-card { background: #fff; border: 1px solid #E8E2CE; border-radius: 10px; padding: 20px; text-decoration: none; color: #333; transition: border-color 0.2s, box-shadow 0.2s; position: relative; display: block; }
.tool-card:hover { border-color: #1B8A5A; box-shadow: 0 2px 12px rgba(27,138,90,0.1); }
.tool-card.soon { opacity: .6; pointer-events: none; }
.tool-card-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.tool-card h3 { font-size: 14px; margin: 0 0 4px; }
.tool-card p { font-size: 11px; color: #888; margin: 0; }
.tool-card-badge { position: absolute; top: 8px; right: 8px; background: #1B8A5A; color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 4px; }
.tool-card-badge.used { background: #0b7; }
.tool-card-badge.soon { background: #b0a98f; }
.tool-card-badge.new { background: #1B8A5A; }
.tool-card-badge.deadline { background: #B8860B; }
.tool-card-icon .svg-ic { width: 26px; height: 26px; color: #1B8A5A; }

/* Section labels (mirror the header mega-menu groups) -------------------- */
.tool-section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #0F6E56; margin: 22px 0 0; }
.tool-section-label + .tools-grid { margin-top: 12px; }

/* Obligation quiz CTA ---------------------------------------------------- */
.tools-quiz-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 8px 0 24px; padding: 22px 24px; border-radius: 12px; text-decoration: none; background: linear-gradient(135deg, #04342C, #0F6E56); color: #fff; }
.tools-quiz-cta:hover { box-shadow: 0 4px 18px rgba(11,59,47,.25); }
.tools-quiz-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; margin: 0 0 4px; }
.tools-quiz-title { font-size: 18px; margin: 0 0 6px; color: #fff; }
.tools-quiz-desc { font-size: 12px; line-height: 1.5; margin: 0 0 6px; max-width: 560px; opacity: .92; }
.tools-quiz-trust { font-size: 11px; margin: 0; opacity: .75; }
.tools-quiz-btn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; background: #fff; color: #04342C; font-weight: 700; font-size: 13px; padding: 10px 18px; border-radius: 8px; }
.tools-quiz-btn .svg-ic { width: 16px; height: 16px; }

/* Live counter ----------------------------------------------------------- */
.live-counter { text-align: center; font-size: 11px; color: #888; padding: 8px; }
.live-counter strong { color: #1B8A5A; }

/* Result sources --------------------------------------------------------- */
.result-sources { margin-top: 16px; padding: 12px; background: #eef6f3; border-radius: 6px; font-size: 10px; }
.verified-badge { font-size: 11px; display: block; margin-bottom: 4px; }
.source-links a { color: #1B8A5A; margin: 0 4px; }
.competitor-note { display: block; margin-top: 4px; color: #B8860B; }

/* Progress tracker ------------------------------------------------------- */
.progress-tracker { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #666; }
.progress-dots { display: flex; gap: 4px; margin: 8px 0; }
.progress-dot { font-size: 16px; filter: grayscale(1); opacity: .35; }
.progress-dot.done { filter: none; opacity: 1; }

/* FAQ -------------------------------------------------------------------- */
.tool-faq { margin-top: 24px; }
.faq-item { border-bottom: 1px solid #f0f0f0; }
.faq-question { background: none; border: none; width: 100%; text-align: left; padding: 10px 0; font-size: 13px; font-weight: 500; cursor: pointer; color: #333; display: flex; justify-content: space-between; }
.faq-question:hover { color: #1B8A5A; }
/* Answers are shown/hidden natively by the <details> element (see tools_faq()). */
.faq-answer { padding: 0 0 12px; font-size: 12px; color: #555; line-height: 1.5; }

/* Saved results ---------------------------------------------------------- */
.saved-result-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-bottom: 1px solid #f5f5f5; }
.saved-result-icon { font-size: 20px; flex-shrink: 0; }
.saved-result-content { flex: 1; }
.saved-result-content strong { font-size: 13px; display: block; }
.saved-result-summary { font-size: 11px; color: #888; }
.saved-result-date { font-size: 10px; color: #aaa; }
.saved-result-actions { display: flex; gap: 4px; }
.btn-icon { background: none; border: none; cursor: pointer; font-size: 14px; padding: 4px; }
.btn-icon.fav { color: #EF9F27; }

/* Certificate CTA -------------------------------------------------------- */
.cert-cta { margin-top: 18px; padding: 16px; border: 2px dashed #1B8A5A; border-radius: 10px; text-align: center; background: #f3faf6; }
.cert-cta a { display: inline-block; margin-top: 8px; background: #1B8A5A; color: #fff; text-decoration: none; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 14px; }

/* Toast ------------------------------------------------------------------ */
.tool-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: #04342C; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 13px; opacity: 0; transition: opacity .2s, transform .2s; z-index: 10000; pointer-events: none; }
.tool-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Animated checkmarks ---------------------------------------------------- */
.check-reveal { opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.check-reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
    .tools-grid { grid-template-columns: 1fr; }
    .gate-social-buttons { gap: 6px; }
    .share-buttons { flex-wrap: wrap; }
}

/* GPSR listing checker (lead-gen tool #1) -------------------------------- */
.gpsr-tool { max-width: 720px; margin: 0 auto; }
.tool-input-card { background: #fff; border: 1px solid #E8E2CE; border-radius: 12px; padding: 22px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.tool-input-card .form-row { margin-bottom: 14px; }
.tool-input-card label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #04342C; }
.tool-input-card input[type=text], .tool-input-card select { width: 100%; padding: 11px 12px; border: 1px solid #d7ddd9; border-radius: 8px; font-size: 15px; box-sizing: border-box; background: #fff; }
.tool-input-card input[type=text] { text-transform: uppercase; letter-spacing: .06em; }
/* Prop 65 checker — watchlist signup/edit fields follow the tool-card field system */
.p65-card .form-row { margin-bottom: 14px; }
.p65-card .form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #04342C; }
.p65-card .form-row input[type=text], .p65-card .form-row input[type=email], .p65-card .form-row select {
  width: 100%; padding: 11px 12px; border: 1px solid #d7ddd9; border-radius: 8px;
  font-size: 15px; box-sizing: border-box; background: #fff;
}
.p65-card .form-row input:focus, .p65-card .form-row select:focus {
  outline: none; border-color: #0F6E56; box-shadow: 0 0 0 3px rgba(15,110,86,.12);
}
.gpsr-error { background: #fdecea; border: 1px solid #f5c2bd; color: #8a1c10; padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-top: 16px; }
.result-card { border-radius: 12px; padding: 20px; margin-top: 16px; color: #fff; }
.result-card h3 { margin: 0 0 6px; font-size: 20px; }
.result-card p { margin: 2px 0; font-size: 13px; opacity: .96; }
.result-card .result-score { font-weight: 600; opacity: 1; margin-top: 8px; }
.result-green { background: #177a4b; }
.result-amber { background: #b7791f; }
.result-red { background: #b83227; }
.result-table { width: 100%; border-collapse: collapse; margin-top: 16px; background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; font-size: 13px; }
.result-table th, .result-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.result-table thead th { background: #f6f4ec; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #6b756f; }
.result-table td.result-icon { text-align: center; font-size: 16px; width: 56px; }
.result-table tr.status-fail td { background: #fdf3f2; }
.result-table tr.status-warn td { background: #fdf8ef; }
.result-email-capture { margin-top: 20px; padding: 18px; border: 2px dashed #1B8A5A; border-radius: 10px; background: #f3faf6; }
.result-email-capture h4 { margin: 0 0 10px; font-size: 15px; }
.result-email-capture .email-row { display: flex; gap: 8px; flex-wrap: wrap; }
.result-email-capture .email-row input[type=email] { flex: 1; min-width: 200px; padding: 10px 12px; border: 1px solid #cfd8d3; border-radius: 8px; font-size: 14px; }
.result-email-capture .gpsr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gpsr-email-msg { font-size: 13px; margin: 10px 0 0; color: #177a4b; }
.result-cta { margin-top: 22px; text-align: center; padding: 18px; background: #f6f4ec; border-radius: 10px; }
.result-cta p { margin: 0 0 10px; font-size: 14px; color: #04342C; }
.tool-trust { text-align: center; font-size: 12px; color: #7a857f; margin-top: 18px; }
.tool-trust a { color: #177a4b; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
@media (max-width: 640px) { .result-email-capture .email-row input[type=email] { min-width: 0; } }

/* EPR fee calculator (lead-gen tool #2) --------------------------------- */
.calc-card { background: #fff; border: 1px solid #E8E2CE; border-radius: 12px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.calc-card h3 { font-size: 15px; margin: 22px 0 4px; color: #04342C; }
.calc-card h3:first-child { margin-top: 0; }
.calc-card .muted { font-size: 13px; color: #7a857f; margin: 0 0 12px; }
.calc-materials { display: grid; gap: 8px; }
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc-row label { font-size: 14px; color: #04342C; flex: 1; }
.calc-row .calc-input { font-size: 13px; color: #7a857f; white-space: nowrap; }
.calc-row input[type=number], .calc-volume-row input[type=number] { width: 90px; padding: 8px 10px; border: 1px solid #d7ddd9; border-radius: 8px; font-size: 14px; text-align: right; box-sizing: border-box; }
.calc-countries-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc-select-all { background: transparent; border: 1px solid #bfe3d8; color: #177a4b; font-weight: 600; font-size: 13px; border-radius: 8px; padding: 6px 12px; cursor: pointer; transition: background .15s, border-color .15s; }
.calc-select-all:hover { background: var(--pass-bg); border-color: #34a58f; }
.calc-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 14px; margin-top: 4px; }
.calc-countries label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #04342C; cursor: pointer; }
.calc-countries input[type=checkbox] { width: 16px; height: 16px; accent-color: #177a4b; }
.calc-country-info .calc-info-badge { font-size: 11px; font-weight: 600; color: #8a6d1a; background: #fbf3d8; border: 1px solid #f0e0a8; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.calc-info-box { margin-top: 16px; padding: 16px 18px; border: 1px solid #f0e0a8; background: #fbf9ef; border-radius: 12px; }
.calc-info-box strong { display: block; font-size: 15px; color: #04342C; margin-bottom: 6px; }
.calc-info-box p { margin: 0 0 12px; font-size: 14px; color: #5a6660; line-height: 1.5; }
.calc-volume-row { font-size: 13px; color: #7a857f; }
.calc-volume-row input[type=number] { width: 120px; text-align: left; }
.calc-card .btn-block { margin-top: 22px; }
.calc-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.calc-stat { background: #04342C; color: #fff; border-radius: 10px; padding: 14px; text-align: center; }
.calc-stat span { display: block; font-size: 12px; opacity: .82; margin-bottom: 4px; }
.calc-stat strong { font-size: 18px; }
.calc-split { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 12px; }
.calc-split span { flex: 1; min-width: 200px; background: #eef6f3; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #04342C; text-align: center; }
.calc-note { font-size: 12px; color: #8a978f; margin-top: 12px; text-align: center; }
@media (max-width: 640px) {
  .calc-summary { grid-template-columns: 1fr; }
  .calc-split span { min-width: 0; }
}

/* Print: strip navigation / share / feedback / gate for clean A4 --------- */
@media print {
    .share-bar, .feedback-bar, .gate-modal-overlay, .tool-toast, .live-counter,
    .cert-cta, header, nav, footer, .no-print { display: none !important; }
    body { background: #fff !important; }
}

/* ---- Compliance Label Generator (Lead-Gen tool #3) ---- */
.label-type-selector { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.label-type-btn { padding: 9px 14px; border: 1px solid #cfd8d3; background: #fff; border-radius: 999px; font-size: 14px; font-weight: 600; color: #33413b; cursor: pointer; transition: all .15s ease; }
.label-type-btn:hover { border-color: #177a4b; }
.label-type-btn.active { background: #04342C; border-color: #04342C; color: #fff; }
.label-form h4 { margin: 4px 0 14px; font-size: 16px; color: #04342C; }
.label-form .form-row { margin-bottom: 14px; }
.label-form .form-row label { display: block; font-size: 13px; font-weight: 600; color: #4a564f; margin-bottom: 5px; }
.label-form .form-row input, .label-form .form-row select { width: 100%; padding: 10px 12px; border: 1px solid #cfd8d3; border-radius: 8px; font-size: 14px; background: #fff; box-sizing: border-box; }
.label-form .comb-check { display: block; font-size: 14px; margin-bottom: 10px; color: #33413b; }
.label-form .comb-check input { margin-right: 8px; }
#label-preview { margin-top: 24px; }
#label-preview h3 { margin-bottom: 12px; }
.label-svg-container { display: flex; justify-content: center; align-items: flex-start; padding: 24px; background: #fff; border: 1px solid #e3e9e6; border-radius: 12px; overflow: auto; }
.label-svg-container svg { max-width: 100%; height: auto; }
.label-downloads { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }

/* ── "Am I Obligated?" compliance quiz (Lead-Gen tool #4) ─────────────── */
.quiz-card { max-width: 680px; margin: 0 auto; }
.quiz-progress { height: 6px; background: #eef2f0; border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.quiz-progress-bar { height: 100%; width: 20%; background: #1B8A5A; border-radius: 6px; transition: width .3s ease; }
.quiz-step-label { font-size: 12px; color: #7a857f; margin: 0 0 16px; }
.quiz-step h3 { font-size: 17px; margin: 0 0 16px; color: #04342C; }
.quiz-options { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-options.quiz-stack { flex-direction: column; }
.quiz-opt { flex: 1 1 calc(33.333% - 10px); min-width: 140px; padding: 14px 16px; border: 1.5px solid #d6ded9; border-radius: 10px; background: #fff; font-size: 14px; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; color: #04342C; }
.quiz-options.quiz-stack .quiz-opt { flex: 1 1 100%; }
.quiz-opt:hover { border-color: #1B8A5A; }
.quiz-opt.sel { border-color: #1B8A5A; background: #eef8f2; box-shadow: 0 0 0 2px rgba(27,138,90,.15); font-weight: 600; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.quiz-nav .btn-primary { margin-left: auto; }
.quiz-inline-err { color: #b3261e; font-size: 13px; margin: 12px 0 0; }
.quiz-shake { animation: quizShake .4s; }
@keyframes quizShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.quiz-results-head { text-align: center; margin-bottom: 8px; }
.quiz-results-head h2 { font-size: 22px; margin: 0 0 6px; color: #04342C; }
.quiz-summary { font-size: 14px; color: #4a564f; margin: 0; font-weight: 600; }
.quiz-group { margin-top: 24px; }
.quiz-group h3 { font-size: 15px; margin: 0 0 10px; }
.quiz-group-critical h3 { color: #b3261e; }
.quiz-group-check h3 { color: #b8860b; }
.quiz-group-info h3 { color: #6b756f; }
.quiz-group-critical .result-table tr td { background: #fdf3f2; }
.quiz-group-check .result-table tr td { background: #fdf8ef; }
.quiz-none { text-align: center; padding: 28px 18px; background: #f3faf6; border: 1px solid #d7ece0; border-radius: 12px; margin-top: 20px; }
.quiz-none h3 { margin: 0 0 8px; color: #177a4b; }
.quiz-none p { margin: 0; font-size: 14px; color: #4a564f; }
@media (max-width: 640px) { .quiz-opt { flex: 1 1 100%; } }

/* ── EPR Deadline Calendar (Lead-Gen tool #5) ────────────────────────── */
.cal-tool { max-width: 820px; margin: 0 auto; }
.cal-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 24px 0 18px; }
.cal-filter-field select { padding: 10px 14px; border: 1.5px solid #d6ded9; border-radius: 10px; font-size: 14px; background: #fff; color: #04342C; min-width: 220px; cursor: pointer; }
.cal-download-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-timeline { display: flex; flex-direction: column; gap: 22px; }
.cal-month-h { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #6b756f; margin: 0 0 10px; border-bottom: 1px solid #e8e2ce; padding-bottom: 6px; }
.cal-month-items { display: flex; flex-direction: column; gap: 10px; }
.cal-item { display: flex; gap: 14px; background: #fff; border: 1px solid #e8e2ce; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 6px rgba(0,0,0,.03); }
.cal-date { flex: 0 0 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f3faf6; border-radius: 10px; padding: 8px 0; }
.cal-day { font-size: 22px; font-weight: 700; color: #177a4b; line-height: 1; }
.cal-mon { font-size: 11px; color: #6b756f; text-transform: uppercase; margin-top: 2px; }
.cal-body { flex: 1; min-width: 0; }
.cal-item-head { font-size: 15px; color: #04342C; }
.cal-flag { font-size: 16px; }
.cal-detail { font-size: 13px; color: #4a564f; margin: 4px 0 8px; }
.cal-reg { display: inline-block; font-size: 11px; font-weight: 600; color: #177a4b; background: #eef8f2; border-radius: 6px; padding: 3px 8px; }
.cal-empty { text-align: center; color: #7a857f; font-size: 14px; padding: 24px; }
/* Reminder modal */
.cal-modal { position: fixed; inset: 0; background: rgba(11,59,47,.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.cal-modal[hidden] { display: none; }
.cal-modal-box { position: relative; background: #fff; border-radius: 14px; padding: 26px; max-width: 440px; width: 100%; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.cal-modal-box h3 { margin: 0 0 8px; font-size: 18px; color: #04342C; }
.cal-modal-box .email-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cal-modal-box .email-row input[type=email] { flex: 1; min-width: 180px; padding: 10px 12px; border: 1px solid #cfd8d3; border-radius: 8px; font-size: 14px; }
.cal-modal-box .gpsr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cal-modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 26px; line-height: 1; color: #7a857f; cursor: pointer; }
@media (max-width: 640px) {
  .cal-filters { flex-direction: column; align-items: stretch; }
  .cal-filter-field select { width: 100%; }
  .cal-download-btns { justify-content: stretch; }
  .cal-download-btns .btn { flex: 1; text-align: center; }
}

/* ── DoC Template Generator (Lead-Gen tool #6) ───────────────────────────── */
.doc-tool { max-width: 760px; margin: 0 auto; }
.doc-form-card { background: #fff; border: 1px solid #e3e8e5; border-radius: 14px; padding: 24px; margin-top: 26px; box-shadow: 0 6px 24px rgba(11,59,47,.05); }
.doc-form-card h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: #177a4b; margin: 22px 0 12px; border-bottom: 1px solid #eef2f0; padding-bottom: 6px; }
.doc-form-card h3:first-child { margin-top: 0; }
.doc-form-card .form-row { margin-bottom: 12px; }
.doc-form-card .form-row label { display: block; font-size: 13px; font-weight: 600; color: #3a4742; margin-bottom: 4px; }
.doc-form-card .form-row input, .doc-form-card .form-row select { width: 100%; padding: 10px 12px; border: 1px solid #cfd8d3; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.doc-material-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.doc-material-row select { flex: 2; min-width: 0; padding: 9px 10px; border: 1px solid #cfd8d3; border-radius: 8px; font-size: 14px; }
.doc-material-row input { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid #cfd8d3; border-radius: 8px; font-size: 14px; }
.doc-mat-remove { flex: 0 0 auto; background: #f4f1ea; border: 1px solid #e0dccf; border-radius: 8px; width: 34px; height: 34px; font-size: 18px; line-height: 1; color: #7a857f; cursor: pointer; }
.doc-mat-remove:hover { background: #efe9db; color: #b04242; }
.btn-block { display: block; width: 100%; }
.btn-sm { font-size: 13px; padding: 6px 12px; }
.btn-link { background: none; border: none; color: #177a4b; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.doc-form-msg { font-size: 13px; margin: 12px 0 0; color: #b04242; min-height: 18px; }
.doc-generate, #doc-generate { margin-top: 20px; }
.doc-preview { margin-top: 26px; }
.doc-preview-h { font-size: 16px; color: #04342C; margin: 0 0 12px; }
.doc-preview-frame { border: 1px solid #dfe6e2; border-radius: 12px; overflow: hidden; background: #fafbfa; }
.doc-preview-frame iframe { width: 100%; height: 620px; border: 0; background: #fff; }
.doc-preview-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.cal-modal-box .email-row input[type=text] { flex: 1; min-width: 180px; padding: 10px 12px; border: 1px solid #cfd8d3; border-radius: 8px; font-size: 14px; }
@media (max-width: 640px) {
  .doc-material-row { flex-wrap: wrap; }
  .doc-material-row select { flex: 1 1 100%; }
  .doc-material-row input { flex: 1 1 40%; }
  .doc-preview-frame iframe { height: 480px; }
  .doc-preview-actions .btn { width: 100%; text-align: center; }
}

/* ── HS Code → Regulation Checker (Lead-Gen tool #7) ── */
.hs-tool { max-width: 760px; margin: 0 auto; }
.hs-input-card { margin: 24px 0 8px; padding: 22px; border: 1px solid #e2e8e4; border-radius: 14px; background: #fff; box-shadow: 0 8px 30px rgba(11,59,47,.06); }
.hs-input-card .form-row { margin: 0 0 14px; }
.hs-input-card label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.hs-input-card input[type=text] { width: 100%; padding: 13px 14px; border: 1px solid #cfd8d3; border-radius: 10px; font-size: 17px; letter-spacing: .5px; }
.hs-input-card .muted { font-size: 12px; color: #7a857f; margin: 6px 0 0; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.hs-form-msg { min-height: 18px; margin: 10px 0 0; font-size: 13px; color: #b45309; text-align: center; }

.hs-results { margin: 22px 0; }
.hs-result-card { border: 1px solid #e2e8e4; border-radius: 14px; background: #fff; padding: 22px; box-shadow: 0 8px 30px rgba(11,59,47,.06); }
.hs-result-head { margin-bottom: 14px; }
.hs-result-head h3 { margin: 10px 0 4px; font-size: 19px; }
.hs-result-head .muted { font-size: 13px; color: #55605a; }
.tool-badge { display: inline-block; background: #04342C; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; letter-spacing: .5px; }
.hs-eco-note { background: #fff6e5; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 0 0 14px; }

.result-table-wrap { overflow-x: auto; }
.result-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.result-table th, .result-table td { padding: 10px; border: 1px solid #e6ece9; text-align: left; vertical-align: top; }
.result-table thead th { background: #f0ede4; font-weight: 700; }
.result-table .reg-name { font-weight: 600; white-space: nowrap; }
.result-table .reg-detail { font-size: 13px; color: #44514b; }
.status-pass { color: #0f7a44; font-weight: 700; white-space: nowrap; }
.status-warn { color: #b45309; font-weight: 700; white-space: nowrap; }
.status-na { color: #8a978f; font-weight: 600; white-space: nowrap; }

.result-email-capture .hs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hs-email-msg { min-height: 18px; margin: 8px 0 0; font-size: 13px; color: #0f7a44; }
.result-cta { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef2f0; text-align: center; }
.result-cta p { font-size: 13px; color: #44514b; margin: 0 0 10px; }

.hs-examples { margin: 26px 0 6px; }
.hs-examples h4 { font-size: 14px; margin: 0 0 12px; color: #44514b; }
.hs-examples-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.hs-example { text-align: left; padding: 10px 12px; border: 1px solid #dde5e1; border-radius: 9px; background: #fbfcfb; font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.hs-example:hover { border-color: #1B8A5A; background: #f3faf6; }

@media (max-width: 640px) {
  .hs-examples-grid { grid-template-columns: 1fr; }
  .result-table { font-size: 13px; }
  .result-table th, .result-table td { padding: 8px; }
}

/* ===========================================================================
   ASIN Compliance Checker (Lead-Gen tool #8, public/asin-checker.php).
   Uses the shared landing.css design tokens so it inherits the site palette.
   =========================================================================== */
.asin-tool { max-width: 780px; margin: 0 auto; }
.asin-input-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin: 24px 0; box-shadow: 0 6px 24px rgba(11,59,47,.06); }
.asin-input-wrap { display: flex; gap: 10px; }
.asin-input-wrap input { flex: 1; padding: 13px 15px; border: 1px solid var(--input); border-radius: 10px; font-size: 15px; font-family: inherit; }
.asin-input-wrap input:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px rgba(29,158,117,.15); }
.asin-btn { white-space: nowrap; }
.asin-hint { font-size: 12px; margin: 8px 2px 0; }

.manual-section { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.manual-toggle { background: none; border: none; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 0; font-family: inherit; }
.manual-panel { margin-top: 12px; }
.manual-panel[hidden] { display: none; }
.manual-group { margin-bottom: 16px; }
.manual-label { display: block; font-size: 13px; font-weight: 600; color: var(--foreground); margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; cursor: pointer; background: var(--card); transition: border-color .15s, background .15s; }
.pick-chip:hover { border-color: var(--accent); }
.pick-chip input { accent-color: var(--accent); cursor: pointer; }
.manual-submit { margin-top: 4px; }

.asin-notice { background: var(--warn-bg); color: var(--warn); border: 1px solid #f5d98a; border-radius: 10px; padding: 14px 16px; font-size: 14px; margin: 4px 0 20px; }
.asin-error { background: var(--fail-bg); color: var(--fail); border: 1px solid #f4bcbc; border-radius: 10px; padding: 14px 16px; font-size: 14px; margin: 4px 0 20px; }
.asin-cache-note { background: var(--muted, #f4f6f8); color: var(--muted-foreground, #556); border-color: #dfe4ea; }
.asin-warn-note { background: var(--warn-bg); color: var(--warn); border: 1px solid #f5d98a; }
.asin-gate { background: var(--card, #fff); border: 1px solid var(--border, #e3e8ee); border-radius: 14px; padding: 26px 24px; text-align: center; margin: 8px 0 22px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.asin-gate h3 { margin: 0 0 8px; font-size: 18px; }
.asin-gate p { margin: 0 0 16px; font-size: 14px; color: var(--muted-foreground, #556); }
.asin-gate-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.asin-gate-form input[type="email"] { flex: 1 1 220px; min-width: 0; padding: 11px 14px; border: 1px solid var(--border, #d5dbe2); border-radius: 10px; font-size: 15px; }
.asin-gate .cta-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.asin-gate .asin-topup-form { display: inline; }
.asin-gate-msg { margin: 12px 0 0; font-size: 14px; }

.asin-results { margin-top: 8px; }
.asin-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; }
.asin-card-h { font-size: 15px; margin: 0 0 14px; color: var(--foreground); }
.product-card { display: flex; gap: 18px; align-items: flex-start; }
.product-img { width: 84px; height: 84px; object-fit: contain; border: 1px solid var(--border); border-radius: 10px; background: #fff; flex-shrink: 0; }
.product-title { font-size: 16px; margin: 0 0 8px; line-height: 1.35; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted-foreground); }
.product-meta strong { color: var(--foreground); font-weight: 600; }

.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mp-chip { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; background: var(--background); }
.mp-chip.mp-tracked { border-color: #bfe3d8; background: var(--pass-bg); }
.mp-flag { font-size: 18px; }
.mp-domain { font-weight: 600; color: var(--foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-name { font-weight: 600; color: var(--foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-price { margin-left: auto; color: var(--muted-foreground); font-size: 12px; font-weight: 600; }
.mp-note { font-size: 12px; margin: 12px 2px 0; }
/* Clickable marketplace chips (open the live Amazon listing). */
a.mp-chip.mp-link { text-decoration: none; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .05s; }
a.mp-chip.mp-link:hover { border-color: #34a58f; box-shadow: 0 2px 8px rgba(20,110,90,.15); }
a.mp-chip.mp-link:active { transform: translateY(1px); }
a.mp-chip.mp-link .mp-go { color: #2f9e86; font-size: 13px; margin-left: 6px; }
a.mp-chip.mp-link .mp-price { margin-left: auto; }

.gaps-summary { border-radius: 12px; padding: 16px 20px; margin-bottom: 18px; text-align: center; }
.gaps-summary h3 { margin: 0; font-size: 16px; }
.gaps-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #f5d98a; }
.gaps-ok { background: var(--pass-bg); color: var(--pass); border: 1px solid #bfe3d8; }

.flag-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.flag-item:last-child { border-bottom: none; }
.flag-label { flex: 1; }
.flag-badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.flag-badge.sev-required { background: var(--fail-bg); color: var(--fail); }
.flag-badge.sev-conditional { background: var(--warn-bg); color: var(--warn); }
.flag-badge.sev-recommended, .flag-badge.sev-info { background: var(--secondary); color: var(--secondary-foreground); }

.cost-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; text-align: center; }
.cost-card h3 { font-size: 15px; margin: 0 0 12px; }
.cost-range { position: relative; display: inline-flex; align-items: baseline; justify-content: center; gap: 10px; font-size: 26px; font-weight: 700; color: var(--foreground); }
.cost-sep { color: var(--muted-foreground); font-weight: 400; }
.cost-period { position: absolute; left: 100%; bottom: 0; margin-left: 8px; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--muted-foreground); }
.cost-card .cost-note { font-size: 12px; margin: 12px auto 0; max-width: 460px; }

.asin-cta { background: var(--primary); color: var(--primary-foreground); border-radius: 14px; padding: 26px 24px; text-align: center; margin: 22px 0; }
.asin-cta h3 { margin: 0 0 8px; font-size: 18px; color: var(--primary-foreground); }
.asin-cta p { margin: 0 0 16px; font-size: 14px; opacity: .9; }
.cta-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mkt .asin-cta a.btn-primary { background: #fff; color: var(--primary); border-color: #fff; }
.mkt .asin-cta a.btn-primary:hover { background: rgba(255,255,255,.9); }
.mkt .asin-cta a.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.mkt .asin-cta a.btn-outline:hover { background: rgba(255,255,255,.14); }

.check-another { text-align: center; margin: 22px 0; }
.check-another p { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.asin-form-small { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.asin-form-small input { flex: 1; padding: 10px 13px; border: 1px solid var(--input); border-radius: 9px; font-size: 14px; font-family: inherit; }

.asin-seo { margin: 40px 0; }
.asin-seo h2, .asin-faq h2 { font-size: 20px; margin: 0 0 18px; text-align: center; }
.seo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.seo-item { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; background: var(--card); }
.seo-item h3 { font-size: 14px; margin: 0 0 8px; }
.seo-item p { font-size: 13px; color: var(--muted-foreground); margin: 0; line-height: 1.5; }

.asin-faq { margin: 40px 0; }
.asin-faq details { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; background: var(--card); }
.asin-faq summary { font-size: 14px; font-weight: 600; cursor: pointer; }
.asin-faq details p { font-size: 13px; color: var(--muted-foreground); margin: 10px 0 0; line-height: 1.55; }

.related-tools { margin: 40px 0; text-align: center; }
.related-tools h3 { font-size: 16px; margin: 0 0 16px; }
.related-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.related-grid a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--foreground); background: var(--card); transition: border-color .15s; }
.related-grid a:hover { border-color: var(--accent); }
.tool-trust { text-align: center; font-size: 13px; color: var(--muted-foreground); margin: 24px 0; }

@media (max-width: 640px) {
  .asin-input-wrap { flex-direction: column; }
  .asin-btn { width: 100%; }
  .product-card { flex-direction: column; }
  .cost-range { display: flex; flex-wrap: wrap; font-size: 22px; }
  .cost-period { position: static; left: auto; bottom: auto; margin-left: 0; flex-basis: 100%; }
}

/* ── Recyclability Checker (.rc-*) ──────────────────────────────────────────── */
.rc-tool { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 768px) { .rc-tool { grid-template-columns: 1fr; } }

.rc-preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.rc-preset-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--card); cursor: pointer; text-align: center; transition: border-color .15s, box-shadow .15s; }
.rc-preset-btn:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.rc-preset-btn.active { border-color: var(--accent); background: rgba(27,138,90,.06); }
.rc-preset-icon { font-size: 22px; line-height: 1; }
.rc-preset-label { font-size: 12px; font-weight: 600; color: var(--foreground); line-height: 1.3; }
.rc-preset-desc { font-size: 10px; color: var(--muted-foreground); line-height: 1.3; }

.rc-mat-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.rc-mat-select { flex: 1; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: #fff; }
.rc-mat-remove { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; cursor: pointer; color: var(--muted-foreground); font-size: 16px; line-height: 1; flex-shrink: 0; }
.rc-mat-remove:hover { border-color: var(--fail); color: var(--fail); }
.rc-separable-label { padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--muted); }

.rc-grade-tile { border-radius: 16px; padding: 28px 24px; text-align: center; margin-bottom: 18px; }
.rc-grade-letter { font-size: 64px; font-weight: 900; line-height: 1; }
.rc-grade-label { font-size: 15px; font-weight: 600; margin-top: 6px; }
.rc-grade-score { font-size: 12px; color: var(--muted-foreground); margin-top: 4px; }

.rc-gate-teaser { background: var(--muted); border: 1px dashed var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.rc-gate-teaser p { font-size: 14px; color: var(--muted-foreground); margin: 0 0 12px; }

.rc-ecofee-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.rc-timeline { }
.rc-timeline-strip { display: flex; gap: 0; overflow-x: auto; padding-bottom: 4px; }
.rc-timeline-item { flex: 1; min-width: 80px; text-align: center; padding: 8px 4px; position: relative; }
.rc-timeline-item::before { content: ''; position: absolute; top: 16px; left: 0; right: 0; height: 2px; background: var(--border); }
.rc-timeline-item:first-child::before { left: 50%; }
.rc-timeline-item:last-child::before { right: 50%; }
.rc-timeline-year { font-size: 13px; font-weight: 700; color: var(--accent); position: relative; z-index: 1; background: var(--background); display: inline-block; padding: 0 4px; }
.rc-timeline-label { font-size: 10px; color: var(--muted-foreground); margin-top: 4px; line-height: 1.3; }
.rc-disclaimer { font-size: 11px; color: var(--muted-foreground); margin-top: 16px; line-height: 1.5; border-top: 1px solid var(--border); padding-top: 12px; }
.rc-seo-details summary { user-select: none; }

/* ── EPR Number Validator (.nv-*) ────────────────────────────────────────────── */
.nv-tool { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 768px) { .nv-tool { grid-template-columns: 1fr; } }

.nv-input-card { }
.nv-result-section { }
.nv-result-card { border-radius: 14px; padding: 20px 22px; }
.nv-valid { background: var(--pass-bg); border: 2px solid var(--pass); }
.nv-invalid { background: var(--fail-bg); border: 2px solid var(--fail); }
.nv-result-status { font-size: 20px; font-weight: 700; }
.nv-result-number { font-size: 14px; font-family: monospace; margin-top: 6px; color: var(--muted-foreground); word-break: break-all; }
.nv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.nv-chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.nv-chip-country { background: var(--secondary); color: var(--secondary-foreground); }
.nv-chip-scheme { background: var(--accent); color: #fff; }
.nv-chip-stream { background: var(--muted); color: var(--muted-foreground); border: 1px solid var(--border); }
.nv-hint { margin-top: 12px; font-size: 13px; color: var(--muted-foreground); background: var(--muted); padding: 10px 12px; border-radius: 8px; }
.nv-limit-note { }

/* ── Packaging Weight Assistant (.wa-*) ──────────────────────────────────────── */
.wa-tool { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .wa-tool { grid-template-columns: 1fr; } }

.wa-preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.wa-preset-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--card); cursor: pointer; text-align: center; transition: border-color .15s; }
.wa-preset-card:hover { border-color: var(--accent); }
.wa-preset-icon { font-size: 20px; }
.wa-preset-label { font-size: 11px; font-weight: 600; color: var(--foreground); line-height: 1.3; }
.wa-preset-dims { font-size: 10px; color: var(--muted-foreground); }

.wa-qty-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.wa-qty-ctrl { display: flex; align-items: center; gap: 6px; }
.wa-qty-btn { width: 32px; height: 32px; border: 1.5px solid var(--border); border-radius: 6px; background: var(--card); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--foreground); }
.wa-qty-btn:hover { border-color: var(--accent); }

.wa-item { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.wa-item-header { display: flex; align-items: center; gap: 8px; }
.wa-item-label { font-size: 13px; font-weight: 600; color: var(--foreground); }

.wa-chart { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; min-height: 60px; }
.wa-bar-row { display: grid; grid-template-columns: 140px 1fr 70px; gap: 8px; align-items: center; font-size: 12px; }
@media (max-width: 480px) { .wa-bar-row { grid-template-columns: 90px 1fr 60px; } }
.wa-bar-label { color: var(--foreground); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-bar-wrap { background: var(--muted); border-radius: 999px; height: 10px; overflow: hidden; }
.wa-bar-fill { height: 100%; border-radius: 999px; transition: width .4s ease; }
.wa-bar-val { font-size: 11px; color: var(--muted-foreground); text-align: right; white-space: nowrap; }

.wa-grand-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--primary); color: var(--primary-foreground); border-radius: 10px; margin-top: 10px; font-weight: 700; }
.wa-export-row { }

/* Shared tool-input card wrapper ─────────────────────────────────────────── */
.tool-input-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; }

/* ── Weight Assistant material color tokens (semantic CSS vars, no hex in JS) ── */
:root {
  --wa-mat-paper:     #a16207;
  --wa-mat-pe-ld:     #0284c7;
  --wa-mat-pe-hd:     #0369a1;
  --wa-mat-pp:        #7c3aed;
  --wa-mat-pet:       #059669;
  --wa-mat-glass:     #0891b2;
  --wa-mat-steel:     #6b7280;
  --wa-mat-aluminium: #9ca3af;
  --wa-mat-composite: #b45309;
}

/* ── Sample library (Batch 1, F4) ─────────────────────────────────────────── */
.sample-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 28px 0 8px; }
.sample-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2ece8; border-radius: 14px; padding: 20px; box-shadow: 0 4px 16px rgba(11,59,47,.05); }
.sample-card-body { flex: 1; }
.sample-card h3 { margin: 0 0 8px; font-size: 16px; color: #04342C; }
.sample-card .muted { color: #5f7168; font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; }
.sample-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.sample-fmt { font-size: 11.5px; font-weight: 600; color: #1D9E75; background: #eef6f3; padding: 3px 9px; border-radius: 999px; }
.sample-wm { font-size: 11.5px; font-weight: 600; color: #9a6a12; background: #fbf1dc; padding: 3px 9px; border-radius: 999px; }
.sample-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sample-links[hidden] { display: none; }

/* ---------- Plan-fit close (shared: quiz, calculator, ASIN, GPSR, weights) ---------- */
.plan-fit { margin-top: 24px; padding: 20px; border: 1px solid #d8e2dc; border-radius: 12px; background: #fbfdfb; }
.plan-fit .pf-h { margin: 0 0 4px; font-size: 18px; color: #04342C; }
.plan-fit .pf-p { margin: 0 0 14px; font-size: 13.5px; color: #5b6b64; }
.plan-fit .pf-q { margin-bottom: 12px; }
.plan-fit .pf-q label { display: block; font-size: 13px; font-weight: 600; color: #04342C; margin-bottom: 6px; }
.pf-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-chip { padding: 7px 16px; border: 1px solid #cfd8d3; border-radius: 999px; background: #fff; font-size: 13.5px; cursor: pointer; color: #04342C; }
.pf-chip:hover { border-color: #1B8A5A; }
.pf-chip.on { background: #1B8A5A; border-color: #1B8A5A; color: #fff; font-weight: 600; }
.pf-card { margin-top: 14px; padding: 16px 18px; border: 2px solid #1B8A5A; border-radius: 10px; background: #f3faf6; }
.pf-card.pf-loading { text-align: center; color: #5b6b64; }
.pf-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #5b6b64; margin-right: 6px; }
.pf-tag-fit { color: #1B8A5A; }
.pf-have { font-size: 13px; color: #04342C; margin-bottom: 10px; }
.pf-fit { font-size: 15px; color: #04342C; }
.pf-plan { font-size: 17px; }
.pf-price { font-weight: 700; }
.pf-price-alt { font-size: 12.5px; color: #5b6b64; }
/* Tier-style price flow: struck monthly · large effective €/mo · billed-annually total */
.pf-pricebox { margin: 6px 0 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pf-price-strike { color: #8a978f; text-decoration: line-through; font-size: 15px; }
.pf-price-big { font-size: 32px; font-weight: 800; color: #04342C; letter-spacing: -0.5px; }
.pf-price-per { font-size: 14px; color: #5b6b64; }
.pf-billed { margin-top: 2px; font-size: 13px; font-weight: 600; color: #0E7A5F; }
.pf-lim { font-size: 13px; color: #04342C; margin-top: 6px; }
.pf-next { font-size: 12.5px; color: #5b6b64; margin-top: 4px; }
.pf-cta { display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; text-align: center; }
.pf-note { font-size: 12px; color: #5b6b64; margin-top: 8px; }
@media (max-width: 640px) { .pf-chip { padding: 7px 12px; } }
