.flatpickr-calendar {
  background: transparent;
  opacity: 0;
  display: none;
  text-align: center;
  visibility: hidden;
  padding: 0;
  -webkit-animation: none;
          animation: none;
  direction: ltr;
  border: 0;
  font-size: 14px;
  line-height: 24px;
  border-radius: 5px;
  position: absolute;
  width: 307.875px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -ms-touch-action: manipulation;
      touch-action: manipulation;
  -webkit-box-shadow: 0 3px 13px rgba(0,0,0,0.08);
          box-shadow: 0 3px 13px rgba(0,0,0,0.08);
}
.flatpickr-calendar.open,
.flatpickr-calendar.inline {
  opacity: 1;
  max-height: 640px;
  visibility: visible;
}
.flatpickr-calendar.open {
  display: inline-block;
  z-index: 99999;
}
.flatpickr-calendar.animate.open {
  -webkit-animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);
          animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
.flatpickr-calendar.inline {
  display: block;
  position: relative;
  top: 2px;
}
.flatpickr-calendar.static {
  position: absolute;
  top: calc(100% + 2px);
}
.flatpickr-calendar.static.open {
  z-index: 999;
  display: block;
}
.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7) {
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}
.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1) {
  -webkit-box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
          box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
}
.flatpickr-calendar .hasWeeks .dayContainer,
.flatpickr-calendar .hasTime .dayContainer {
  border-bottom: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.flatpickr-calendar .hasWeeks .dayContainer {
  border-left: 0;
}
.flatpickr-calendar.hasTime .flatpickr-time {
  height: 40px;
  border-top: 1px solid #eceef1;
}
.flatpickr-calendar.hasTime .flatpickr-innerContainer {
  border-bottom: 0;
}
.flatpickr-calendar.hasTime .flatpickr-time {
  border: 1px solid #eceef1;
}
.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {
  height: auto;
}
.flatpickr-calendar:before,
.flatpickr-calendar:after {
  position: absolute;
  display: block;
  pointer-events: none;
  border: solid transparent;
  content: '';
  height: 0;
  width: 0;
  left: 22px;
}
.flatpickr-calendar.rightMost:before,
.flatpickr-calendar.arrowRight:before,
.flatpickr-calendar.rightMost:after,
.flatpickr-calendar.arrowRight:after {
  left: auto;
  right: 22px;
}
.flatpickr-calendar.arrowCenter:before,
.flatpickr-calendar.arrowCenter:after {
  left: 50%;
  right: 50%;
}
.flatpickr-calendar:before {
  border-width: 5px;
  margin: 0 -5px;
}
.flatpickr-calendar:after {
  border-width: 4px;
  margin: 0 -4px;
}
.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
  bottom: 100%;
}
.flatpickr-calendar.arrowTop:before {
  border-bottom-color: #eceef1;
}
.flatpickr-calendar.arrowTop:after {
  border-bottom-color: #eceef1;
}
.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
  top: 100%;
}
.flatpickr-calendar.arrowBottom:before {
  border-top-color: #eceef1;
}
.flatpickr-calendar.arrowBottom:after {
  border-top-color: #eceef1;
}
.flatpickr-calendar:focus {
  outline: 0;
}
.flatpickr-wrapper {
  position: relative;
  display: inline-block;
}
.flatpickr-months {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}
.flatpickr-months .flatpickr-month {
  border-radius: 5px 5px 0 0;
  background: #eceef1;
  color: #5a6171;
  fill: #5a6171;
  height: 34px;
  line-height: 1;
  text-align: center;
  position: relative;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  overflow: hidden;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  text-decoration: none;
  cursor: pointer;
  position: absolute;
  top: 0;
  height: 34px;
  padding: 10px;
  z-index: 3;
  color: #5a6171;
  fill: #5a6171;
}
.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,
.flatpickr-months .flatpickr-next-month.flatpickr-disabled {
  display: none;
}
.flatpickr-months .flatpickr-prev-month i,
.flatpickr-months .flatpickr-next-month i {
  position: relative;
}
.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month.flatpickr-prev-month {
/*
      /*rtl:begin:ignore*/
/*
      */
  left: 0;
/*
      /*rtl:end:ignore*/
/*
      */
}
/*
      /*rtl:begin:ignore*/
/*
      /*rtl:end:ignore*/
.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,
.flatpickr-months .flatpickr-next-month.flatpickr-next-month {
/*
      /*rtl:begin:ignore*/
/*
      */
  right: 0;
/*
      /*rtl:end:ignore*/
/*
      */
}
/*
      /*rtl:begin:ignore*/
/*
      /*rtl:end:ignore*/
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: #bbb;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: #f64747;
}
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
  width: 14px;
  height: 14px;
}
.flatpickr-months .flatpickr-prev-month svg path,
.flatpickr-months .flatpickr-next-month svg path {
  -webkit-transition: fill 0.1s;
  transition: fill 0.1s;
  fill: inherit;
}
.numInputWrapper {
  position: relative;
  height: auto;
}
.numInputWrapper input,
.numInputWrapper span {
  display: inline-block;
}
.numInputWrapper input {
  width: 100%;
}
.numInputWrapper input::-ms-clear {
  display: none;
}
.numInputWrapper input::-webkit-outer-spin-button,
.numInputWrapper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.numInputWrapper span {
  position: absolute;
  right: 0;
  width: 14px;
  padding: 0 4px 0 2px;
  height: 50%;
  line-height: 50%;
  opacity: 0;
  cursor: pointer;
  border: 1px solid rgba(72,72,72,0.15);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.numInputWrapper span:hover {
  background: rgba(0,0,0,0.1);
}
.numInputWrapper span:active {
  background: rgba(0,0,0,0.2);
}
.numInputWrapper span:after {
  display: block;
  content: "";
  position: absolute;
}
.numInputWrapper span.arrowUp {
  top: 0;
  border-bottom: 0;
}
.numInputWrapper span.arrowUp:after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid rgba(72,72,72,0.6);
  top: 26%;
}
.numInputWrapper span.arrowDown {
  top: 50%;
}
.numInputWrapper span.arrowDown:after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(72,72,72,0.6);
  top: 40%;
}
.numInputWrapper span svg {
  width: inherit;
  height: auto;
}
.numInputWrapper span svg path {
  fill: rgba(90,97,113,0.5);
}
.numInputWrapper:hover {
  background: rgba(0,0,0,0.05);
}
.numInputWrapper:hover span {
  opacity: 1;
}
.flatpickr-current-month {
  font-size: 135%;
  line-height: inherit;
  font-weight: 300;
  color: inherit;
  position: absolute;
  width: 75%;
  left: 12.5%;
  padding: 7.48px 0 0 0;
  line-height: 1;
  height: 34px;
  display: inline-block;
  text-align: center;
  -webkit-transform: translate3d(0px, 0px, 0px);
          transform: translate3d(0px, 0px, 0px);
}
.flatpickr-current-month span.cur-month {
  font-family: inherit;
  font-weight: 700;
  color: inherit;
  display: inline-block;
  margin-left: 0.5ch;
  padding: 0;
}
.flatpickr-current-month span.cur-month:hover {
  background: rgba(0,0,0,0.05);
}
.flatpickr-current-month .numInputWrapper {
  width: 6ch;
  width: 7ch\0;
  display: inline-block;
}
.flatpickr-current-month .numInputWrapper span.arrowUp:after {
  border-bottom-color: #5a6171;
}
.flatpickr-current-month .numInputWrapper span.arrowDown:after {
  border-top-color: #5a6171;
}
.flatpickr-current-month input.cur-year {
  background: transparent;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  color: inherit;
  cursor: text;
  padding: 0 0 0 0.5ch;
  margin: 0;
  display: inline-block;
  font-size: inherit;
  font-family: inherit;
  font-weight: 300;
  line-height: inherit;
  height: auto;
  border: 0;
  border-radius: 0;
  vertical-align: initial;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}
