/* Autofile’s existing bespoke widget styles, now owned by its Topcoat component. */

#autofile-history-selector {
  box-sizing: border-box;
  font-family: inherit;
}

#autofile-history-selector *,
#autofile-history-selector *::before,
#autofile-history-selector *::after {
  box-sizing: border-box;
  font-family: inherit;
}
#autofile-history-selector .af-history {
  --af-text: #1a1a1a;
  --af-muted: #666666;
  --af-border: #dedede;
  --af-panel: #fafafa;
  --af-active: #45bfd0;
  --af-active-bg: #f8fdfe;
  width: 100%;
  color: var(--af-text);
  font-family: inherit;
  padding: 50px 0 40px;
}
#autofile-history-selector .af-history *,
#autofile-history-selector .af-history *::before,
#autofile-history-selector .af-history *::after {
  box-sizing: border-box;
}
#autofile-history-selector .af-history__header {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
#autofile-history-selector .af-history__title {
  margin: 0;
  color: var(--af-text);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}
#autofile-history-selector .af-history__subtitle {
  max-width: 360px;
  margin: 40px auto 0;
  color: var(--af-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
#autofile-history-selector .af-history__helper {
  display: flex;
  width: 100%;
  max-width: 570px;
  min-height: 40px;
  margin: 32px auto 0;
  padding: 8px 16px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(69, 191, 208, 0) 0%, rgba(69, 191, 208, 0.07) 20%, rgba(69, 191, 208, 0.1) 50%, rgba(69, 191, 208, 0.07) 80%, rgba(69, 191, 208, 0) 100%);
  color: var(--af-active);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
}
#autofile-history-selector .af-history__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 57px;
}
#autofile-history-selector .af-history-card {
  appearance: none;
  display: flex;
  min-width: 0;
  min-height: 244px;
  width: 100%;
  padding: 46px 32px 40px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
  border: 1px solid var(--af-border);
  border-radius: 14px;
  background: #fff;
  color: var(--af-text);
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: border-color 240ms ease-in-out, background-color 240ms ease-in-out, box-shadow 240ms ease-in-out, transform 240ms ease-in-out;
}
#autofile-history-selector .af-history-card:hover {
  border-color: #cfcfcf;
}
#autofile-history-selector .af-history-card:focus-visible {
  outline: 3px solid rgba(69, 191, 208, 0.32);
  outline-offset: 4px;
}
#autofile-history-selector .af-history-card[aria-pressed="true"] {
  border-color: var(--af-active);
  background: var(--af-active-bg);
  box-shadow: inset 0 0 0 1px var(--af-active);
}
#autofile-history-selector .af-history-card__icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  align-items: center;
  justify-content: center;
}
#autofile-history-selector .af-history-card__icon svg {
  display: block;
  width: 64px;
  height: 64px;
  overflow: visible;
}
#autofile-history-selector .af-icon-main,
#autofile-history-selector .af-icon-accent {
  fill: none;
  transition: stroke 240ms ease-in-out;
}
#autofile-history-selector .af-icon-main {
  stroke: var(--af-text);
}
#autofile-history-selector .af-icon-accent {
  stroke: #808080;
}
#autofile-history-selector .af-history-card[aria-pressed="true"] .af-icon-accent {
  stroke: var(--af-active);
}
#autofile-history-selector .af-history-card__copy {
  display: grid;
  gap: 18px;
  width: 100%;
}
#autofile-history-selector .af-history-card__title {
  display: block;
  color: var(--af-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}
#autofile-history-selector .af-history-card__description {
  display: block;
  color: var(--af-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
}
#autofile-history-selector .af-history-card[aria-pressed="true"] .af-history-card__description {
  color: var(--af-muted);
}
#autofile-history-selector .af-history__panel-shell {
  height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 260ms ease-in-out, opacity 220ms ease-in-out, margin-top 260ms ease-in-out;
}
#autofile-history-selector .af-history__panel-shell.is-open {
  margin-top: 32px;
  opacity: 1;
}
#autofile-history-selector .af-history-panel {
  width: 100%;
  padding: 39px 24px 40px;
  border-radius: 14px;
  background: var(--af-panel);
  color: var(--af-text);
  text-align: center;
}
#autofile-history-selector .af-history-panel__title {
  margin: 0;
  color: var(--af-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}
#autofile-history-selector .af-history-panel__body {
  max-width: 640px;
  margin: 24px auto 0;
  color: #606060;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
