/*!
 * LegalRetain widget styles
 * Every rule is scoped under .lr-wrap (the shortcode's outer element) so the
 * widgets' own styles outrank typical theme rules such as ".post-content p".
 * Resets use :where() and therefore never outrank the widgets' own rules.
 * Layout adapts to the width the widget is GIVEN (container queries), so it
 * works in sidebars and narrow columns, not just on narrow screens.
 */

.lr-wrap { container-type: inline-size; container-name: legalretain; margin: 24px 0; }

/* ---- Isolation from theme styles (zero-specificity resets) ---- */
.lr-wrap :where(.bac-sim, .license-calc, .ted-tool, .lr-tool) { box-sizing: border-box; line-height: 1.5; text-align: left; }
.lr-wrap :where(.bac-sim, .license-calc, .ted-tool, .lr-tool) :where(*, *::before, *::after) { box-sizing: border-box; }
.lr-wrap :where(button) { text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0; margin: 0; line-height: 1.2; }
.lr-wrap :where(a) { text-decoration: none; box-shadow: none; }
.lr-wrap :where(p) { margin-top: 0; padding: 0; }
.lr-wrap :where(h3) { font-family: inherit; line-height: 1.3; padding: 0; }
.lr-wrap :where(input, select) { font-family: inherit; }

/* ---- Icons (inline SVG or Font Awesome) ---- */
.lr-wrap .lr-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; flex: 0 0 auto; }