.flatpickr-current-month input.cur-year:focus {
  outline: 0;
}
.flatpickr-current-month input.cur-year[disabled],
.flatpickr-current-month input.cur-year[disabled]:hover {
  font-size: 100%;
  color: rgba(90,97,113,0.5);
  background: transparent;
  pointer-events: none;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  appearance: menulist;
  background: #eceef1;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  font-weight: 300;
  height: auto;
  line-height: inherit;
  margin: -1px 0 0 0;
  outline: none;
  padding: 0 0 0 0.5ch;
  position: relative;
  vertical-align: initial;
  -webkit-box-sizing: border-box;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  width: auto;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:focus,
.flatpickr-current-month .flatpickr-monthDropdown-months:active {
  outline: none;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
  background: rgba(0,0,0,0.05);
}
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
  background-color: #eceef1;
  outline: none;
  padding: 0;
}
.flatpickr-weekdays {
  background: #eceef1;
  text-align: center;
  overflow: hidden;
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  height: 28px;
}
.flatpickr-weekdays .flatpickr-weekdaycontainer {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
span.flatpickr-weekday {
  cursor: default;
  font-size: 90%;
  background: #eceef1;
  color: #5a6171;
  line-height: 1;
  margin: 0;
  text-align: center;
  display: block;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  font-weight: bolder;
}
.dayContainer,
.flatpickr-weeks {
  padding: 1px 0 0 0;
}
.flatpickr-days {
  position: relative;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
      -ms-flex-align: start;
          align-items: flex-start;
  width: 307.875px;
  border-left: 1px solid #eceef1;
  border-right: 1px solid #eceef1;
}
.flatpickr-days:focus {
  outline: 0;
}
.dayContainer {
  padding: 0;
  outline: 0;
  text-align: left;
  width: 307.875px;
  min-width: 307.875px;
  max-width: 307.875px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: inline-block;
  display: -ms-flexbox;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-around;
          justify-content: space-around;
  -webkit-transform: translate3d(0px, 0px, 0px);
          transform: translate3d(0px, 0px, 0px);
  opacity: 1;
}
.dayContainer + .dayContainer {
  -webkit-box-shadow: -1px 0 0 #eceef1;
          box-shadow: -1px 0 0 #eceef1;
}
.flatpickr-day {
  background: none;
  border: 1px solid transparent;
  border-radius: 150px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  color: #484848;
  cursor: pointer;
  font-weight: 400;
  width: 14.2857143%;
  -webkit-flex-basis: 14.2857143%;
      -ms-flex-preferred-size: 14.2857143%;
          flex-basis: 14.2857143%;
  max-width: 39px;
  height: 39px;
  line-height: 39px;
  margin: 0;
  display: inline-block;
  position: relative;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
}
.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange,
.flatpickr-day.prevMonthDay.today.inRange,
.flatpickr-day.nextMonthDay.today.inRange,
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day:focus,
.flatpickr-day.prevMonthDay:focus,
.flatpickr-day.nextMonthDay:focus {
  cursor: pointer;
  outline: 0;
  background: #e2e2e2;
  border-color: #e2e2e2;
}
.flatpickr-day.today {
  border-color: #bbb;
}
.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
  border-color: #bbb;
  background: #bbb;
  color: #fff;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
  background: #ff5a5f;
  -webkit-box-shadow: none;
          box-shadow: none;
  color: #fff;
  border-color: #ff5a5f;
}
.flatpickr-day.selected.startRange,
.flatpickr-day.startRange.startRange,
.flatpickr-day.endRange.startRange {
  border-radius: 50px 0 0 50px;
}
.flatpickr-day.selected.endRange,
.flatpickr-day.startRange.endRange,
.flatpickr-day.endRange.endRange {
  border-radius: 0 50px 50px 0;
}
.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {
  -webkit-box-shadow: -10px 0 0 #ff5a5f;
          box-shadow: -10px 0 0 #ff5a5f;
}
.flatpickr-day.selected.startRange.endRange,
.flatpickr-day.startRange.startRange.endRange,
.flatpickr-day.endRange.startRange.endRange {
  border-radius: 50px;
}
.flatpickr-day.inRange {
  border-radius: 0;
  -webkit-box-shadow: -5px 0 0 #e2e2e2, 5px 0 0 #e2e2e2;
          box-shadow: -5px 0 0 #e2e2e2, 5px 0 0 #e2e2e2;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.notAllowed,
.flatpickr-day.notAllowed.prevMonthDay,
.flatpickr-day.notAllowed.nextMonthDay {
  color: rgba(72,72,72,0.3);
  background: transparent;
  border-color: transparent;
  cursor: default;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  cursor: not-allowed;
  color: rgba(72,72,72,0.1);
}
.flatpickr-day.week.selected {
  border-radius: 0;
  -webkit-box-shadow: -5px 0 0 #ff5a5f, 5px 0 0 #ff5a5f;
          box-shadow: -5px 0 0 #ff5a5f, 5px 0 0 #ff5a5f;
}
.flatpickr-day.hidden {
  visibility: hidden;
}
.rangeMode .flatpickr-day {
  margin-top: 1px;
}
.flatpickr-weekwrapper {
  float: left;
}
.flatpickr-weekwrapper .flatpickr-weeks {
  padding: 0 12px;
  border-left: 1px solid #eceef1;
}
.flatpickr-weekwrapper .flatpickr-weekday {
  float: none;
  width: 100%;
  line-height: 28px;
}
.flatpickr-weekwrapper span.flatpickr-day,
.flatpickr-weekwrapper span.flatpickr-day:hover {
  display: block;
  width: 100%;
  max-width: none;
  color: rgba(72,72,72,0.3);
  background: transparent;
  cursor: default;
  border: none;
}
.flatpickr-innerContainer {
  display: block;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #eceef1;
}
.flatpickr-rContainer {
  display: inline-block;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.flatpickr-time {
  text-align: center;
  outline: 0;
  display: block;
  height: 0;
  line-height: 40px;
  max-height: 40px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  background: #fff;
  border-radius: 0 0 5px 5px;
}
.flatpickr-time:after {
  content: "";
  display: table;
  clear: both;
}
.flatpickr-time .numInputWrapper {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  width: 40%;
  height: 40px;
  float: left;
}
.flatpickr-time .numInputWrapper span.arrowUp:after {
  border-bottom-color: #484848;
}
.flatpickr-time .numInputWrapper span.arrowDown:after {
  border-top-color: #484848;
}
.flatpickr-time.hasSeconds .numInputWrapper {
  width: 26%;
}
.flatpickr-time.time24hr .numInputWrapper {
  width: 49%;
}
.flatpickr-time input {
  background: transparent;
  -webkit-box-shadow: none;
          box-shadow: none;
  border: 0;
  border-radius: 0;
  text-align: center;
  margin: 0;
  padding: 0;
  height: inherit;
  line-height: inherit;
  color: #484848;
  font-size: 14px;
  position: relative;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}
.flatpickr-time input.flatpickr-hour {
  font-weight: bold;
}
.flatpickr-time input.flatpickr-minute,
.flatpickr-time input.flatpickr-second {
  font-weight: 400;
}
.flatpickr-time input:focus {
  outline: 0;
  border: 0;
}
.flatpickr-time .flatpickr-time-separator,
.flatpickr-time .flatpickr-am-pm {
  height: inherit;
  float: left;
  line-height: inherit;
  color: #484848;
  font-weight: bold;
  width: 2%;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-align-self: center;
      -ms-flex-item-align: center;
          align-self: center;
}
.flatpickr-time .flatpickr-am-pm {
  outline: 0;
  width: 18%;
  cursor: pointer;
  text-align: center;
  font-weight: 400;
}
.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:focus {
  background: #eaeaea;
}
.flatpickr-input[readonly] {
  cursor: pointer;
}
@-webkit-keyframes fpFadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -20px, 0);
            transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
}
@keyframes fpFadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -20px, 0);
            transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
}
span.flatpickr-day.selected {
  font-weight: bold;
}

