:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #242424;
  background: #f4f6f5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 280px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: #242424;
  background: #f4f6f5;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

app-root,
.app {
  display: block;
  width: 100%;
  min-height: 100vh;
}

.app {
  position: relative !important;
  color: #242424;
  background: #f4f6f5;
}

.ttk-preview-mode .app {
  min-height: calc(100vh - 34px);
}

/* The original global bundle is unavailable. Restore its visibility helpers. */
.hidden,
.dialog_hidden,
.popup_hidden {
  display: none !important;
}

/* Keep the abandoned walkthrough from blocking the recovered interface. */
.pane-blocker,
.tooltip,
.firstExp {
  display: none !important;
}

/* Missing legacy artwork should degrade to a clean text interface. */
.start__nav-item-icon,
.header__item-icon,
.footer img,
img[src^="assets/"] {
  display: none !important;
}

/* Start screen */
#app-container:not(.app-container) {
  width: 100%;
}

.start {
  width: 100% !important;
  max-width: 760px;
  min-height: 100%;
  margin: 0 auto;
  padding: 24px 16px 32px !important;
}

.start product-logo,
.start .logo-block {
  display: block;
  text-align: center;
}

.start .logo-block svg {
  display: block;
  width: min(230px, 80%);
  height: auto;
  margin: 0 auto;
}