/* ---- Admin-only setup warning ---- */
.lr-wrap .lr-setup-warning { margin: 0 0 10px; padding: 10px 14px; border-left: 4px solid #d63638; background: #fcf0f1; color: #1d2327; font-size: 13px; line-height: 1.5; border-radius: 4px; }

.lr-wrap .ted-tool {
    background: #0d0f11;
    border: 1px solid #1a1d21;
    border-radius: var(--lr-radius, 8px);
    margin: 24px 0;
    overflow: hidden;
    font-family: inherit;
}
.lr-wrap .bac-sim {
    background: #fff;
    border-radius: var(--lr-radius, 12px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
    padding: 32px 28px 28px;
    margin: 24px 0;
    font-family: inherit;
    color: #1a1a1a;
}
.lr-wrap .bac-sim-header {
    text-align: center;
    margin-bottom: 28px;
}
.lr-wrap .bac-sim-header h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 8px;
}
.lr-wrap .bac-sim-header p {
    font-size: 13px;
    color: #777;
    margin: 0;
    line-height: 1.5;
}
.lr-wrap .bac-display {
    text-align: center;
    margin-bottom: 8px;
}
.lr-wrap .bac-display-val {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #2e7d32;
    transition: color 0.3s;
}
.lr-wrap .bac-display-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-top: 2px;
}
.lr-wrap .bac-heatbar {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #4caf50 0%, #4caf50 32%, #ff9800 44%, #f44336 60%, #b71c1c 100%);
    margin-bottom: 4px;
    position: relative;
}
.lr-wrap .bac-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 28px;
    background: transparent;
    margin: 0;
    cursor: pointer;
    position: relative;
}
.lr-wrap .bac-range::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
}
.lr-wrap .bac-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #1a73e8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    margin-top: -10px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.lr-wrap .bac-range::-webkit-slider-thumb:hover {
    box-shadow: 0 2px 12px rgba(26,115,232,0.35);
}
.lr-wrap .bac-range::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    border: none;
}
.lr-wrap .bac-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #1a73e8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.lr-wrap .bac-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #aaa;
    letter-spacing: 0.5px;
    margin-top: 2px;
    padding: 0 2px;
}
.lr-wrap .bac-labels span:nth-child(2) {
    color: #e65100;
    font-weight: 600;
}
.lr-wrap .bac-refusal {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 26px;
    padding: 14px 18px;
    background: #f7f8fa;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}
.lr-wrap .bac-refusal-label {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}
.lr-wrap .bac-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.lr-wrap .bac-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.lr-wrap .bac-toggle-track {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.25s;
}
.lr-wrap .bac-toggle-track::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.lr-wrap .bac-toggle input:checked + .bac-toggle-track {
    background: #e53935;
}
.lr-wrap .bac-toggle input:checked + .bac-toggle-track::after {
    transform: translateX(20px);
}
.lr-wrap .bac-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.lr-wrap .bac-card {
    background: #f7f8fa;
    border-radius: calc(var(--lr-radius, 12px) * 0.8);
    padding: 18px 16px;
    border: 1px solid #eee;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.lr-wrap .bac-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.lr-wrap .bac-card-icon {
    font-size: 20px;
    margin-bottom: 8px;
}
.lr-wrap .bac-card--license .bac-card-icon { color: #1565c0; }
.lr-wrap .bac-card--jail .bac-card-icon { color: #e65100; }
.lr-wrap .bac-card--defense .bac-card-icon { color: #2e7d32; }
.lr-wrap .bac-card-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 8px;
}
.lr-wrap .bac-card-body {
    font-size: 14px;
    line-height: 1.55;
    color: #333;
    font-weight: 500;
    min-height: 48px;
}
.lr-wrap .bac-card--active {
    border-color: #c8e6c9;
}
.lr-wrap .bac-card--warn {
    border-color: #ffe0b2;
}
.lr-wrap .bac-card--danger {
    border-color: #ffcdd2;
}
.lr-wrap .bac-sim-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
    color: #bbb;
    letter-spacing: 0.3px;
}
.lr-wrap .ted-title-bar {
    background: linear-gradient(135deg, #141720 0%, #1a1f2a 100%);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #1a1d21;
}
.lr-wrap .ted-title-bar .lr-icon {
    color: #FF5722;
    font-size: 16px;
}
.lr-wrap .ted-title-bar span {
    color: #ccbd99;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.lr-wrap .ted-document {
    padding: 0;
}
.lr-wrap .ted-doc-header {
    background: #111418;
    padding: 18px 20px;
    border-bottom: 1px solid #1a1d21;
}
.lr-wrap .ted-doc-header h3 {
    margin: 0;
    color: #8a8f98;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.lr-wrap .ted-doc-intro {
    margin: 12px 0 0;
    color: #bbb;
    font-size: 14px;
    line-height: 1.6;
}
.lr-wrap .ted-doc-intro strong {
    color: #fff;
}
.lr-wrap .ted-doc-howto {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    color: #ccbd99;
    font-size: 12px;
    font-weight: 600;
}
.lr-wrap .ted-doc-howto .lr-icon {
    font-size: 14px;
}
.lr-wrap .ted-line {
    border-bottom: 1px solid #151820;
    cursor: pointer;
    transition: all 0.3s ease;
}
.lr-wrap .ted-line:last-child {
    border-bottom: none;
}
.lr-wrap .ted-line-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    transition: all 0.3s ease;
}
.lr-wrap .ted-line:hover .ted-line-header {
    background: rgba(255, 87, 34, 0.04);
    box-shadow: inset 0 0 30px rgba(255, 87, 34, 0.03);
}
.lr-wrap .ted-line-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lr-wrap .ted-line-num {
    color: #333;
    font-size: 9px;
    font-family: 'Courier New', monospace;
    min-width: 24px;
}
.lr-wrap .ted-line-label {
    color: #FF5722;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 87, 34, 0.08);
    padding: 2px 8px;
    border-radius: 3px;
}
.lr-wrap .ted-line-text {
    color: #bbb;
    font-size: 13px;
    line-height: 1.4;
}
.lr-wrap .ted-line:hover .ted-line-text {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 87, 34, 0.3);
}
.lr-wrap .ted-line-badge {
    color: #444;
    font-size: 10px;
    transition: all 0.3s ease;
}
.lr-wrap .ted-line:hover .ted-line-badge {
    color: #FF5722;
}
.lr-wrap .ted-line-badge .lr-icon {
    transition: transform 0.3s ease;
}
.lr-wrap .ted-line.active .ted-line-badge .lr-icon {
    transform: rotate(180deg);
}
.lr-wrap .ted-unfold {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.lr-wrap .ted-line.active .ted-unfold {
    max-height: 500px;
}
.lr-wrap .ted-unfold-inner {
    padding: 0 20px 18px 56px;
}
.lr-wrap .ted-unfold-defense {
    background: rgba(204, 189, 153, 0.06);
    border-left: 3px solid #ccbd99;
    padding: 14px 16px;
    border-radius: 0 6px 6px 0;
}
.lr-wrap .ted-unfold-label {
    color: #ccbd99;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}
.lr-wrap .ted-unfold-label .lr-icon {
    margin-right: 4px;
}
.lr-wrap .ted-unfold-defense p {
    margin: 0;
    color: #ddd;
    font-size: 13px;
    line-height: 1.6;
}
.lr-wrap .ted-card-flip {
    perspective: 800px;
    height: 140px;
    margin: 0 20px 18px 56px;
}
.lr-wrap .ted-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.lr-wrap .ted-line.active .ted-card-inner {
    transform: rotateY(180deg);
}
.lr-wrap .ted-card-front,
.lr-wrap .ted-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 6px;
    padding: 14px 16px;
    box-sizing: border-box;
}
.lr-wrap .ted-card-front {
    background: #1a1517;
    border: 1px solid #2a2025;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.lr-wrap .ted-card-back {
    background: rgba(204, 189, 153, 0.06);
    border: 1px solid rgba(204, 189, 153, 0.15);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.lr-wrap .ted-card-front .ted-unfold-label {
    color: #FF5722;
}
.lr-wrap .ted-card-front p {
    margin: 4px 0 0;
    color: #999;
    font-size: 13px;
    font-style: italic;
    line-height: 1.5;
}
.lr-wrap .ted-card-back .ted-unfold-label {
    color: #ccbd99;
}
.lr-wrap .ted-card-back p {
    margin: 4px 0 0;
    color: #ddd;
    font-size: 13px;
    line-height: 1.5;
}
.lr-wrap .ted-steps {
    padding: 0 20px 18px 56px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.lr-wrap .ted-line.active .ted-steps {
    max-height: 600px;
}
.lr-wrap .ted-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.lr-wrap .ted-step:hover {
    background: rgba(255, 87, 34, 0.04);
}
.lr-wrap .ted-step-check {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s ease;
    font-size: 11px;
    color: transparent;
}
.lr-wrap .ted-step.checked .ted-step-check {
    border-color: #FF5722;
    background: rgba(255, 87, 34, 0.15);
    color: #FF5722;
}
.lr-wrap .ted-step-content {
    flex: 1;
}
.lr-wrap .ted-step-title {
    color: #bbb;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}
.lr-wrap .ted-step.checked .ted-step-title {
    color: #FF5722;
}
.lr-wrap .ted-step-desc {
    color: #666;
    font-size: 11px;
    line-height: 1.4;
}
.lr-wrap .ted-step-miss {
    display: none;
    color: #ccbd99;
    font-size: 11px;
    margin-top: 4px;
    font-style: italic;
}
.lr-wrap .ted-step.checked .ted-step-miss {
    display: block;
}
.lr-wrap .license-calc {
  background: linear-gradient(135deg, #232629 0%, #2d3034 100%);
  border-radius: var(--lr-radius, 10px);
  padding: 28px 24px;
  margin: 28px 0;
  color: #fff;
  box-shadow: 0 4px 22px rgba(0,0,0,0.18);
}
.lr-wrap .license-calc-header h3 {
  color: #fff;
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}
.lr-wrap .license-calc-header p {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  margin: 0 0 22px;
  line-height: 1.5;
}
.lr-wrap .license-calc-input {
  margin-bottom: 20px;
}
.lr-wrap .license-calc-input label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lr-wrap .license-calc-input input[type="date"] {
  width: 100%;
  max-width: 240px;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  font-family: inherit;
}
.lr-wrap .license-calc-input input[type="date"]:focus {
  outline: 2px solid var(--lr-accent, #d24e04);
  outline-offset: 2px;
}
.lr-wrap .license-calc-results {
  background: rgba(0,0,0,0.22);
  border-radius: calc(var(--lr-radius, 12px) * 0.66);
  padding: 4px 18px;
  margin-bottom: 18px;
}
.lr-wrap .license-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 15px;
}
.lr-wrap .license-calc-row:last-child { border-bottom: none; }
.lr-wrap .license-calc-row > span:first-child {
  color: rgba(255,255,255,0.78);
}
.lr-wrap .license-calc-row > span:last-child {
  font-weight: 700;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.lr-wrap .license-calc-row--success > span:last-child { color: #6ed28a; }
.lr-wrap .license-calc-row--warning > span:last-child { color: #ffb04a; }
.lr-wrap .license-calc-row--danger > span:last-child { color: #ff6b6b; }
.lr-wrap .license-calc-row--days > span:last-child {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.lr-wrap .license-calc-warning {
  background: rgba(255,176,74,0.12);
  border-left: 3px solid #ffb04a;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  color: #ffd9a0;
  line-height: 1.5;
  margin-bottom: 18px;
}
.lr-wrap .license-calc-warning[hidden] { display: none; }
.lr-wrap .license-calc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lr-accent, #d24e04);
  color: var(--lr-accent-text, #fff) !important;
  padding: 13px 24px;
  border-radius: calc(var(--lr-radius, 12px) / 2);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.18s ease, transform 0.18s ease;
}
.lr-wrap .license-calc-cta:hover,
.lr-wrap .license-calc-cta:focus {
  background: var(--lr-accent-hover, #fe5252);
  color: var(--lr-accent-text, #fff) !important;
  transform: translateY(-1px);
}
.lr-wrap .license-calc-footer {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 14px;
  line-height: 1.5;
}
.lr-wrap .ted-line-header:focus-visible,
.lr-wrap .ted-step:focus-visible,
.lr-wrap .bac-toggle input:focus-visible + .bac-toggle-track,
.lr-wrap .bac-range:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 3px;
  border-radius: 4px;
}
.lr-wrap .bac-mode {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: -8px auto 22px;
    max-width: 380px;
    background: #f1f3f5;
    border-radius: 999px;
    padding: 4px;
}
.lr-wrap .bac-mode-btn {
    flex: 1;
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 9px 12px;
    font: 600 13px/1.2 inherit;
    text-transform: none;
    letter-spacing: 0;
    color: #555;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.lr-wrap .bac-mode-btn.is-active {
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.lr-wrap .bac-mode-btn:focus-visible { outline: 2px solid var(--lr-accent, #d24e04); outline-offset: 2px; }
.lr-wrap .bac-est {
    background: #f7f8fa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 18px 18px 14px;
    margin-bottom: 22px;
}
.lr-wrap .bac-est[hidden] { display: none; }
.lr-wrap .bac-est-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.lr-wrap .bac-est-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #777;
    margin-bottom: 6px;
}
.lr-wrap .bac-est-field input,
.lr-wrap .bac-est-field select {
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    border: 1px solid #d5d8dc;
    border-radius: 6px;
    padding: 0 10px;
    font: 600 16px inherit;
    color: #1a1a1a;
    background: #fff;
}
.lr-wrap .bac-stepper { display: flex; }
.lr-wrap .bac-stepper input {
    text-align: center;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    -moz-appearance: textfield;
}
.lr-wrap .bac-stepper input::-webkit-outer-spin-button,
.lr-wrap .bac-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lr-wrap .bac-stepper button {
    flex: 0 0 40px;
    height: 42px;
    border: 1px solid #d5d8dc;
    background: #fff;
    font-size: 20px;
    line-height: 1;
    color: #333;
    cursor: pointer;
}
.lr-wrap .bac-stepper button:first-child { border-radius: 6px 0 0 6px; }
.lr-wrap .bac-stepper button:last-child { border-radius: 0 6px 6px 0; }
.lr-wrap .bac-stepper button:hover { background: #f1f3f5; }
.lr-wrap .bac-est-out {
    margin: 14px 0 6px;
    font-size: 15px;
    color: #333;
    text-align: center;
}
.lr-wrap .bac-est-out strong { font-size: 20px; color: #1a1a1a; }
.lr-wrap .bac-est-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #888;
    text-align: center;
}
.lr-wrap .bac-cta {
    margin-top: 20px;
    border-radius: calc(var(--lr-radius, 12px) * 0.8);
    padding: 18px 20px;
    border-left: 4px solid #1565c0;
    background: #f3f7fc;
}
.lr-wrap .bac-cta--warn { border-left-color: #e65100; background: #fff6ed; }
.lr-wrap .bac-cta--danger { border-left-color: #c62828; background: #fdf1f1; }
.lr-wrap .bac-cta-head {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
}
.lr-wrap .bac-cta-body {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #333;
}
.lr-wrap .bac-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lr-wrap .bac-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: calc(var(--lr-radius, 12px) / 2);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: filter 0.2s;
}
.lr-wrap .bac-cta-btn:hover { filter: brightness(0.92); }
.lr-wrap .bac-cta-btn--call { background: var(--lr-accent, #d24e04); color: var(--lr-accent-text, #fff) !important; }
.lr-wrap .bac-cta-btn--form { background: #fff; color: #1a1a1a !important; border: 1px solid #ccc; }
.lr-wrap .license-calc-ctahead {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
}
.lr-wrap .license-calc-ctabox[data-urgency="critical"] .license-calc-ctahead,
.lr-wrap .license-calc-ctabox[data-urgency="expired"] .license-calc-ctahead { color: #ffd9a0; }
.lr-wrap .license-calc-ctaactions { display: flex; flex-wrap: wrap; gap: 10px; }
.lr-wrap .license-calc-cta--form {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
}
.lr-wrap .license-calc-cta--form:hover,
.lr-wrap .license-calc-cta--form:focus { background: rgba(255,255,255,0.12); }
.lr-wrap .ted-cta {
    background: #111418;
    border-top: 1px solid #1a1d21;
    padding: 4px 20px 20px;
}
.lr-wrap .ted-cta-head {
    margin: 0 0 12px;
    color: #e8e8e8;
    font-size: 14px;
    line-height: 1.55;
}
.lr-wrap .ted-cta .bac-cta-btn--form {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255,255,255,0.4);
}
.lr-wrap .bac-sim.lt-pending { min-height: 860px; }
.lr-wrap .license-calc.lt-pending { min-height: 590px; }
.lr-wrap .ted-tool.lt-pending { min-height: 630px; }
.lr-wrap .lt-pending noscript p { padding: 20px; }
.lr-wrap .license-calc > .license-calc-header > p:last-child { margin-bottom: 22px; }

/* The wrapper provides the outer spacing. */
.lr-wrap > .bac-sim, .lr-wrap > .license-calc, .lr-wrap > .ted-tool { margin: 0; }
/* ---- Design options (set from LegalRetain > Tool Content > Design) ---- */
.lr-wrap.lr-btn-upper .license-calc-cta, .lr-wrap.lr-btn-upper .bac-cta-btn { text-transform: uppercase; letter-spacing: 0.04em; }
.lr-wrap.lr-btn-normal .license-calc-cta, .lr-wrap.lr-btn-normal .bac-cta-btn { text-transform: none; letter-spacing: normal; }

/* Light license calculator */
.lr-wrap.lr-license-light .license-calc { background: #fff; color: #1d2327; border: 1px solid #e2e4e7; box-shadow: 0 4px 22px rgba(0,0,0,0.07); }
.lr-wrap.lr-license-light .license-calc-header h3 { color: #1a1a1a; }
.lr-wrap.lr-license-light .license-calc-header p { color: #50575e; }
.lr-wrap.lr-license-light .license-calc-input label { color: #3c434a; }
.lr-wrap.lr-license-light .license-calc-input input[type="date"] { border-color: #c3c4c7; }
.lr-wrap.lr-license-light .license-calc-results { background: #f6f7f7; }
.lr-wrap.lr-license-light .license-calc-row { border-bottom-color: rgba(0,0,0,0.08); }
.lr-wrap.lr-license-light .license-calc-row > span:first-child { color: #50575e; }
.lr-wrap.lr-license-light .license-calc-row--success > span:last-child { color: #1e7e34; }
.lr-wrap.lr-license-light .license-calc-row--warning > span:last-child { color: #a65400; }
.lr-wrap.lr-license-light .license-calc-row--danger > span:last-child { color: #c62828; }
.lr-wrap.lr-license-light .license-calc-warning { background: #fff6e5; border-left-color: #e69500; color: #6b4000; }
.lr-wrap.lr-license-light .license-calc-ctahead { color: #1d2327; }
.lr-wrap.lr-license-light .license-calc-ctabox[data-urgency="critical"] .license-calc-ctahead,
.lr-wrap.lr-license-light .license-calc-ctabox[data-urgency="expired"] .license-calc-ctahead { color: #b32d2e; }
.lr-wrap.lr-license-light .license-calc-cta--form { color: #1d2327 !important; border-color: rgba(0,0,0,0.25); }
.lr-wrap.lr-license-light .license-calc-cta--form:hover,
.lr-wrap.lr-license-light .license-calc-cta--form:focus { background: rgba(0,0,0,0.05); color: #1d2327 !important; }
.lr-wrap.lr-license-light .license-calc-footer { color: #787c82; }

/* ---- Responsive: container widths ---- */
@container legalretain (max-width: 640px) {
  .lr-wrap .bac-sim { padding: 24px 18px 20px; margin: 0; }
  .lr-wrap .bac-display-val { font-size: 40px; }
  .lr-wrap .bac-range::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: -13px; }
  .lr-wrap .bac-range::-moz-range-thumb { width: 30px; height: 30px; }
  .lr-wrap .bac-cards { grid-template-columns: 1fr; gap: 10px; }
  .lr-wrap .bac-card-body { min-height: auto; }
  .lr-wrap .bac-refusal { flex-wrap: wrap; }
  .lr-wrap .bac-est-grid { grid-template-columns: 1fr 1fr; }
  .lr-wrap .ted-line-header { padding: 14px; }
  .lr-wrap .ted-unfold-inner, .lr-wrap .ted-steps { padding: 0 14px 14px 14px; }
  .lr-wrap .ted-line-num { display: none; }
  .lr-wrap .ted-doc-header { padding: 12px 14px; }
}
@container legalretain (max-width: 520px) {
  .lr-wrap .license-calc { padding: 22px 18px; }
  .lr-wrap .license-calc-row { font-size: 14px; padding: 12px 0; }
  .lr-wrap .license-calc-row > span:last-child { font-size: 15px; }
  .lr-wrap .license-calc-row--days > span:last-child { font-size: 22px; }
  .lr-wrap .license-calc-cta, .lr-wrap .bac-cta-btn { flex: 1 1 100%; justify-content: center; }
  .lr-wrap .license-calc-cta { font-size: 14px; padding: 12px 16px; }
  .lr-wrap .license-calc-input input[type="date"] { max-width: none; }
}
@container legalretain (max-width: 420px) {
  .lr-wrap .bac-sim { padding: 20px 14px 16px; }
  .lr-wrap .license-calc { padding: 18px 14px; }
  .lr-wrap .license-calc-header h3 { font-size: 19px; }
  .lr-wrap .license-calc-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .lr-wrap .license-calc-row > span:last-child { text-align: left; }
  .lr-wrap .bac-mode { max-width: none; }
  .lr-wrap .bac-cta { padding: 16px 14px; }
  .lr-wrap .ted-line-left { flex-wrap: wrap; row-gap: 4px; }
}
@container legalretain (max-width: 340px) {
  .lr-wrap .bac-est-grid { grid-template-columns: 1fr; }
  .lr-wrap .bac-display-val { font-size: 34px; }
  .lr-wrap .bac-labels { font-size: 9px; letter-spacing: 0; }
}

/* ======================================================================
 * Shared tool components (car-accident toolkit first; reusable by any tool)
 * Accent and corner radius follow the Design tab via --lr-accent / --lr-radius.
 * ====================================================================== */
.lr-wrap .lr-tool {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #e6e8eb;
    border-radius: var(--lr-radius, 12px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
    padding: 28px 26px 22px;
    font-family: inherit;
}
.lr-wrap .lr-tool-head h3 { margin: 0 0 6px; font-size: 21px; font-weight: 700; color: #1a1a1a; }
.lr-wrap .lr-tool-head p { margin: 0 0 20px; font-size: 14px; line-height: 1.55; color: #555; }
.lr-wrap .lr-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0 0 18px; }
.lr-wrap .lr-f-wide { grid-column: 1 / -1; }
.lr-wrap .lr-fields > * { min-width: 0; }
.lr-wrap .lr-f input, .lr-wrap .lr-f select { min-width: 0; max-width: 100%; }
.lr-wrap .lr-f label { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #555; }
.lr-wrap .lr-f input[type="date"],
.lr-wrap .lr-f select,
.lr-wrap .lr-money {
    width: 100%; height: 44px; border: 1px solid #cfd3d8; border-radius: calc(var(--lr-radius, 12px) / 2);
    background: #fff; color: #1a1a1a; font-family: inherit; font-size: 15px; font-weight: 500; padding: 0 12px;
}
.lr-wrap .lr-f select { padding-right: 30px; }
.lr-wrap .lr-f input:focus, .lr-wrap .lr-f select:focus, .lr-wrap .lr-money:focus-within { outline: 2px solid var(--lr-accent, #d24e04); outline-offset: 1px; }
.lr-wrap .lr-money { display: flex; align-items: center; gap: 4px; }
.lr-wrap .lr-money span { color: #777; font-weight: 600; }
.lr-wrap .lr-money input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 16px; font-weight: 600; color: #1a1a1a; height: 100%; padding: 0; }
.lr-wrap .lr-note { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: #777; }
.lr-wrap .lr-tool-foot { margin: 14px 0 0; font-size: 11px; color: #999; text-align: center; }
.lr-wrap .lr-tool .bac-cta { margin-top: 18px; }
.lr-wrap .lr-linkbtn { background: none; border: 0; padding: 0; color: #777; font-size: 12px; text-decoration: underline; cursor: pointer; }

/* Deadline list */
.lr-wrap .lr-dl-list { list-style: none; margin: 0; padding: 0; border: 1px solid #eceef1; border-radius: calc(var(--lr-radius, 12px) * 0.66); overflow: hidden; }
.lr-wrap .lr-dl-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; padding: 14px 16px; border-bottom: 1px solid #eceef1; background: #fff; }
.lr-wrap .lr-dl-item:last-child { border-bottom: 0; }
.lr-wrap .lr-dl-item.is-gov { background: #fff8f1; border-left: 3px solid var(--lr-accent, #d24e04); }
.lr-wrap .lr-dl-main { min-width: 0; }
.lr-wrap .lr-dl-label { display: block; font-weight: 700; font-size: 15px; color: #1a1a1a; }
.lr-wrap .lr-dl-help { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: #666; }
.lr-wrap .lr-dl-when { text-align: right; flex: 0 0 auto; }
.lr-wrap .lr-dl-date { display: block; font-weight: 600; font-size: 14px; color: #1a1a1a; font-variant-numeric: tabular-nums; }
.lr-wrap .lr-dl-badge { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.lr-wrap .lr-dl-badge.is-ok { background: #e8f5e9; color: #1e7e34; }
.lr-wrap .lr-dl-badge.is-soon { background: #fff3e0; color: #a65400; }
.lr-wrap .lr-dl-badge.is-urgent { background: #fdecea; color: #c62828; }
.lr-wrap .lr-dl-badge.is-past { background: #eceff1; color: #546e7a; }
.lr-wrap .lr-dl-empty { padding: 16px; color: #888; text-align: center; font-size: 14px; }

/* Fault simulator */
.lr-wrap .lr-fault-pct { float: right; font-size: 15px; color: #1a1a1a; letter-spacing: 0; text-transform: none; }
.lr-wrap .lr-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; padding: 0; border: 0; margin: 10px 0 6px; border-radius: 3px; background: linear-gradient(90deg, var(--lr-accent, #d24e04) var(--pct, 0%), #e3e6ea var(--pct, 0%)); cursor: pointer; }
.lr-wrap .lr-range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: transparent; }
.lr-wrap .lr-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--lr-accent, #d24e04); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.lr-wrap .lr-range::-moz-range-track { height: 8px; border-radius: 4px; background: #e3e6ea; }
.lr-wrap .lr-range::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--lr-accent, #d24e04); }
.lr-wrap .lr-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--lr-accent, #d24e04); }
.lr-wrap .lr-range:focus-visible { outline: 3px solid #1a73e8; outline-offset: 4px; }
.lr-wrap .lr-range-scale { position: relative; display: flex; justify-content: space-between; font-size: 11px; color: #999; }
.lr-wrap .lr-range-bar { position: absolute; top: 0; transform: translateX(-50%); color: #c62828; font-weight: 700; }
.lr-wrap .lr-fault-result { border: 1px solid #eceef1; border-left: 4px solid #2e7d32; border-radius: calc(var(--lr-radius, 12px) * 0.66); padding: 16px 18px; background: #fafbfc; }
.lr-wrap .lr-fault-result.is-warn { border-left-color: #e65100; }
.lr-wrap .lr-fault-result.is-danger { border-left-color: #c62828; }
.lr-wrap .lr-fault-split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #e3e6ea; margin: 0 0 14px; }
.lr-wrap .lr-fault-keep { background: #2e7d32; transition: width 0.25s; }
.lr-wrap .lr-fault-lose { background: #e57373; transition: width 0.25s; }
.lr-wrap .lr-fault-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lr-wrap .lr-k { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #777; }
.lr-wrap .lr-v { display: block; font-size: 28px; font-weight: 800; color: #1a1a1a; font-variant-numeric: tabular-nums; }
.lr-wrap .lr-v-muted { color: #c62828; font-size: 22px; }
.lr-wrap .lr-fault-headline { margin: 12px 0 4px; font-weight: 700; font-size: 16px; color: #1a1a1a; }
.lr-wrap .lr-fault-body { margin: 0; font-size: 14px; line-height: 1.55; color: #444; }

/* Checklist */
.lr-wrap .lr-progress { margin: 0 0 16px; }
.lr-wrap .lr-progress-track { height: 8px; border-radius: 4px; background: #e3e6ea; overflow: hidden; }
.lr-wrap .lr-progress-fill { height: 100%; width: 0; background: var(--lr-accent, #d24e04); transition: width 0.3s; }
.lr-wrap .lr-progress-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 13px; color: #555; font-weight: 600; }
.lr-wrap .lr-ck-phase { margin: 0 0 14px; }
.lr-wrap .lr-ck-phase h4 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--lr-accent, #d24e04); }
.lr-wrap .lr-ck-list { list-style: none; margin: 0; padding: 0; border: 1px solid #eceef1; border-radius: calc(var(--lr-radius, 12px) * 0.66); overflow: hidden; }
.lr-wrap .lr-ck-item { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; border-bottom: 1px solid #eceef1; background: #fff; transition: background 0.2s; }
.lr-wrap .lr-ck-item:last-child { border-bottom: 0; }
.lr-wrap .lr-ck-item.is-done { background: #f3faf4; }
.lr-wrap .lr-ck-item input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--lr-accent, #d24e04); cursor: pointer; }
.lr-wrap .lr-ck-text { min-width: 0; flex: 1; }
.lr-wrap .lr-ck-text label { display: block; font-size: 15px; font-weight: 600; color: #1a1a1a; cursor: pointer; line-height: 1.4; }
.lr-wrap .lr-ck-item.is-done .lr-ck-text label { color: #2e7d32; text-decoration: line-through; text-decoration-color: rgba(46,125,50,0.45); }
.lr-wrap .lr-ck-text details { margin-top: 4px; }
.lr-wrap .lr-ck-text summary { font-size: 12.5px; color: #777; cursor: pointer; }
.lr-wrap .lr-ck-text details p { margin: 6px 0 2px; font-size: 13.5px; line-height: 1.55; color: #444; }

.lr-wrap .lr-tool.lt-pending { min-height: 420px; }

@container legalretain (max-width: 560px) {
  .lr-wrap .lr-tool { padding: 22px 16px 18px; }
  .lr-wrap .lr-fields { grid-template-columns: 1fr; }
  .lr-wrap .lr-dl-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .lr-wrap .lr-dl-when { text-align: left; }
  .lr-wrap .lr-fault-nums { grid-template-columns: 1fr; }
  .lr-wrap .lr-v { font-size: 24px; }
}
@container legalretain (max-width: 280px) {
  .lr-wrap .lr-tool { padding: 18px 12px 14px; }
  .lr-wrap .lr-tool-head h3 { font-size: 18px; }
  .lr-wrap .lr-f input[type="date"], .lr-wrap .lr-f select, .lr-wrap .lr-money { padding: 0 8px; font-size: 14px; }
}

/* ======================================================================
 * PHONE LAYER: chunky and legible - 16px body text, nothing under 13px,
 * 48-54px tap targets. Screen-width based (a phone is a phone, whatever
 * column the tool sits in). Desktop styles untouched.
 * ====================================================================== */
@media only screen and (max-width: 767px) {
  /* BAC simulator */
  .lr-wrap .bac-sim { padding: 24px 16px 20px; }
  .lr-wrap .bac-sim-header h3 { font-size: 20px; letter-spacing: 1px; line-height: 1.3; }
  .lr-wrap .bac-sim-header p { font-size: 16px; line-height: 1.5; }
  .lr-wrap .bac-mode { max-width: none; margin: 0 0 20px; padding: 5px; }
  .lr-wrap .bac-mode-btn { font-size: 16px; padding: 14px 10px; min-height: 52px; }
  .lr-wrap .bac-est-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .lr-wrap .bac-est-field label { font-size: 13px; letter-spacing: 0.5px; }
  .lr-wrap .bac-est-field input, .lr-wrap .bac-est-field select { height: 52px; font-size: 17px; }
  .lr-wrap .bac-stepper button { flex-basis: 52px; height: 52px; font-size: 24px; }
  .lr-wrap .bac-est-out { font-size: 17px; }
  .lr-wrap .bac-est-out strong { font-size: 24px; }
  .lr-wrap .bac-est-note { font-size: 14px; line-height: 1.5; }
  .lr-wrap .bac-display-val { font-size: 60px; }
  .lr-wrap .bac-display-label { font-size: 13px; }
  .lr-wrap .bac-range { height: 12px; margin: 14px 0 10px; }
  .lr-wrap .bac-range::-webkit-slider-thumb { width: 36px; height: 36px; margin-top: -12px; }
  .lr-wrap .bac-range::-moz-range-thumb { width: 34px; height: 34px; }
  .lr-wrap .bac-labels { font-size: 12px; letter-spacing: 0; }
  .lr-wrap .bac-labels span:nth-child(3) { display: none; }
  .lr-wrap .bac-refusal { padding: 14px; gap: 14px; flex-wrap: nowrap; align-items: center; }
  .lr-wrap .bac-refusal-label { font-size: 16px; line-height: 1.4; }
  .lr-wrap .bac-toggle { width: 60px; height: 34px; flex: 0 0 60px; }
  .lr-wrap .bac-card { padding: 18px 16px; }
  .lr-wrap .bac-card-title { font-size: 13px; letter-spacing: 1px; }
  .lr-wrap .bac-card-body { font-size: 16px; line-height: 1.55; }
  .lr-wrap .bac-cta { padding: 20px 16px; }
  .lr-wrap .bac-cta-head { font-size: 19px; }
  .lr-wrap .bac-cta-body { font-size: 16px; }
  .lr-wrap .bac-cta-actions { flex-direction: column; gap: 12px; }
  .lr-wrap .bac-cta-btn { width: 100%; justify-content: center; min-height: 52px; font-size: 17px; padding: 14px 16px; }
  .lr-wrap .bac-sim-footer { font-size: 13px; }

  /* License deadline calculator */
  .lr-wrap .license-calc { padding: 24px 16px; }
  .lr-wrap .license-calc-header h3 { font-size: 22px; line-height: 1.3; }
  .lr-wrap .license-calc > .license-calc-header > p:last-child, .lr-wrap .license-calc-header p { font-size: 16px; }
  .lr-wrap .license-calc-input label { font-size: 14px; }
  .lr-wrap .license-calc-input input[type="date"] { max-width: none; width: 100%; height: 54px; font-size: 18px; }
  .lr-wrap .license-calc-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 0; font-size: 15px; }
  .lr-wrap .license-calc-row > span:last-child { font-size: 19px; text-align: left; }
  .lr-wrap .license-calc-row--days > span:last-child { font-size: 34px; }
  .lr-wrap .license-calc-warning { font-size: 15px; padding: 14px 16px; }
  .lr-wrap .license-calc-ctahead { font-size: 18px; }
  .lr-wrap .license-calc-ctaactions { flex-direction: column; gap: 12px; }
  .lr-wrap .license-calc-cta { width: 100%; justify-content: center; min-height: 54px; font-size: 16px; padding: 14px 16px; }
  .lr-wrap .license-calc-footer { font-size: 13px; }

  /* Citation deconstructor */
  .lr-wrap .ted-title-bar { padding: 14px 16px; }
  .lr-wrap .ted-title-bar span { font-size: 14px; letter-spacing: 1px; }
  .lr-wrap .ted-doc-header { padding: 16px; }
  .lr-wrap .ted-doc-header h3 { font-size: 13px; letter-spacing: 1px; line-height: 1.4; }
  .lr-wrap .ted-doc-intro { font-size: 16px; line-height: 1.55; }
  .lr-wrap .ted-doc-howto { font-size: 15px; }
  .lr-wrap .ted-line-header { padding: 16px; min-height: 64px; }
  .lr-wrap .ted-line-left { flex-direction: column; align-items: flex-start; gap: 6px; }
  .lr-wrap .ted-line-num { display: none; }
  .lr-wrap .ted-line-label { font-size: 12px; padding: 4px 8px; letter-spacing: 0.5px; white-space: nowrap; }
  .lr-wrap .ted-line-text { font-size: 17px; line-height: 1.4; }
  .lr-wrap .ted-unfold-inner, .lr-wrap .ted-steps { padding: 0 16px 16px; }
  .lr-wrap .ted-unfold-label { font-size: 13px; letter-spacing: 1px; }
  .lr-wrap .ted-unfold-defense p { font-size: 16px; line-height: 1.6; }
  .lr-wrap .ted-step { padding: 14px; min-height: 56px; }
  .lr-wrap .ted-step-title { font-size: 16px; }
  .lr-wrap .ted-step-desc, .lr-wrap .ted-step-miss { font-size: 15px; line-height: 1.5; }
  .lr-wrap .ted-cta-head { font-size: 17px; }

  /* Shared components: deadlines, fault simulator, checklist */
  .lr-wrap .lr-tool { padding: 24px 16px 20px; }
  .lr-wrap .lr-tool-head h3 { font-size: 22px; line-height: 1.3; }
  .lr-wrap .lr-tool-head p { font-size: 16px; }
  .lr-wrap .lr-fields { grid-template-columns: 1fr; gap: 16px; }
  .lr-wrap .lr-f label { font-size: 13px; }
  .lr-wrap .lr-f input[type="date"], .lr-wrap .lr-f select, .lr-wrap .lr-money { height: 54px; font-size: 17px; }
  .lr-wrap .lr-money input { font-size: 18px; }
  .lr-wrap .lr-note { font-size: 14px; }
  .lr-wrap .lr-tool-foot { font-size: 13px; }
  .lr-wrap .lr-dl-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
  .lr-wrap .lr-dl-when { text-align: left; }
  .lr-wrap .lr-dl-label { font-size: 17px; }
  .lr-wrap .lr-dl-help { font-size: 15px; }
  .lr-wrap .lr-dl-date { font-size: 17px; }
  .lr-wrap .lr-dl-badge { font-size: 14px; padding: 4px 12px; }
  .lr-wrap .lr-fault-pct { font-size: 18px; }
  .lr-wrap .lr-range { height: 12px; margin: 16px 0 10px; }
  .lr-wrap .lr-range::-webkit-slider-runnable-track { height: 12px; }
  .lr-wrap .lr-range::-webkit-slider-thumb { width: 36px; height: 36px; margin-top: -12px; }
  .lr-wrap .lr-range::-moz-range-thumb { width: 32px; height: 32px; }
  .lr-wrap .lr-range-scale { font-size: 13px; }
  .lr-wrap .lr-fault-nums { grid-template-columns: 1fr; }
  .lr-wrap .lr-k { font-size: 13px; }
  .lr-wrap .lr-v { font-size: 30px; }
  .lr-wrap .lr-fault-headline { font-size: 18px; }
  .lr-wrap .lr-fault-body { font-size: 16px; }
  .lr-wrap .lr-progress-track { height: 10px; }
  .lr-wrap .lr-progress-meta { font-size: 15px; }
  .lr-wrap .lr-linkbtn { font-size: 15px; min-height: 44px; }
  .lr-wrap .lr-ck-phase h4 { font-size: 14px; }
  .lr-wrap .lr-ck-item { padding: 14px; gap: 14px; }
  .lr-wrap .lr-ck-item input[type="checkbox"] { width: 26px; height: 26px; }
  .lr-wrap .lr-ck-text label { font-size: 17px; }
  .lr-wrap .lr-ck-text summary { display: flex; align-items: center; min-height: 44px; font-size: 14px; padding: 0; }
  .lr-wrap .lr-ck-text details p { font-size: 15px; }
}

/* ======================================================================
 * BAC live feedback: verdict strip under the slider, card flash on change,
 * idle nudge on the slider thumb, and the phone dock (a compact slider
 * pinned to the top of the screen while the results are being read).
 * ====================================================================== */
.lr-wrap .bac-verdict { margin: 14px 0 6px; padding: 12px 14px; border-radius: 10px; border-left: 5px solid #2e7d32; background: #e8f5e9; transition: background-color 0.3s, border-color 0.3s; }
.lr-wrap .bac-verdict--warn { border-left-color: #e65100; background: #fff3e0; }
.lr-wrap .bac-verdict--danger { border-left-color: #c62828; background: #ffebee; }
.lr-wrap .bac-verdict-head { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; color: #1b5e20; }
.lr-wrap .bac-verdict--warn .bac-verdict-head { color: #bf360c; }
.lr-wrap .bac-verdict--danger .bac-verdict-head { color: #b71c1c; }
.lr-wrap .bac-verdict-sub { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: #37474f; }
.lr-wrap .bac-verdict-more { display: none; }
.lr-wrap .bac-range.is-idle::-webkit-slider-thumb { animation: lr-nudge 1.8s ease-in-out infinite; }
.lr-wrap .bac-range.is-idle::-moz-range-thumb { animation: lr-nudge 1.8s ease-in-out infinite; }
.lr-wrap .lr-flash { animation: lr-flash 0.7s ease-out; }
@keyframes lr-nudge {
  0%, 100% { box-shadow: 0 2px 6px rgba(0,0,0,0.18), 0 0 0 0 rgba(26,115,232,0.5); }
  60% { box-shadow: 0 2px 6px rgba(0,0,0,0.18), 0 0 0 12px rgba(26,115,232,0); }
}
@keyframes lr-flash {
  0% { box-shadow: 0 0 0 3px rgba(26,115,232,0.55); transform: scale(1.015); }
  100% { box-shadow: 0 0 0 0 rgba(26,115,232,0); transform: none; }
}

.lr-bac-dock { position: fixed; left: 0; right: 0; top: 0; z-index: 99990; box-sizing: border-box; padding: 10px 16px 8px; padding-top: max(10px, env(safe-area-inset-top)); background: #fff; border-bottom: 4px solid #2e7d32; box-shadow: 0 4px 18px rgba(0,0,0,0.18); transform: translateY(-110%); visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s, border-color 0.3s; }
.lr-bac-dock.is-on { transform: none; visibility: visible; transition: transform 0.25s ease, visibility 0s, border-color 0.3s; }
.lr-bac-dock[data-level="warn"] { border-bottom-color: #e65100; }
.lr-bac-dock[data-level="danger"] { border-bottom-color: #c62828; }
.lr-bac-dock-row { display: flex; align-items: center; gap: 12px; }
.lr-bac-dock-val { flex: 0 0 auto; min-width: 66px; font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.lr-bac-dock-verdict { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.25; color: #263238; }
.lr-bac-dock-close { flex: 0 0 40px; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #f1f3f4; color: #555; font: inherit; font-size: 24px; line-height: 40px; text-align: center; cursor: pointer; }
.lr-bac-dock-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 40px; margin: 4px 0 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.lr-bac-dock-range::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #4caf50 0%, #4caf50 32%, #ff9800 44%, #f44336 60%, #b71c1c 100%); }
.lr-bac-dock-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 34px; height: 34px; margin-top: -12px; border-radius: 50%; background: #fff; border: 3px solid #1a73e8; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.lr-bac-dock-range::-moz-range-track { height: 10px; border-radius: 5px; border: 0; background: linear-gradient(90deg, #4caf50 0%, #4caf50 32%, #ff9800 44%, #f44336 60%, #b71c1c 100%); }
.lr-bac-dock-range::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid #1a73e8; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.lr-bac-dock-range:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
@media only screen and (min-width: 768px) { .lr-bac-dock { display: none; } }

@media only screen and (max-width: 767px) {
  .lr-wrap .bac-verdict { padding: 14px 16px; margin: 16px 0 8px; }
  .lr-wrap .bac-verdict-head { font-size: 19px; }
  .lr-wrap .bac-verdict-sub { font-size: 15px; line-height: 1.5; }
  .lr-wrap .bac-verdict-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 10px 0 0; padding: 0 16px; border: 1.5px solid currentColor; border-radius: 22px; background: #fff; color: #1b5e20; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none; cursor: pointer; }
  .lr-wrap .bac-verdict--warn .bac-verdict-more { color: #bf360c; }
  .lr-wrap .bac-verdict--danger .bac-verdict-more { color: #b71c1c; }
}
@media (prefers-reduced-motion: reduce) {
  .lr-wrap .bac-range.is-idle::-webkit-slider-thumb { animation: none; }
  .lr-wrap .bac-range.is-idle::-moz-range-thumb { animation: none; }
  .lr-wrap .lr-flash { animation: none; }
  .lr-bac-dock, .lr-bac-dock.is-on { transition: none; }
}

/* BAC result cards: icon and title share one row to save height. */
.lr-wrap .bac-card { display: grid; grid-template-columns: auto 1fr; align-items: center; align-content: start; column-gap: 10px; }
.lr-wrap .bac-card-icon { display: flex; align-items: center; margin: 0; line-height: 1; }
.lr-wrap .bac-card-title { margin: 0; }
.lr-wrap .bac-card-body { grid-column: 1 / -1; margin-top: 8px; }
@media only screen and (max-width: 767px) {
  .lr-wrap .bac-cards { gap: 10px; }
  .lr-wrap .bac-card { padding: 14px 16px; column-gap: 10px; }
  .lr-wrap .bac-card-icon { font-size: 22px; }
  .lr-wrap .bac-card-icon svg { width: 22px; height: 22px; }
  .lr-wrap .bac-card-title { font-size: 13px; color: #555; }
  .lr-wrap .bac-card-body { margin-top: 6px; line-height: 1.5; min-height: 0; }
}

/* BAC result cards on phones: collapsed to a one-line summary, tap to open. */
.lr-wrap .bac-card-chev { display: none; }
@media only screen and (max-width: 767px) {
  .lr-wrap .bac-card.lr-collapsible { grid-template-columns: auto 1fr auto; cursor: pointer; -webkit-tap-highlight-color: transparent; padding: 12px 14px; }
  .lr-wrap .bac-card.lr-collapsible .bac-card-title { outline-offset: 4px; }
  .lr-wrap .bac-card.lr-collapsible .bac-card-chev { display: block; width: 10px; height: 10px; margin: 0 4px 4px 8px; border-right: 2.5px solid #777; border-bottom: 2.5px solid #777; transform: rotate(45deg); transition: transform 0.2s ease; }
  .lr-wrap .bac-card.lr-collapsible.is-open .bac-card-chev { transform: rotate(-135deg); margin-bottom: -4px; }
  .lr-wrap .bac-card.lr-collapsible .bac-card-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; margin-top: 4px; color: #555; }
  .lr-wrap .bac-card.lr-collapsible.is-open .bac-card-body { display: block; -webkit-line-clamp: unset; overflow: visible; margin-top: 8px; color: #333; }
}

/* ======================================================================
 * Defense Blueprint (widget "blueprint"): "where are you on the clock?"
 * ====================================================================== */
.lr-wrap .bp-tool { box-sizing: border-box; background: #fff; border: 1px solid #e6e8eb; border-radius: 14px; padding: 28px 28px 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); color: #263238; text-align: left; }
.lr-wrap .bp-tool *, .lr-wrap .bp-tool *::before, .lr-wrap .bp-tool *::after { box-sizing: border-box; }
.lr-wrap .bp-header h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: 0.2px; color: #1a1a1a; text-transform: none; }
.lr-wrap .bp-header p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: #555; }
.lr-wrap .bp-ask { background: #f6f7f9; border-radius: 12px; padding: 16px; margin: 0 0 16px; }
.lr-wrap .bp-ask.is-set { display: none; }
.lr-wrap .bp-ask-label { margin: 0 0 10px; font-size: 17px; font-weight: 800; color: #1a1a1a; }
.lr-wrap .bp-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.lr-wrap .bp-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; margin: 0; padding: 0 16px; border: 2px solid var(--lr-accent, #d24e04); border-radius: 24px; background: #fff; color: var(--lr-accent, #d24e04); font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.1; letter-spacing: 0; text-transform: none; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.lr-wrap .bp-chip:hover, .lr-wrap .bp-chip:focus-visible { background: var(--lr-accent, #d24e04); color: #fff; }
.lr-wrap .bp-chip--pick { border-color: #90a4ae; color: #37474f; }
.lr-wrap .bp-chip--pick:hover, .lr-wrap .bp-chip--pick:focus-visible, .lr-wrap .bp-chip--pick[aria-expanded="true"] { background: #37474f; border-color: #37474f; color: #fff; }
.lr-wrap .bp-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.lr-wrap .bp-pick[hidden] { display: none; }
.lr-wrap .bp-field label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #555; }
.lr-wrap .bp-field input { display: block; width: 100%; height: 48px; margin: 0; padding: 0 12px; border: 1.5px solid #cfd8dc; border-radius: 10px; background: #fff; color: #1a1a1a; font-family: inherit; font-size: 16px; }
.lr-wrap .bp-privacy { margin: 10px 0 0; font-size: 13px; color: #78909c; }
.lr-wrap .bp-clock { margin: 0 0 16px; padding: 16px 18px; border-radius: 12px; border-left: 6px solid #e65100; background: #fff3e0; }
.lr-wrap .bp-clock[hidden] { display: none; }
.lr-wrap .bp-clock[data-stage="phase0"], .lr-wrap .bp-clock[data-stage="critical"], .lr-wrap .bp-clock[data-stage="today"], .lr-wrap .bp-clock[data-stage="expired"] { border-left-color: #c62828; background: #ffebee; }
.lr-wrap .bp-clock-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lr-wrap .bp-clock-val { font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; color: #1a1a1a; }
.lr-wrap .bp-change { flex: 0 0 auto; min-height: 40px; margin: 0; padding: 0 14px; border: 1.5px solid #90a4ae; border-radius: 20px; background: #fff; color: #37474f; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none; cursor: pointer; }
.lr-wrap .bp-clock-when { margin: 2px 0 8px; font-size: 14px; color: #555; }
.lr-wrap .bp-clock-status { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; color: #263238; }
.lr-wrap .bp-hint { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; color: #607d8b; }
.lr-wrap .bp-hint[hidden] { display: none; }
.lr-wrap .bp-steps { list-style: none; margin: 0 0 18px; padding: 0; }
.lr-wrap .bp-step { position: relative; margin: 0; padding: 0 0 8px; list-style: none; }
.lr-wrap .bp-step::before { content: ""; position: absolute; left: 23px; top: 52px; bottom: -4px; width: 3px; border-radius: 2px; background: #e0e4e8; }
.lr-wrap .bp-step:last-child::before { display: none; }
.lr-wrap .bp-step[data-state="past"]::before { background: #2e7d32; }
.lr-wrap .bp-step[data-state="now"]::before { background: linear-gradient(#e65100 0, #e65100 35%, #e0e4e8 35%); }
.lr-wrap .bp-step-head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; margin: 0; padding: 6px 10px 6px 0; border: 0; border-radius: 12px; background: transparent; color: inherit; font-family: inherit; font-size: inherit; line-height: 1.3; letter-spacing: 0; text-align: left; text-transform: none; cursor: pointer; }
.lr-wrap .bp-step-head:hover { background: #f6f7f9; }
.lr-wrap .bp-step-head:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.lr-wrap .bp-dot { position: relative; z-index: 1; flex: 0 0 48px; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 3px solid #fff; border-radius: 50%; background: #fff; color: #90a4ae; font-size: 20px; box-shadow: 0 0 0 2px #e0e4e8; }
.lr-wrap .bp-dot svg { width: 20px; height: 20px; }
.lr-wrap .bp-step[data-state="idle"] .bp-dot { background: #fff3e0; color: var(--lr-accent, #d24e04); box-shadow: 0 0 0 2px #ffcc80; }
.lr-wrap .bp-step[data-state="past"] .bp-dot { background: #2e7d32; color: #fff; box-shadow: 0 0 0 2px #2e7d32; }
.lr-wrap .bp-step[data-state="now"] .bp-dot { background: #e65100; color: #fff; box-shadow: 0 0 0 2px #e65100; animation: bp-pulse 2s ease-in-out infinite; }
.lr-wrap .bp-step:last-child[data-state="past"] .bp-dot { background: #c62828; box-shadow: 0 0 0 2px #c62828; }
.lr-wrap .bp-step-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.lr-wrap .bp-time { font-size: 12.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #78909c; }
.lr-wrap .bp-title { font-size: 17px; font-weight: 800; color: #1a1a1a; }
.lr-wrap .bp-step[data-state="next"] .bp-title { color: #455a64; }
.lr-wrap .bp-badge { flex: 0 0 auto; padding: 5px 10px; border-radius: 14px; background: #eceff1; color: #455a64; font-size: 12.5px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.lr-wrap .bp-badge:empty { display: none; }
.lr-wrap .bp-step[data-state="now"] .bp-badge { background: #e65100; color: #fff; }
.lr-wrap .bp-step[data-state="past"] .bp-badge { background: #e8f5e9; color: #1b5e20; }
.lr-wrap .bp-step[data-urgent="1"] .bp-badge, .lr-wrap .bp-step:last-child[data-state="past"] .bp-badge { background: #c62828; color: #fff; }
.lr-wrap .bp-chev { flex: 0 0 auto; width: 10px; height: 10px; margin: 0 6px 4px 4px; border-right: 2.5px solid #90a4ae; border-bottom: 2.5px solid #90a4ae; transform: rotate(45deg); transition: transform 0.2s ease; }
.lr-wrap .bp-step.is-open .bp-chev { transform: rotate(-135deg); margin-bottom: -4px; }
.lr-wrap .bp-step-body { margin: 2px 0 6px 60px; padding: 12px 14px; border-radius: 10px; background: #f6f7f9; position: relative; z-index: 1; }
.lr-wrap .bp-step-body[hidden] { display: none; }
.lr-wrap .bp-note { margin: 0 0 8px; font-size: 15px; font-weight: 700; line-height: 1.45; color: #bf360c; }
.lr-wrap .bp-note[hidden] { display: none; }
.lr-wrap .bp-step[data-state="past"] .bp-note { color: #1b5e20; }
.lr-wrap .bp-step:last-child[data-state="past"] .bp-note { color: #b71c1c; }
.lr-wrap .bp-step-copy { margin: 0; font-size: 15px; line-height: 1.6; color: #37474f; }
.lr-wrap .bp-cta { margin: 4px 0 0; }
.lr-wrap .bp-footer { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: #90a4ae; }
@keyframes bp-pulse {
  0%, 100% { box-shadow: 0 0 0 2px #e65100, 0 0 0 3px rgba(230,81,0,0.35); }
  50% { box-shadow: 0 0 0 2px #e65100, 0 0 0 11px rgba(230,81,0,0); }
}
@media only screen and (max-width: 767px) {
  .lr-wrap .bp-tool { padding: 22px 16px 16px; border-radius: 12px; }
  .lr-wrap .bp-header p { font-size: 16px; }
  .lr-wrap .bp-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .lr-wrap .bp-chip { min-height: 54px; padding: 0 10px; font-size: 16px; text-align: center; }
  .lr-wrap .bp-pick { grid-template-columns: 1fr; }
  .lr-wrap .bp-field label { font-size: 14px; }
  .lr-wrap .bp-field input { height: 54px; font-size: 17px; }
  .lr-wrap .bp-clock { padding: 14px 16px; }
  .lr-wrap .bp-clock-val { font-size: 32px; }
  .lr-wrap .bp-clock-when { font-size: 15px; }
  .lr-wrap .bp-clock-status { font-size: 17px; }
  .lr-wrap .bp-hint { font-size: 15px; }
  .lr-wrap .bp-step-head { display: grid; grid-template-columns: 48px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; align-items: center; min-height: 64px; padding: 6px 8px 6px 0; }
  .lr-wrap .bp-dot { grid-row: 1 / span 2; }
  .lr-wrap .bp-step-text { grid-column: 2; grid-row: 1; }
  .lr-wrap .bp-badge { grid-column: 2; grid-row: 2; justify-self: start; font-size: 13px; }
  .lr-wrap .bp-chev { grid-column: 3; grid-row: 1 / span 2; }
  .lr-wrap .bp-step[data-state="idle"] .bp-step-text { grid-row: 1 / span 2; }
  .lr-wrap .bp-title { font-size: 18px; line-height: 1.25; }
  .lr-wrap .bp-time { font-size: 13px; }
  .lr-wrap .bp-step-body { margin: 4px 0 8px 0; padding: 14px 16px; }
  .lr-wrap .bp-note, .lr-wrap .bp-step-copy { font-size: 16px; line-height: 1.55; }
  .lr-wrap .bp-footer { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .lr-wrap .bp-step[data-state="now"] .bp-dot { animation: none; }
  .lr-wrap .bp-chev { transition: none; }
}

/* ======================================================================
 * Citation tool: "weak points found" counter above the charges, a status
 * line on each charge, and field-sobriety steps that reveal their common
 * mistake on tap (replaces the old Defense Strength meter at the bottom).
 * ====================================================================== */
.lr-wrap .ted-tracker { margin: 0; padding: 14px 20px 16px; background: #111418; border-top: 1px solid #1a1d21; border-bottom: 1px solid #1a1d21; }
.lr-wrap .ted-tracker-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lr-wrap .ted-tracker-label { display: inline-flex; align-items: center; gap: 6px; color: #ccbd99; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.lr-wrap .ted-tracker-count { color: #e8e8e8; font-size: 15px; white-space: nowrap; }
.lr-wrap .ted-tracker-count strong { color: #FF5722; font-size: 20px; font-weight: 800; }
.lr-wrap .ted-tracker.done .ted-tracker-count strong { color: #81c784; }
.lr-wrap .ted-dots { display: flex; gap: 6px; }
.lr-wrap .ted-dot { flex: 1 1 0; height: 8px; border-radius: 4px; background: #23272d; transition: background-color 0.3s ease; }
.lr-wrap .ted-dot.on { background: #FF5722; }
.lr-wrap .ted-tracker.done .ted-dot.on { background: #4caf50; }
.lr-wrap .ted-line-left { flex-wrap: wrap; }
.lr-wrap .ted-line-status { flex-basis: 100%; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; color: #ffab91; font-size: 12px; font-weight: 700; }
.lr-wrap .ted-line-status[hidden] { display: none; }
.lr-wrap .ted-line.found .ted-line-status { color: #81c784; }
.lr-wrap .ted-line.active .ted-steps { max-height: 2400px; }
.lr-wrap .ted-step .ted-step-miss { display: none; margin-top: 8px; color: #ffcc80; font-style: normal; }
.lr-wrap .ted-step.open .ted-step-miss { display: block; }
.lr-wrap .ted-step-desc { color: #a3aab2; }
.lr-wrap .ted-step-hint { margin-top: 6px; color: #FF8A65; font-size: 12px; font-weight: 700; }
.lr-wrap .ted-step.open .ted-step-hint { display: none; }
.lr-wrap .ted-step.found .ted-step-check { border-color: #4caf50; background: rgba(76,175,80,0.15); color: #81c784; }
.lr-wrap .ted-step.found .ted-step-title { color: #e8e8e8; }
.lr-wrap .ted-step:focus-visible { outline: 2px solid #FF5722; outline-offset: 2px; }
@media only screen and (max-width: 767px) {
  .lr-wrap .ted-tracker { padding: 16px; }
  .lr-wrap .ted-tracker-label { font-size: 13px; letter-spacing: 1px; }
  .lr-wrap .ted-tracker-count { font-size: 16px; }
  .lr-wrap .ted-tracker-count strong { font-size: 22px; }
  .lr-wrap .ted-dot { height: 10px; }
  .lr-wrap .ted-line-status { font-size: 14px; margin-top: 4px; }
  .lr-wrap .ted-step { min-height: 56px; }
  .lr-wrap .ted-step-hint { font-size: 14px; margin-top: 8px; }
}

@media only screen and (min-width: 768px) { .lr-wrap .ted-line-status { padding-left: 36px; } }

/* ======================================================================
 * Car accident tools, phone polish: collapsible checklist phases with their
 * own counts, a visible "Why it matters" pill, and a large fault percentage
 * next to the slider (the damages field now comes first).
 * ====================================================================== */
.lr-wrap .lr-f-damages .lr-money { max-width: 340px; }
.lr-wrap .lr-f-fault label { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.lr-wrap .lr-f-fault .lr-fault-pct { float: none; font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; text-transform: none; transition: color 0.3s; }
.lr-wrap .lr-ck-phases { margin: 0 0 18px; }
.lr-wrap .lr-ck-phase { margin: 0 0 10px; border: 1px solid #e3e6ea; border-radius: calc(var(--lr-radius, 12px) * 0.66); overflow: hidden; background: #fff; }
.lr-wrap .lr-ck-phase-head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 10px 14px; border: 0; background: #f7f8fa; color: #1a1a1a; font-family: inherit; font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: 0; text-align: left; text-transform: none; cursor: pointer; }
.lr-wrap .lr-ck-phase-head:focus-visible { outline: 2px solid var(--lr-accent, #d24e04); outline-offset: -2px; }
.lr-wrap .lr-ck-phase.is-open .lr-ck-phase-head { background: #fff; border-bottom: 1px solid #eceef1; }
.lr-wrap .lr-ck-phase-mark { flex: 0 0 26px; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 2px solid #cfd5db; border-radius: 50%; color: transparent; font-size: 14px; box-sizing: border-box; }
.lr-wrap .lr-ck-phase-mark svg { width: 14px; height: 14px; }
.lr-wrap .lr-ck-phase.is-complete .lr-ck-phase-mark { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.lr-wrap .lr-ck-phase-title { flex: 1 1 auto; min-width: 0; }
.lr-wrap .lr-ck-phase-count { flex: 0 0 auto; padding: 3px 10px; border-radius: 12px; background: #eceff1; color: #455a64; font-size: 13px; font-weight: 800; white-space: nowrap; }
.lr-wrap .lr-ck-phase.is-complete .lr-ck-phase-count { background: #e8f5e9; color: #1b5e20; }
.lr-wrap .lr-ck-chev { flex: 0 0 auto; width: 9px; height: 9px; margin: 0 4px 4px 2px; border-right: 2.5px solid #90a4ae; border-bottom: 2.5px solid #90a4ae; transform: rotate(45deg); transition: transform 0.2s ease; }
.lr-wrap .lr-ck-phase.is-open .lr-ck-chev { transform: rotate(-135deg); margin-bottom: -4px; }
.lr-wrap .lr-ck-phase .lr-ck-list { border: 0; border-radius: 0; }
.lr-wrap .lr-ck-list[hidden] { display: none; }
.lr-wrap .lr-ck-text summary { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 12px; border: 1.5px solid var(--lr-accent, #d24e04); border-radius: 16px; color: var(--lr-accent, #d24e04); font-size: 13px; font-weight: 700; list-style: none; cursor: pointer; }
.lr-wrap .lr-ck-text summary::-webkit-details-marker { display: none; }
.lr-wrap .lr-ck-text summary::after { content: "+"; font-weight: 800; }
.lr-wrap .lr-ck-text details[open] summary::after { content: "-"; }
@media only screen and (max-width: 767px) {
  .lr-wrap .lr-f-fault .lr-fault-pct { font-size: 34px; }
  .lr-wrap .lr-ck-phase-head { min-height: 60px; padding: 12px 14px; font-size: 17px; }
  .lr-wrap .lr-ck-phase-count { font-size: 14px; }
  .lr-wrap .lr-ck-text summary { display: inline-flex; min-height: 40px; padding: 0 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .lr-wrap .lr-ck-chev { transition: none; }
}