@charset "UTF-8";
.tools-layout * {
  box-sizing: border-box;
}

.tools-layout {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #111827;
  background: #f9fafb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tools-topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.tools-topnav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.tools-topnav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111827;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.tools-topnav__brand:hover {
  color: #dc2626;
}
.tools-topnav__logo {
  height: 28px;
  width: auto;
  display: block;
}
.tools-topnav__brand-name {
  font-weight: 700;
}
.tools-topnav__badge {
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}
.tools-topnav__badge-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.tools-topnav__badge-link:hover {
  background: #fecaca;
  color: #b91c1c;
}
.tools-topnav__badge-link[aria-current=page] {
  background: #fecaca;
  color: #b91c1c;
}
.tools-topnav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
}
.tools-topnav__links li a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.86rem;
  color: #374151;
  transition: background 0.18s ease, color 0.18s ease;
}
.tools-topnav__links li a:hover {
  background: #f3f4f6;
  color: #111827;
}
.tools-topnav__links li a[aria-current=page] {
  background: #fee2e2;
  color: #dc2626;
  font-weight: 600;
  white-space: nowrap;
}
.tools-topnav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tools-topnav__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.tools-topnav__menu-toggle:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: #fee2e2;
}
.tools-topnav__menu-toggle[aria-expanded=true] {
  border-color: #dc2626;
  color: #dc2626;
  background: #fee2e2;
}
.tools-topnav__mobile-panel {
  display: none;
}
@media (max-width: 768px) {
  .tools-topnav__inner {
    justify-content: space-between;
    min-height: 62px;
    padding: 0 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .tools-topnav__logo {
    height: 24px;
  }
  .tools-topnav__links, .tools-topnav__cta {
    display: none;
  }
  .tools-topnav__badge {
    font-size: 0.68rem;
    padding: 3px 9px;
  }
  .tools-topnav__menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .tools-topnav__mobile-panel {
    display: block;
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  }
  .tools-topnav__mobile-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .tools-topnav__mobile-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
  }
  .tools-topnav__mobile-links a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #1f2937;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 0.92rem;
    font-weight: 600;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  }
  .tools-topnav__mobile-links a:hover {
    border-color: #fecaca;
    background: #fff5f5;
    color: #dc2626;
  }
  .tools-topnav__mobile-links a[aria-current=page] {
    border-color: #fecaca;
    background: #fff1f2;
    color: #dc2626;
  }
  .tools-topnav__mobile-lang {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 5px;
    padding: 7px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 99px;
    background: #fff;
    font-size: 0.75rem;
    font-weight: 700;
  }
  .tools-topnav__mobile-cta {
    display: grid;
    gap: 8px;
  }
  .tools-topnav__mobile-cta .btn-tools-primary,
.tools-topnav__mobile-cta .btn-tools-ghost {
    width: 100%;
    min-height: 42px;
  }
}
@media (max-width: 1200px) {
  .tools-topnav__inner {
    gap: 10px;
  }
  .tools-topnav__links li a {
    font-size: 0.82rem;
    padding: 6px 8px;
  }
  .tools-topnav__cta {
    gap: 6px;
  }
}