#autofile-history-selector .af-history-panel__body p {
  margin: 0;
}
#autofile-history-selector .af-history-panel__body p + p {
  margin-top: 18px;
}
#autofile-history-selector .af-history-panel__notice {
  display: none;
  width: 100%;
  min-height: 72px;
  margin-top: 16px;
  padding: 12px 32px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(100deg, #55c8cb 0%, #ad66dc 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
}
#autofile-history-selector .af-history-panel__notice.is-visible {
  display: flex;
}
#autofile-history-selector .af-history-panel__notice-text {
  max-width: 760px;
}
#autofile-history-selector .af-history-panel__notice svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  vertical-align: -2px;
}
@media (max-width: 991px) {
  #autofile-history-selector .af-history {
    padding-top: 46px;
  }
  #autofile-history-selector .af-history__title {
    font-size: 26px;
    line-height: 1.25;
  }
  #autofile-history-selector .af-history__subtitle {
    margin-top: 26px;
  }
  #autofile-history-selector .af-history__helper {
    margin-top: 24px;
  }
  #autofile-history-selector .af-history__options {
    gap: 32px;
    margin-top: 48px;
  }
  #autofile-history-selector .af-history-card {
    min-height: 264px;
    padding: 43px 32px 39px;
    gap: 38px;
  }
  #autofile-history-selector .af-history__panel-shell.is-open {
    margin-top: 32px;
  }
  #autofile-history-selector .af-history-panel {
    padding-top: 39px;
  }
  #autofile-history-selector .af-history-panel__body {
    max-width: 635px;
  }
}
@media (max-width: 767px) {
  .autofile-widget:has(> #autofile-history-selector) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 100% !important;
    justify-self: stretch !important;
    align-self: stretch !important;
  }
  #autofile-history-selector {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    inline-size: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: none !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    margin-right: 0;
    margin-left: 0;
  }
  #autofile-history-selector .af-history {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-right: auto;
    margin-left: auto;
    padding: 46px 0 40px;
  }
  #autofile-history-selector .af-history__header {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 420px;
    margin-right: auto;
    margin-left: auto;
    padding: 0 20px;
    text-align: center;
  }
  #autofile-history-selector .af-history__title {
    width: 100% !important;
    min-width: 0 !important;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }
  #autofile-history-selector .af-history__subtitle {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 360px;
    margin: 26px auto 0;
    text-align: center;
  }
  #autofile-history-selector .af-history__options {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    grid-template-columns: 1fr !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    align-content: stretch !important;
    gap: 16px;
    margin: 31px 0 0;
  }
  #autofile-history-selector .af-history__options > .af-history-card {
    display: flex;
    float: none;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    inline-size: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: none !important;
    margin-right: 0;
    margin-left: 0;
    flex-basis: auto !important;
    grid-column: auto !important;
    min-height: 112px;
    padding: 23px 32px;
    flex-direction: row;
    justify-content: flex-start;
    justify-self: stretch;
    align-self: stretch;
    gap: 16px;
    text-align: left;
  }
  #autofile-history-selector .af-history__options > .af-history-card .af-history-card__copy {
    min-width: 0 !important;
    max-width: none !important;
    gap: 10px;
  }
  #autofile-history-selector .af-history-card__description {
    line-height: 1.35;
  }
  #autofile-history-selector .af-history__panel-shell.is-open {
    margin-top: 32px;
  }
  #autofile-history-selector .af-history-panel {
    padding: 39px 40px 40px;
  }
  #autofile-history-selector .af-history-panel__body {
    max-width: 640px;
  }
}
@media (max-width: 479px) {
  #autofile-history-selector .af-history {
    padding-top: 46px;
  }
  #autofile-history-selector .af-history__title {
    font-size: 25px;
  }
  #autofile-history-selector .af-history__subtitle {
    max-width: 330px;
  }
  #autofile-history-selector .af-history-card {
    padding: 23px 31px;
    gap: 17px;
  }
  #autofile-history-selector .af-history-panel {
    padding: 43px 32px 42px;
  }
  #autofile-history-selector .af-history-panel__body {
    font-size: 16px;
  }
  #autofile-history-selector .af-history-panel__notice {
    min-height: 96px;
    padding: 12px 32px;
  }
}
@media(prefers-reduced-motion:reduce) { #autofile-history-selector .af-history-card, #autofile-history-selector .af-history__panel-shell { transition:none; } }
#autofile-history-selector .af-history-panel__body p { color:#1a1a1a; font-size:16px; line-height:26px; }