.logo-block__name {
  margin-top: 6px;
  color: #174c36;
  font-size: 24px !important;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

.logo-block__small-name {
  margin-top: 4px;
  color: #6b6b6b;
  font-size: 12px;
  text-align: center;
}

.logo-block__small-name a {
  color: inherit;
  text-decoration: none;
}

.start__nav {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
  width: 100%;
  margin: 24px 0 0 !important;
  padding: 0 !important;
}

.start__nav-item {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 64px;
  margin: 0 !important;
  padding: 12px 13px !important;
  border: 1px solid #d9e1dc !important;
  border-radius: 7px;
  color: #174c36 !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.start__nav-item:hover,
.start__nav-item:focus,
.start__nav-item_hover {
  border-color: #107c41 !important;
  box-shadow: 0 2px 8px rgba(16, 124, 65, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.start__nav-item-title {
  width: 100%;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}

/* Tool header and tool switcher */
header-component {
  position: sticky;
  z-index: 50;
  top: 0;
  display: block;
  width: 100%;
}

.app .header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  display: flex !important;
  align-items: center;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px;
  margin: 0 !important;
  padding: 8px 14px !important;
  color: #fff;
  background: #107c41 !important;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
}

.header__btn {
  position: static !important;
  order: 0;
  flex: 0 0 auto;
  margin-right: 10px;
}

.header__btn button,
.header__menu-close button,
.dialog__close button,
.custom-input-text__close-icon button {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 4px;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}

.header__btn button {
  color: #fff !important;
}

.header__btn button:hover,
.header__btn button:focus {
  background: rgba(255, 255, 255, 0.15) !important;
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: -2px;
}

.header__btn button .ui-button-icon-left,
.header__btn button .ui-button-text,
.header__menu-close button .ui-button-icon-left,
.header__menu-close button .ui-button-text,
.dialog__close button .ui-button-icon-left,
.dialog__close button .ui-button-text,
.custom-input-text__close-icon button .ui-button-icon-left,
.custom-input-text__close-icon button .ui-button-text {
  display: none !important;
}

.header__btn button::before {
  content: "\2630";
  font-size: 22px;
  line-height: 1;
}

.header__title {
  position: static !important;
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app .header__menu:not(.header__menu_opened) {
  display: none !important;
}

.app .header__menu_opened {
  position: fixed !important;
  z-index: 200;
  inset: 0 !important;
  display: block !important;
  width: min(340px, 100vw) !important;
  height: 100vh !important;
  padding: 18px 14px 28px !important;
  overflow-y: auto;
  color: #242424;
  background: #fff;
  box-shadow: 8px 0 28px rgba(0, 0, 0, 0.25);
}

.header__menu-title {
  min-height: 38px;
  margin: 0 !important;
  padding: 6px 46px 12px 4px !important;
  border-bottom: 1px solid #e5e5e5;
  color: #174c36;
  font-size: 18px !important;
  font-weight: 650;
}

.header__menu-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

.header__menu-close button,
.dialog__close button,
.custom-input-text__close-icon button {
  color: #4b4b4b !important;
}

.header__menu-close button::before,
.dialog__close button::before,
.custom-input-text__close-icon button::before {
  content: "\00d7";
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}

.header__menu-list {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 4px;
  width: 100% !important;
  height: auto !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
}

.header__item {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 40px;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 5px;
  color: #323130 !important;
  background: transparent !important;
  text-decoration: none !important;
}

.header__item:hover,
.header__item:focus {
  background: #f0f5f2 !important;
  outline: none;
}

.header__item_active {
  color: #0b5a30 !important;
  background: #e7f6ed !important;
  font-weight: 600;
}

.header__item-title {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px;
  line-height: 1.35;
  text-align: left !important;
}

/* Main tool content */
#app-container.app-container {
  position: static !important;
  width: 100% !important;
  max-width: 760px;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 16px 14px 28px !important;
  overflow: visible !important;
}

.range-input {
  display: block !important;
  width: 100%;
  margin: 0 0 14px !important;
  padding: 14px !important;
  border: 1px solid #d9e1dc;
  border-radius: 7px;
  background: #fff;
}

.custom-input-text,
.custom-input-text__wrapper {
  position: relative;
  display: block;
  width: 100% !important;
}

.ui-inputtext,
input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  min-height: 36px;
  padding: 7px 38px 7px 10px !important;
  border: 1px solid #8a8886 !important;
  border-radius: 4px !important;
  color: #242424;
  background: #fff !important;
  box-shadow: none !important;
  outline: none;
}

.ui-inputtext:focus,
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: #107c41 !important;
  box-shadow: 0 0 0 1px #107c41 !important;
}

.custom-input-text__close-icon {
  position: absolute !important;
  z-index: 2;
  top: 1px !important;
  right: 1px !important;
}

.custom-input-text__close-icon button {
  width: 32px;
  min-width: 32px;
  height: 32px;
}

.custom-input-text__close-icon button::before {
  font-size: 20px;
}

.options,
.launch-panel {
  position: static !important;
  display: block !important;
  width: 100% !important;
  margin: 0 0 14px !important;
  padding: 15px !important;
  border: 1px solid #d9e1dc;
  border-radius: 7px;
  color: #242424;
  background: #fff;
  box-shadow: none !important;
}

.options__elem {
  margin: 0 0 12px !important;
}

.options__elem:last-child {
  margin-bottom: 0 !important;
}

.options p,
.options label,
.launch-panel label {
  font-size: 14px;
  line-height: 1.35;
}

.desc-text {
  margin: -7px 0 12px 28px !important;
  padding: 0 !important;
  color: #6b6b6b !important;
  font-size: 12px !important;
  line-height: 1.35;
}

.desc-text_disabled,
.ui-state-disabled {
  opacity: 0.58;
}

/* Recreate PrimeNG radio buttons and checkboxes without the missing icon font. */
.ui-helper-hidden-accessible {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

p-radiobutton,
p-checkbox {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  vertical-align: middle;
}

.ui-radiobutton,
.ui-chkbox {
  position: relative;
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  vertical-align: middle;
}

.ui-radiobutton-box,
.ui-chkbox-box {
  position: relative;
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  border: 1.5px solid #605e5c !important;
  background: #fff !important;
  box-shadow: none !important;
}

.ui-radiobutton-box {
  border-radius: 50% !important;
}

.ui-chkbox-box {
  border-radius: 3px !important;
}

.ui-radiobutton-box.ui-state-active,
.ui-chkbox-box.ui-state-active {
  border-color: #107c41 !important;
}

.ui-radiobutton-box.ui-state-active::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #107c41;
}

.ui-chkbox-box.ui-state-active {
  background: #107c41 !important;
}

.ui-chkbox-box.ui-state-active::after {
  content: "\2713";
  position: absolute;
  top: -2px;
  left: 2px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.ui-radiobutton-icon,
.ui-chkbox-icon {
  display: none !important;
}

.ui-radiobutton-label,
.ui-chkbox-label {
  display: inline-block;
  margin: 0 0 0 8px !important;
  color: #242424;
  cursor: pointer;
}

.launch-panel__checkbox {
  margin: 0 0 12px !important;
}

.launch-panel__buttons {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-top: 14px !important;
}

.launch-panel__backup {
  display: inline-flex;
}

.ui-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  min-height: 36px;
  margin: 0 !important;
  padding: 7px 14px !important;
  border: 1px solid #107c41 !important;
  border-radius: 4px !important;
  color: #fff !important;
  background: #107c41 !important;
  box-shadow: none !important;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.ui-button:hover,
.ui-button:focus {
  border-color: #0b5a30 !important;
  background: #0b5a30 !important;
  outline: 2px solid rgba(16, 124, 65, 0.22);
  outline-offset: 1px;
}

.ui-button-secondary {
  color: #0b5a30 !important;
  background: #fff !important;
}

.ui-button-secondary:hover,
.ui-button-secondary:focus {
  color: #fff !important;
  background: #0b5a30 !important;
}

.ui-button:disabled,
.ui-state-disabled .ui-button,
.ui-button.ui-state-disabled {
  border-color: #c8c6c4 !important;
  color: #777 !important;
  background: #edebe9 !important;
  cursor: not-allowed;
  opacity: 1;
}

.ui-button-text {
  line-height: 1.2;
}

.w-elem,
.ui-warning__backup {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin: 10px 0 0 !important;
  padding: 9px 10px !important;
  border-radius: 4px;
  color: #5b4300;
  background: #fff4ce;
}

.w-icon {
  flex: 0 0 auto;
}

.w-icon::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  background: #9a6700;
  font-size: 12px;
  font-weight: 700;
}

.w-icon > * {
  display: none !important;
}

.w-label {
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
}

/* Dialogs and progress UI */
.dialog__bg {
  position: fixed !important;
  z-index: 999 !important;
  inset: 0 !important;
  opacity: 1 !important;
  background: rgba(0, 0, 0, 0.28) !important;
}

.dialog:not(.dialog_hidden),
.popup:not(.popup_hidden) {
  position: fixed !important;
  z-index: 1000 !important;
  top: 50% !important;
  left: 50% !important;
  display: block !important;
  width: min(420px, calc(100vw - 28px)) !important;
  max-height: calc(100vh - 28px);
  margin: 0 !important;
  padding: 20px !important;
  overflow: auto;
  border: 1px solid #c8c6c4;
  border-radius: 8px;
  color: #242424;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%) !important;
}

.dialog__title {
  margin: 0 38px 12px 0 !important;
  color: #174c36;
  font-size: 18px !important;
  font-weight: 650;
  line-height: 1.3;
}

.dialog__close {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
}

.dialog__buttons {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px !important;
}

.popup__body {
  font-size: 14px;
  line-height: 1.45;
}

.progress-bar {
  width: 100%;
  margin-top: 14px;
}

.progress-bar__line {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e1e1e1;
}

.progress-bar__line-fill {
  min-width: 3%;
  height: 100%;
  background: #107c41;
}

.progress-bar__label,
.progress-bar__text {
  margin-top: 6px;
  color: #605e5c;
  font-size: 12px;
}

/* The footer depended entirely on missing artwork and is not needed to run tools. */
.footer,
footer-component {
  display: none !important;
}

@media (max-width: 380px) {
  .start {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .start__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .start__nav-item {
    min-height: 58px;
    padding: 10px !important;
  }

  #app-container.app-container {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .range-input,
  .options,
  .launch-panel {
    padding: 12px !important;
  }

  .launch-panel__buttons > *,
  .launch-panel__buttons .ui-button {
    flex: 1 1 110px;
  }
}

@media (min-width: 620px) {
  .start__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (forced-colors: active) {
  .start__nav-item,
  .range-input,
  .options,
  .launch-panel,
  .dialog,
  .popup {
    border: 1px solid CanvasText !important;
  }
}