body.tools-mobile-nav-open {
  overflow: hidden;
}

.tools-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 99px;
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}
.tools-lang-switch__btn {
  color: #4b5563;
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.18s ease;
}
.tools-lang-switch__btn:hover {
  color: #dc2626;
}
.tools-lang-switch__btn.is-active {
  color: #dc2626;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.tools-lang-switch__sep {
  color: #9ca3af;
}

.btn-tools-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-tools-primary:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.btn-tools-primary:active {
  transform: translateY(0);
}
.btn-tools-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-tools-primary--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-tools-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #374151;
  border: 1.5px solid #d1d5db;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-tools-ghost:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: #fee2e2;
}
.btn-tools-ghost--lg {
  padding: 14px 24px;
  font-size: 1rem;
}

.btn-tools-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.18s ease, background 0.18s ease;
}
.btn-tools-icon:hover {
  color: #dc2626;
  background: #fee2e2;
}

.btn--sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn--block {
  width: 100%;
}

.tools-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%);
  color: #ffffff;
  padding: 64px 24px;
  text-align: center;
}
.tools-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}
.tools-hero__eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.tools-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
}
.tools-hero__subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.tools-hero--calculator {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e1b4b 100%);
}
.tools-hero--cost {
  background: linear-gradient(135deg, #064e3b 0%, #1e3a5f 100%);
}
.tools-hero--invoice {
  background: linear-gradient(135deg, #3b0764 0%, #1e1b4b 100%);
}
@media (max-width: 768px) {
  .tools-hero {
    padding: 40px 16px;
  }
}

.tools-main {
  flex: 1;
}

.tools-page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.tools-page-layout--wide {
  grid-template-columns: 1fr 300px;
}
@media (max-width: 960px) {
  .tools-page-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .tools-page-layout {
    padding: 20px 16px;
    gap: 16px;
  }
}

.tools-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.tools-card__header {
  padding: 20px 24px 0;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.tools-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
}
.tools-card__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  color: #374151;
  flex-shrink: 0;
}
.tools-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tools-card__icon--payroll {
  color: #2563eb;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border-color: rgba(37, 99, 235, 0.18);
}
.tools-card__icon--cost {
  color: #0f766e;
  background: linear-gradient(180deg, #ecfeff 0%, #ccfbf1 100%);
  border-color: rgba(15, 118, 110, 0.16);
}
.tools-card__icon--invoice {
  color: #7c3aed;
  background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
  border-color: rgba(124, 58, 237, 0.16);
}

.tools-form {
  padding: 24px;
}
.tools-form__row {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
  align-items: end;
}
.tools-form__row--3col {
  grid-template-columns: 1fr 1fr 1fr;
}
.tools-form__row--2col {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
  .tools-form__row {
    align-items: stretch;
  }
  .tools-form__row--3col, .tools-form__row--2col {
    grid-template-columns: 1fr;
  }
}
.tools-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tools-form__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tools-form__hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: #6b7280;
}
.tools-form__hint-text {
  font-size: 0.8rem;
  color: #dc2626;
  margin: 0;
}
.tools-form__input-wrap {
  position: relative;
}
.tools-form__input-wrap--prefix {
  display: flex;
  align-items: center;
}
.tools-form__input-wrap--suffix {
  display: flex;
  align-items: center;
}
.tools-form__prefix, .tools-form__suffix {
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  padding: 0 12px;
  height: 42px;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #6b7280;
  font-size: 0.9rem;
}
.tools-form__prefix {
  border-right: none;
  border-radius: 6px 0 0 6px;
}
.tools-form__suffix {
  border-left: none;
  border-radius: 0 6px 6px 0;
}
.tools-form__control {
  width: 100%;
  height: 42px;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 0.95rem;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
}
.tools-form__control:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.tools-form__control--error {
  border-color: #dc2626;
}
.tools-form__control--select {
  cursor: pointer;
}
.tools-form__control--textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}
.tools-form__control--inline {
  height: 36px;
  font-size: 0.85rem;
}
.tools-form__input-wrap--prefix .tools-form__control {
  border-radius: 0 6px 6px 0;
}
.tools-form__input-wrap--suffix .tools-form__control {
  border-radius: 6px 0 0 6px;
  flex: 1;
}
.tools-form__required {
  color: #dc2626;
}

.calc-results {
  padding: 0 24px 24px;
  border-top: 1px solid #f3f4f6;
  margin-top: 4px;
}
.calc-results__hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .calc-results__hero {
    grid-template-columns: 1fr;
  }
}
.calc-results__hero-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.calc-results__hero-label {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 500;
}
.calc-results__hero-value {
  font-size: 1.6rem;
  font-weight: 800;
}
.calc-results__hero-value--green {
  color: #16a34a;
}
.calc-results__hero-value--red {
  color: #dc2626;
}
.calc-results__hero-value--blue {
  color: #2563eb;
}
.calc-results__hero-value--orange {
  color: #ea580c;
}
.calc-results__hero-sub {
  font-size: 0.75rem;
  color: #6b7280;
}
.calc-results__breakdown-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px;
}
.calc-results__breakdown, .calc-results__annual {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.calc-results__annual {
  margin-top: 12px;
}
.calc-results__annual summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 500;
  padding: 8px 0;
}
.calc-results__annual summary:hover {
  color: #dc2626;
}
.calc-results__upsell {
  margin-top: 20px;
  background: linear-gradient(135deg, #fee2e2, #ede9fe);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.calc-results__upsell p {
  margin: 0;
  font-size: 0.95rem;
  flex: 1;
}
.calc-results__disclaimer {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #78350f;
  line-height: 1.45;
}
.calc-results__disclaimer strong {
  color: #92400e;
}
.calc-results__warnings {
  margin-top: 12px;
}
.calc-results__warning-item {
  font-size: 0.85rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 6px;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}
.calc-table th, .calc-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}
.calc-table th {
  font-weight: 500;
  color: #374151;
}
.calc-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.calc-table__num--deduct {
  color: #dc2626;
  font-weight: 500;
}
.calc-table__num--cost {
  color: #ea580c;
  font-weight: 500;
}
.calc-table__num--net {
  color: #16a34a;
  font-weight: 700;
  font-size: 1rem;
}
.calc-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
}
.calc-table__row--gross th, .calc-table__row--gross td {
  background: #f9fafb;
}
.calc-table__row--net th, .calc-table__row--net td {
  background: #f0fdf4;
}
.calc-table--compact th, .calc-table--compact td {
  padding: 7px 10px;
  font-size: 0.85rem;
}
@media (max-width: 600px) {
  .calc-table {
    min-width: 480px;
  }
}

.tools-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tools-info-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 20px;
  border: 1px solid #e5e7eb;
}
.tools-info-card--highlight {
  background: #fee2e2;
  border-color: rgba(220, 38, 38, 0.2);
}
.tools-info-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #111827;
}
.tools-info-card__text {
  font-size: 0.88rem;
  color: #374151;
  margin: 0 0 12px;
  line-height: 1.5;
}
.tools-info-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tools-info-card__list li {
  font-size: 0.88rem;
  color: #374151;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}
.tools-info-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}
.tools-info-card__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tools-info-card__links li {
  padding: 4px 0;
}
.tools-info-card__links a {
  font-size: 0.88rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}
.tools-info-card__links a:hover {
  color: #dc2626;
  text-decoration: underline;
}
.tools-info-card__dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  margin: 0;
  font-size: 0.85rem;
}
.tools-info-card__dl dt {
  color: #374151;
}
.tools-info-card__dl dd {
  font-weight: 700;
  text-align: right;
  margin: 0;
}

.tools-grid-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

.tools-grid__card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #f3f4f6;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tools-grid__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.tools-grid__card-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  color: #374151;
}
.tools-grid__card-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tools-grid__card-icon--payroll {
  color: #2563eb;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border-color: rgba(37, 99, 235, 0.18);
}
.tools-grid__card-icon--cost {
  color: #0f766e;
  background: linear-gradient(180deg, #ecfeff 0%, #ccfbf1 100%);
  border-color: rgba(15, 118, 110, 0.16);
}
.tools-grid__card-icon--invoice {
  color: #7c3aed;
  background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
  border-color: rgba(124, 58, 237, 0.16);
}
.tools-grid__card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.tools-grid__card-title a {
  color: #111827;
  text-decoration: none;
}
.tools-grid__card-title a:hover {
  color: #dc2626;
}
.tools-grid__card-desc {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.tools-grid__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tools-grid__card-tags li {
  background: #f3f4f6;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

.tools-trust {
  background: #ffffff;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}
.tools-trust__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.tools-trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
}
.tools-trust__icon {
  display: inline-flex;
}
.tools-trust__icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  color: #374151;
}
.tools-trust__icon-badge svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tools-trust__icon-badge--canada {
  color: #ef4444;
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  border-color: rgba(239, 68, 68, 0.2);
}
.tools-trust__icon-badge--rates {
  color: #2563eb;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border-color: rgba(37, 99, 235, 0.18);
}
.tools-trust__icon-badge--secure {
  color: #0f766e;
  background: linear-gradient(180deg, #ecfeff 0%, #ccfbf1 100%);
  border-color: rgba(15, 118, 110, 0.16);
}
.tools-trust__icon-badge--free {
  color: #7c3aed;
  background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
  border-color: rgba(124, 58, 237, 0.16);
}

.tools-upsell-strip {
  background: linear-gradient(135deg, #9f1239 0%, #1e1b4b 55%, #1d4ed8 100%);
  color: #ffffff;
}
.tools-upsell-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .tools-upsell-strip__inner {
    flex-direction: column;
    text-align: center;
  }
}
.tools-upsell-strip__text {
  flex: 1;
}
.tools-upsell-strip__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 8px;
}
.tools-upsell-strip__desc {
  font-size: 0.95rem;
  opacity: 0.92;
  margin: 0;
  line-height: 1.6;
  max-width: 760px;
}
.tools-upsell-strip .btn-tools-primary {
  background: rgba(255, 255, 255, 0.96);
  color: #111827 !important;
  flex-shrink: 0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}
.tools-upsell-strip .btn-tools-primary:hover {
  background: #ffffff;
  color: #111827 !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.email-capture-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #ffffff;
  border-top: 2px solid #dc2626;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}
.email-capture-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.email-capture-bar__text {
  font-size: 0.95rem;
  font-weight: 500;
  flex: 1;
  margin: 0;
}
.email-capture-bar__text strong {
  color: #dc2626;
}
.email-capture-bar__form {
  display: flex;
  gap: 8px;
}
.email-capture-bar__input {
  flex: 1;
  min-width: 200px;
}
.email-capture-bar__msg {
  font-size: 0.88rem;
  color: #16a34a;
  margin: 0;
}
.email-capture-bar__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-size: 1.1rem;
  padding: 4px 8px;
  border-radius: 6px;
}
.email-capture-bar__close:hover {
  color: #dc2626;
  background: #fee2e2;
}

.invoice-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .invoice-parties {
    grid-template-columns: 1fr;
  }
}

.invoice-party {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.invoice-party__legend {
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  padding: 0 6px;
}

.invoice-lines {
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.invoice-lines__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.invoice-lines__desc-col {
  width: 43%;
}
.invoice-lines__num-col {
  width: 14%;
}
.invoice-lines__action-col {
  width: 5%;
}
.invoice-lines th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
  padding: 6px 8px;
  text-align: left;
}
.invoice-lines td {
  padding: 6px 4px;
  border-bottom: 1px solid #f3f4f6;
}
.invoice-lines__row input {
  height: 34px;
}
.invoice-lines__table th:nth-child(2), .invoice-lines__table td:nth-child(2) {
  width: 24%;
  min-width: 220px;
}
.invoice-lines__qty-cell {
  display: flex;
  gap: 4px;
  align-items: center;
}
.invoice-lines__qty-cell .line-qty {
  flex: 1 1 108px;
  min-width: 108px;
}
.invoice-lines__qty-cell .line-unit {
  flex: 0 0 70px;
  height: 34px;
  padding: 0 4px;
  font-size: 0.82rem;
}
.invoice-lines__qty-cell .line-unit-custom {
  flex: 0 0 64px;
}
@media (max-width: 768px) {
  .invoice-lines__table {
    min-width: 780px;
  }
}

.invoice-totals {
  max-width: 320px;
  margin-left: auto;
  margin-bottom: 20px;
}
.invoice-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
}
.invoice-totals__row--total {
  border-top: 2px solid #d1d5db;
  border-bottom: none;
  padding-top: 12px;
  margin-top: 4px;
}
.invoice-totals__label {
  color: #374151;
}
.invoice-totals__value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.invoice-totals__value--total {
  font-size: 1.2rem;
  font-weight: 800;
  color: #dc2626;
}
@media (max-width: 600px) {
  .invoice-totals {
    max-width: 100%;
    margin-left: 0;
  }
}

.invoice-header-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.invoice-save-section {
  border-top: 1px solid #f3f4f6;
  padding-top: 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invoice-session-alert {
  margin: 14px 20px 0;
  border: 1px solid #facc15;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  color: #854d0e;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 600;
}

.invoice-save-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.invoice-brand-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f3f4f6;
}
@media (max-width: 640px) {
  .invoice-brand-row {
    grid-template-columns: 1fr;
  }
}
.invoice-brand-row__logo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.invoice-brand-row__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invoice-logo-box {
  width: 200px;
  height: 100px;
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
  text-align: center;
  background: #f9fafb;
  overflow: hidden;
}
.invoice-logo-box:hover {
  border-color: #dc2626;
  background: #f0f7ff;
}
.invoice-logo-box__placeholder {
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}
.invoice-logo-box__placeholder small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  margin-top: 4px;
  color: #9ca3af;
}
.invoice-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.invoice-number-display {
  padding: 10px 14px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  font-size: 1rem;
  font-weight: 700;
  color: #dc2626;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}
.invoice-number-display__hint {
  color: #9ca3af;
  font-weight: 400;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0;
}

.invoice-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #f0f7ff 0%, #f9fafb 100%);
  border: 1px solid #c7ddff;
  border-radius: 10px;
}
.invoice-actions #inv-pdf-link {
  background: #2563eb;
  border-color: #2563eb;
}
.invoice-actions #inv-pdf-link:hover {
  background: #1d4ed8;
}
.invoice-actions .is-loading {
  opacity: 0.75;
  pointer-events: none;
  position: relative;
}

.invoice-list__action--pdf {
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.28);
  background: #eff6ff;
  font-weight: 600;
}
.invoice-list__action--pdf:hover {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, 0.38);
}

.invoice-list__action--paid {
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.28);
  background: #f0fdf4;
  font-weight: 600;
}
.invoice-list__action--paid:hover {
  background: #dcfce7;
  border-color: rgba(22, 163, 74, 0.38);
}

.pdf-download-spinner {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.45em;
  vertical-align: -0.12em;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pdf-spin 0.8s linear infinite;
}

@keyframes pdf-spin {
  to {
    transform: rotate(360deg);
  }
}
.invoice-list__action--pdf.is-loading,
.invoice-send-modal__card.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.invoice-upsell-banner {
  margin-top: 20px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 100%);
  border: 1px solid #fbbf24;
  border-radius: 10px;
  text-align: center;
}
.invoice-upsell-banner strong {
  font-size: 1.05rem;
  color: #92400e;
  display: block;
  margin-bottom: 6px;
}
.invoice-upsell-banner p {
  margin: 0 0 14px;
  color: #78350f;
  font-size: 0.9rem;
  line-height: 1.5;
}

.invoice-save-result {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
}
.invoice-save-result--success {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}
.invoice-save-result--error {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.invoice-send-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}
.invoice-send-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
}
.invoice-send-modal__panel {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 18px;
  width: calc(100vw - 20px);
  max-height: 88vh;
  overflow: auto;
}
.invoice-send-modal__close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #6b7280;
}
.invoice-send-modal h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}
.invoice-send-modal__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 640px) {
  .invoice-send-modal__cards {
    grid-template-columns: 1fr;
  }
}
.invoice-send-modal__card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  text-align: left;
  padding: 14px;
  color: #1f2937;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.invoice-send-modal__card strong {
  font-size: 1rem;
}
.invoice-send-modal__card small {
  color: #6b7280;
}
.invoice-send-modal__card:hover {
  border-color: #2563eb;
}
.invoice-send-modal__launch {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  margin: 10px 0 14px;
}
.invoice-send-modal__launch a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
.invoice-send-modal__launch a:hover {
  text-decoration: underline;
}
.invoice-send-modal__compose {
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border-radius: 10px;
  padding: 12px;
  margin: 0 0 12px;
}
.invoice-send-modal__compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.invoice-send-modal__compose-actions > .btn-tools-primary,
.invoice-send-modal__compose-actions > .btn-tools-ghost {
  min-height: 40px;
}
.invoice-send-modal__timeline {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  padding: 8px 10px;
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: #374151;
  max-height: 120px;
  overflow: auto;
}
.invoice-send-modal__timeline .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
}
.invoice-send-modal__timeline .row + .row {
  border-top: 1px dashed #e5e7eb;
}
.invoice-send-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .invoice-send-modal__footer > .btn-tools-primary,
.invoice-send-modal__footer > .btn-tools-ghost {
    width: 100%;
  }
}
.invoice-send-modal #inv-send-launch-email,
.invoice-send-modal #inv-send-submit-email {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.invoice-send-modal #inv-send-launch-email:hover,
.invoice-send-modal #inv-send-submit-email:hover {
  background: #1d4ed8;
}
.invoice-send-modal #inv-send-mark-sent {
  background: #2563eb;
  border-color: #2563eb;
}
.invoice-send-modal #inv-send-mark-sent:hover {
  background: #1d4ed8;
}
.invoice-send-modal #inv-send-mark-paid {
  background: #16a34a;
  border-color: #16a34a;
}
.invoice-send-modal #inv-send-mark-paid:hover {
  background: #15803d;
}

.invoice-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.invoice-list__overdue-banner {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  margin-bottom: 4px;
}
.invoice-list__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}
.invoice-list__item--overdue {
  border-color: #fecaca;
  background: #fef2f2;
}
.invoice-list__row1, .invoice-list__row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.invoice-list__due {
  color: #6b7280;
  font-size: 0.75rem;
}
.invoice-list__actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.invoice-list__pagination {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 6px;
}
.invoice-list__page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 0.76rem;
  cursor: pointer;
}
.invoice-list__page-btn:hover:not(:disabled) {
  border-color: #2563eb;
  color: #2563eb;
}
.invoice-list__page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.invoice-list__page-btn.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.invoice-list__action {
  color: #374151;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.74rem;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 6px 10px;
  min-height: 34px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.invoice-list__action:hover {
  border-color: #9ca3af;
  background: #f9fafb;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.invoice-list__action:focus-visible {
  outline: 0;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}
.invoice-list__action--pdf {
  color: #374151;
}
.invoice-list__action--send {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}
.invoice-list__action--edit {
  color: #374151;
}
.invoice-list__action--dup {
  color: #374151;
}
.invoice-list__action--paid {
  color: #166534;
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.invoice-list__action--send:hover {
  color: #1e40af;
  border-color: #93c5fd;
  background: #dbeafe;
}
.invoice-list__action--pdf:hover {
  color: #1e40af;
  border-color: #93c5fd;
  background: #dbeafe;
}
.invoice-list__action--paid:hover {
  color: #166534;
  border-color: #86efac;
  background: #dcfce7;
}
.invoice-list__number {
  font-weight: 700;
  color: #111827;
}
.invoice-list__client {
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.invoice-list__total {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.invoice-list__status {
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
}
.invoice-list__status--draft {
  background: #f3f4f6;
  color: #374151;
}
.invoice-list__status--sent {
  background: #dbeafe;
  color: #1d4ed8;
}
.invoice-list__status--paid {
  background: #dcfce7;
  color: #166534;
}
.invoice-list__status--overdue {
  background: #fee2e2;
  color: #991b1b;
}
.invoice-list__status--void {
  background: #f3f4f6;
  color: #6b7280;
}
@media (max-width: 560px) {
  .invoice-list__row1, .invoice-list__row2 {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .invoice-list__total {
    width: 100%;
    text-align: left;
  }
  .invoice-list__actions {
    width: 100%;
    gap: 8px;
  }
  .invoice-list__action {
    padding: 5px 10px;
  }
}

.invoice-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}
.invoice-filters__btn {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 999px;
  padding: 6px 10px;
  min-height: 34px;
  font-size: 0.74rem;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.invoice-filters__btn.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}
.invoice-filters__btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
}
.invoice-filters__btn:focus-visible {
  outline: 0;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.invoice-list-search {
  margin: 0 0 10px;
  position: relative;
}
.invoice-list-search .tools-form__control {
  height: 40px;
  font-size: 0.86rem;
  padding-right: 74px;
}
.invoice-list-search__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 999px;
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.invoice-list-search__clear:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: #fee2e2;
}

#inv-load-more {
  margin-top: 10px;
}

.invoice-list__hl {
  background: #fff3cd;
  color: #7c2d12;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .tools-page-layout {
    grid-template-columns: 1fr;
  }
  .tools-sidebar {
    order: 2;
  }
}
@media (max-width: 768px) {
  .tools-card__header {
    padding: 16px 16px 12px;
  }
  .tools-card__title {
    font-size: 1.08rem;
  }
  .tools-form {
    padding: 16px;
  }
  .calc-results {
    padding: 0 16px 16px;
  }
  .invoice-actions {
    padding: 12px;
    gap: 8px;
  }
}
@media (max-width: 375px) {
  .tools-page-layout {
    padding: 14px 10px;
  }
  .tools-form {
    padding: 12px;
  }
  .tools-form__control {
    font-size: 0.9rem;
  }
  .invoice-send-modal__panel {
    width: calc(100vw - 10px);
    margin-top: 3vh;
  }
  .invoice-list__action {
    font-size: 0.72rem;
    min-height: 38px;
    padding: 7px 10px;
  }
  .invoice-filters__btn {
    min-height: 36px;
  }
}
@media (max-width: 320px) {
  .tools-card__title {
    font-size: 1rem;
  }
  .tools-form__label {
    font-size: 0.82rem;
  }
  .tools-form__control {
    height: 40px;
    padding: 0 10px;
  }
  .btn-tools-primary,
.btn-tools-ghost {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-height: 38px;
  }
  .invoice-send-modal__footer {
    gap: 6px;
  }
  .invoice-list__page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
  }
}
.tools-faq {
  background: #f9fafb;
  padding: 56px 24px;
  border-top: 1px solid #f3f4f6;
}
.tools-faq__inner {
  max-width: 860px;
  margin: 0 auto;
}
.tools-faq__title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 32px;
  text-align: center;
}
.tools-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .tools-faq__grid {
    grid-template-columns: 1fr;
  }
}
.tools-faq__item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
}
.tools-faq__item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: #111827;
  list-style: none;
  padding-right: 20px;
  position: relative;
}
.tools-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: #dc2626;
  font-size: 1.1rem;
  transition: transform 0.18s ease;
}
.tools-faq__item[open] summary::after {
  transform: rotate(45deg);
}
.tools-faq__item div {
  padding-top: 12px;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.65;
}

.tools-footer {
  background: #111827;
  color: #d1d5db;
  padding: 24px;
  margin-top: auto;
}
.tools-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.tools-footer__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tools-footer__left a {
  color: #d1d5db;
  text-decoration: none;
}
.tools-footer__left a:hover {
  color: #ffffff;
}
.tools-footer__sep {
  opacity: 0.4;
}
.tools-footer__right {
  max-width: 480px;
}
.tools-footer__disclaimer {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.6;
  line-height: 1.5;
}

.auth-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: linear-gradient(135deg, #fafbff 0%, #f3f4f6 100%);
}
.auth-wrap--split {
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .auth-wrap--split {
    flex-direction: column;
    gap: 24px;
  }
}

.auth-pitch {
  max-width: 380px;
  text-align: center;
}
.auth-pitch__icon {
  font-size: 4rem;
  margin-bottom: 20px;
}
.auth-pitch h2 {
  font-size: 1.7rem;
  margin: 0 0 12px;
  color: #111827;
}
.auth-pitch p {
  color: #6b7280;
  margin: 0 0 20px;
}
.auth-pitch__list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.auth-pitch__list li {
  padding: 6px 0;
  color: #374151;
  font-size: 0.95rem;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 32px 36px;
  width: 100%;
  max-width: 480px;
}
.auth-card--centered {
  text-align: center;
}
.auth-card__logo {
  text-align: center;
  margin-bottom: 18px;
}
.auth-card__brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #dc2626;
}
.auth-card__brand-sub {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 2px;
}
.auth-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #111827;
  text-align: center;
}
.auth-card__lead {
  color: #4b5563;
  text-align: center;
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.auth-card__hint {
  color: #6b7280;
  font-size: 0.85rem;
  text-align: center;
  margin: 10px 0;
}
.auth-card__terms {
  font-size: 0.78rem;
  color: #6b7280;
  text-align: center;
  margin: 14px 0 0;
}
.auth-card__terms a {
  color: #dc2626;
}
.auth-card__footer {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  color: #4b5563;
}
.auth-card__footer a {
  color: #dc2626;
  font-weight: 600;
  text-decoration: none;
}

.auth-icon-big {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-form__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.auth-form__group label {
  font-weight: 600;
  font-size: 0.82rem;
  color: #374151;
}
.auth-form__group label small {
  color: #9ca3af;
  font-weight: 400;
}
.auth-form__group input {
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.18s ease;
}
.auth-form__group input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px #fee2e2;
}
.auth-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .auth-form__row {
    grid-template-columns: 1fr;
  }
}
.auth-form__hint {
  color: #6b7280;
  font-size: 0.78rem;
}
.auth-form__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.4;
}
.auth-form__check input {
  margin-top: 2px;
}
.auth-form__submit {
  padding: 11px;
  background: #dc2626;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: block;
  transition: background 0.18s ease;
}
.auth-form__submit:hover {
  background: #b91c1c;
}
.auth-form__error {
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 6px;
  font-size: 0.85rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: #9ca3af;
  font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-oauth {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-oauth__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}
.auth-oauth__btn:hover {
  background: #f9fafb;
}
.auth-oauth__btn--google {
  color: #1f2937;
}
.auth-oauth__btn--apple {
  background: #000;
  color: #fff;
  border-color: #000;
}
.auth-oauth__btn--apple:hover {
  background: #1f1f1f;
}
.auth-oauth__icon {
  font-weight: 700;
}

.auth-sell {
  margin-top: 18px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 100%);
  border: 1px solid #fbbf24;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #78350f;
  line-height: 1.45;
}
.auth-sell strong {
  color: #92400e;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.account-chip__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.account-chip__name {
  font-weight: 600;
  color: #111827;
}
.account-chip__sub {
  font-size: 0.8rem;
  color: #6b7280;
}
.account-chip__sub a {
  color: #dc2626;
  text-decoration: none;
  font-weight: 600;
}
.account-chip--cta {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  background: linear-gradient(135deg, #f0f7ff 0%, #fefbff 100%);
  border-color: #c7ddff;
  gap: 8px;
}
.account-chip--cta strong {
  color: #111827;
  font-size: 1.05rem;
}
.account-chip--cta p {
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 0.9rem;
}
.account-chip__signin {
  font-size: 0.85rem;
  color: #dc2626;
  text-decoration: none;
}

.auth-oauth--top {
  margin-bottom: 6px;
}

.auth-oauth__svg {
  flex-shrink: 0;
}

.auth-oauth__btn {
  transition: all 0.15s ease;
}
.auth-oauth__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.auth-oauth__btn:active {
  transform: translateY(0);
}

.auth-form__group--pwd .auth-form__pwd-wrap {
  position: relative;
}
.auth-form__group--pwd .auth-form__pwd-wrap input {
  width: 100%;
  padding-right: 64px;
}

.auth-form__pwd-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #dc2626;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
}
.auth-form__pwd-toggle:hover {
  background: #fee2e2;
}

.auth-form__submit {
  position: relative;
}
.auth-form__submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.auth-form__submit .auth-form__submit-spinner {
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.auth-trust {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.auth-trust li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #6b7280;
}
.auth-trust__icon {
  font-size: 0.95rem;
}

.auth-divider span {
  padding: 0 12px;
  background: #fff;
}

.auth-card__lead {
  margin-bottom: 18px;
}

.auth-pitch__illustration {
  max-width: 340px;
  margin: 0 auto 20px;
}
.auth-pitch__illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.auth-pitch__check {
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 6px;
}

.auth-pitch__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-pitch__list li {
  display: flex;
  align-items: center;
}

.legal-wrap {
  max-width: 880px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.legal-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 56px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}
.legal-card h1 {
  font-size: 2rem;
  margin: 0 0 8px;
  color: #111827;
}
.legal-card h2 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
  color: #111827;
  font-weight: 700;
}
.legal-card p, .legal-card li {
  color: #374151;
  line-height: 1.65;
  font-size: 0.95rem;
}
.legal-card ul {
  padding-left: 22px;
}
.legal-card li {
  margin: 4px 0;
}
.legal-card strong {
  color: #111827;
}

.legal-updated {
  color: #6b7280;
  font-size: 0.85rem;
  margin: 0 0 24px;
}

.legal-back {
  display: inline-block;
  color: #dc2626;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.legal-back:hover {
  text-decoration: underline;
}

.auth-card__terms a,
.auth-card__footer a,
.account-chip__sub a,
.account-chip__signin {
  color: #4f46e5;
}
.auth-card__terms a:hover,
.auth-card__footer a:hover,
.account-chip__sub a:hover,
.account-chip__signin:hover {
  color: #4338ca;
}

.auth-form__pwd-toggle {
  color: #4b5563;
}
.auth-form__pwd-toggle:hover {
  background: #f3f4f6;
  color: #111827;
}

.auth-form__group input:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.tools-footer a {
  color: inherit;
  opacity: 0.85;
}
.tools-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.legal-back {
  color: #4f46e5;
}
.legal-back:hover {
  color: #4338ca;
}

.auth-sell {
  border-color: #fcd34d;
}

.btn-tools-primary,
.btn-tools-primary:link,
.btn-tools-primary:visited,
.btn-tools-primary:hover,
.btn-tools-primary:active,
.btn-tools-primary:focus {
  color: #fff !important;
  text-decoration: none !important;
}

.auth-form__submit,
.auth-form__submit:link,
.auth-form__submit:visited,
.auth-form__submit:hover,
.auth-form__submit:active,
.auth-form__submit:focus {
  color: #fff !important;
  text-decoration: none !important;
}

.auth-oauth__btn--apple:hover,
.auth-oauth__btn--apple:focus {
  color: #fff !important;
}

.tools-upsell-strip .btn-tools-primary,
.tools-upsell-strip .btn-tools-primary:link,
.tools-upsell-strip .btn-tools-primary:visited,
.tools-upsell-strip .btn-tools-primary:hover,
.tools-upsell-strip .btn-tools-primary:active,
.tools-upsell-strip .btn-tools-primary:focus {
  color: #111827 !important;
}
